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/v1/{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-07-17 UTC."],[[["\u003cp\u003eThis endpoint replaces all existing service perimeters within an access policy with the provided service perimeters atomically.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a POST operation to \u003ccode\u003ehttps://accesscontextmanager.googleapis.com/v1/{parent=accessPolicies/*}/servicePerimeters:replaceAll\u003c/code\u003e using gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter, which is required, specifies the access policy's resource name in the format \u003ccode\u003eaccessPolicies/{policy_id}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a \u003ccode\u003eservicePerimeters\u003c/code\u003e array of \u003ccode\u003eServicePerimeter\u003c/code\u003e objects and optionally an \u003ccode\u003eetag\u003c/code\u003e string for versioning.\u003c/p\u003e\n"],["\u003cp\u003eA successful operation returns an \u003ccode\u003eOperation\u003c/code\u003e instance in the response body, while any errors encountered during replacement will result in an error response and cancellation of the replacement, leaving the existing service perimeters unaffected.\u003c/p\u003e\n"]]],[],null,[]]