File: //snap/google-cloud-cli/396/help/man/man1/gcloud_org-policies_set-custom-constraint.1
.TH "GCLOUD_ORG\-POLICIES_SET\-CUSTOM\-CONSTRAINT" 1
.SH "NAME"
.HP
gcloud org\-policies set\-custom\-constraint \- set a custom constraint from a JSON or YAML file
.SH "SYNOPSIS"
.HP
\f5gcloud org\-policies set\-custom\-constraint\fR \fICUSTOM_CONSTRAINT_FILE\fR [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "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.
.SH "EXAMPLES"
To set the custom constraint from the file on the path './sample_path', run:
.RS 2m
$ gcloud org\-policies set\-custom\-constraint ./sample_path
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fICUSTOM_CONSTRAINT_FILE\fR
Path to JSON or YAML file that contains the organization policy.
.RE
.sp
.SH "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 \fB$ gcloud help\fR for details.