Replaces all existing access levels in an access policy with the access levels provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long-lasting storage. If the replacement contains errors, an error response is returned for the first error encountered. Upon error, the replacement is cancelled, and existing access levels are not affected. The Operation.response field contains ReplaceAccessLevelsResponse. Removing access levels contained in existing service perimeters result in an error.
HTTP request
POST https://accesscontextmanager.googleapis.com/v1alpha/{parent=accessPolicies/*}/accessLevels:replaceAll
Optional. The etag for the version of the Access Policy that this replace operation is to be performed on. If, at the time of replace, the etag for the Access Policy stored in Access Context Manager is different from the specified etag, then the replace operation will not be performed and the call will fail. This field is not required. If etag is not provided, the operation will be performed as if a valid etag is provided.
Response body
If successful, the response body contains an instance of Operation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-12 UTC."],[[["This operation replaces all existing access levels within an access policy atomically, ensuring that the replacement propagates to long-lasting storage."],["The HTTP request uses `POST` with a specific URL structure that includes a `parent` path parameter, indicating the access policy to be modified."],["The request body requires an array of desired access levels and an optional etag for version control during the replacement."],["A successful operation returns an `Operation` instance, and errors will result in a failed replacement and a returned error response."],["Authorization requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope for access."]]],[]]