Replace all existing service perimeters in an access policy with the service perimeters provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long-lasting storage. Replacements containing errors result in an error response for the first error encountered. Upon an error, replacement are cancelled and existing service perimeters are not affected. The Operation.response field contains ReplaceServicePerimetersResponse.
HTTP request
POST https://accesscontextmanager.googleapis.com/v1alpha/{parent=accessPolicies/*}/servicePerimeters: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 webpage details how to replace all existing service perimeters within an access policy using the `replaceAll` method, which is an atomic operation ensuring data consistency."],["The HTTP request uses a `POST` method with a specific URL structure: `https://accesscontextmanager.googleapis.com/v1alpha/{parent=accessPolicies/*}/servicePerimeters:replaceAll`, where `parent` specifies the access policy."],["The request body requires a JSON object that contains an array of desired `servicePerimeters` and an optional `etag` to ensure the replace operation is performed on the correct version of the access policy."],["The operation will be cancelled and an error will be returned if there is any issue in replacing the service perimeter, in which case there will be no impact on any existing perimeters."],["Successful operations will return an `Operation` object, and this method requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope for authorization."]]],[]]