Send feedback
Method: organizations.customConstraints.patch
Stay organized with collections
Save and categorize content based on your preferences.
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
customConstraint.name
string
Immutable. Name of the constraint. This is unique within the organization. Format of the name should be
organizations/{organization_id}/customConstraints/{custom_constraint_id}
Example: organizations/123/customConstraints/custom.createOnlyE2TypeVms
The max length is 70 characters and the minimum length is 1. Note that the prefix organizations/{organization_id}/customConstraints/
is not counted.
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 .
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-13 UTC.
Need to tell us more?
[[["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-01-13 UTC."],[],[]]