Updates a custom constraint.
Returns a google.rpc.Status
with google.rpc.Code.NOT_FOUND
if the constraint does not exist.
Note: the supplied policy will perform a full overwrite of all fields.
HTTP request
PATCH https://orgpolicy.googleapis.com/v2/{customConstraint.name=organizations/*/customConstraints/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
custom |
Immutable. Name of the constraint. This is unique within the organization. Format of the name should be
Example: The max length is 70 characters and the minimum length is 1. Note that the prefix |
Request body
The request body contains an instance of CustomConstraint
.
Response body
If successful, the response body contains an instance of CustomConstraint
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.