File: //snap/google-cloud-cli/current/help/man/man1/gcloud_beta_policy-intelligence_simulate_orgpolicy.1
.TH "GCLOUD_BETA_POLICY\-INTELLIGENCE_SIMULATE_ORGPOLICY" 1
.SH "NAME"
.HP
gcloud beta policy\-intelligence simulate orgpolicy \- understand how changes to organization policies could affect your resources
.SH "SYNOPSIS"
.HP
\f5gcloud beta policy\-intelligence simulate orgpolicy\fR \fB\-\-organization\fR=\fIORGANIZATION_ID\fR [\fB\-\-custom\-constraints\fR=[\fICUSTOM_CONSTRAINTS\fR,...]] [\fB\-\-policies\fR=[\fIPOLICIES\fR,...]] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(BETA)\fR Understand how changes to organization policies could affect your
resources.
.SH "EXAMPLES"
To simulate changes to custom constraints defined in
\f5./custom\-constraint.json\fR, run:
.RS 2m
$ gcloud beta policy\-intelligence simulate orgpolicy \e
\-\-organization=ORGANIZATION_ID \e
\-\-custom\-constraints=custom\-constraint.json
.RE
To simulate changes to organization policies defined in \f5./policy.json\fR,
run:
.RS 2m
$ gcloud beta policy\-intelligence simulate orgpolicy \e
\-\-organization=ORGANIZATION_ID \-\-policies=policy.json
.RE
To simulate changes to both custom constraints defined in
\f5./custom\-constraint.json\fR and organization policies defined in
\f5./policy.json\fR, run:
.RS 2m
$ gcloud beta policy\-intelligence simulate orgpolicy \e
\-\-organization=ORGANIZATION_ID \-\-policies=policy.json \e
\-\-custom\-constraints=custom\-constraint.json
.RE
See
https://cloud.google.com/policy\-intelligence/docs/test\-organization\-policies
for more information about Policy Simulator for Organization Policy.
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-organization\fR=\fIORGANIZATION_ID\fR
Organization ID.
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-custom\-constraints\fR=[\fICUSTOM_CONSTRAINTS\fR,...]
Path to the JSON or YAML file that contains the custom constraints to simulate.
Multiple custom constraints can be simulated by providing multiple,
comma\-separated paths. For example:
\f5\-\-custom\-constraints=constraint1.json,constraint2.json\fR
.TP 2m
\fB\-\-policies\fR=[\fIPOLICIES\fR,...]
Path to the JSON or YAML file that contains the organization policy to simulate.
Multiple policies can be simulated by providing multiple, comma\-separated
paths. For example: \f5\-\-policies=p1.json,p2.json\fR
.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.
.SH "NOTES"
This command is currently in beta and might change without notice. This variant
is also available:
.RS 2m
$ gcloud policy\-intelligence simulate orgpolicy
.RE