Updates a Policy.
Returns a google.rpc.Status
with google.rpc.Code.NOT_FOUND
if the constraint or the policy do not exist. Returns a google.rpc.Status
with google.rpc.Code.ABORTED
if the etag supplied in the request does not match the persisted etag of the policy
Note: the supplied policy will perform a full overwrite of all fields.
HTTP request
PATCH https://orgpolicy.googleapis.com/v2/{policy.name=projects/*/policies/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
policy.name |
Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * For example, "projects/123/policies/compute.disableSerialPortAccess". Note: |
Request body
The request body contains an instance of Policy
.
Response body
If successful, the response body contains an instance of Policy
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.