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/v1/{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 with the provided Access Levels, done atomically."],["The HTTP request uses a POST method with a specific URL structure that includes a required `parent` path parameter specifying the access policy's resource name."],["The request body must include an array of Access Levels (`accessLevels`) and can optionally include an `etag` to ensure the replace operation is performed on the correct version of the Access Policy."],["The operation will return an error if there are issues, such as errors within the replacement set of access levels or the removal of access levels already assigned to service perimeters."],["Successful replacement operations will propagate to long-lasting storage and the response body includes information on the `Operation` status."]]],[]]