gcloud org-policies set-custom-constraint

NAME
gcloud org-policies set-custom-constraint - set a custom constraint from a JSON or YAML file
SYNOPSIS
gcloud org-policies set-custom-constraintCUSTOM_CONSTRAINT_FILE[GCLOUD_WIDE_FLAG]
DESCRIPTION
Sets a Custom Constraint from a JSON or YAML file. The custom constraint will becreated if it does not exist, or updated if it already exists.
EXAMPLES
To set the custom constraint from the file on the path './sample_path', run:
gcloudorg-policiesset-custom-constraint./sample_path
POSITIONAL ARGUMENTS
CUSTOM_CONSTRAINT_FILE
Path to JSON or YAML file that contains the organization policy.
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.