- NAME
-
- gcloud org-policies set-custom-constraint - set a custom constraint from a JSON or YAML file
- SYNOPSIS
-
-
gcloud org-policies set-custom-constraint
CUSTOM_CONSTRAINT_FILE
[GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- Sets a Custom Constraint from a JSON or YAML file. The custom constraint will be created 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:
gcloud org-policies set-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 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 2024-02-06 UTC.