mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 10:35:03 +00:00
29 lines
1,009 B
Text
29 lines
1,009 B
Text
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.
|