mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 14:56:05 +00:00
gcloud: Wed Mar 12 10:54:38 UTC 2025
This commit is contained in:
parent
6dc93282df
commit
a459a88a5f
152 changed files with 2634 additions and 1748 deletions
66
gcloud/beta/policy-intelligence/simulate/orgpolicy
Normal file
66
gcloud/beta/policy-intelligence/simulate/orgpolicy
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
NAME
|
||||
gcloud beta policy-intelligence simulate orgpolicy - understand how changes
|
||||
to organization policies could affect your resources
|
||||
|
||||
SYNOPSIS
|
||||
gcloud beta policy-intelligence simulate orgpolicy
|
||||
--organization=ORGANIZATION_ID
|
||||
[--custom-constraints=[CUSTOM_CONSTRAINTS,...]]
|
||||
[--policies=[POLICIES,...]] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(BETA) Understand how changes to organization policies could affect your
|
||||
resources.
|
||||
|
||||
EXAMPLES
|
||||
To simulate changes to custom constraints defined in
|
||||
./custom-constraint.json, run:
|
||||
|
||||
$ gcloud beta policy-intelligence simulate orgpolicy \
|
||||
--organization=ORGANIZATION_ID \
|
||||
--custom-constraints=custom-constraint.json
|
||||
|
||||
To simulate changes to organization policies defined in ./policy.json, run:
|
||||
|
||||
$ gcloud beta policy-intelligence simulate orgpolicy \
|
||||
--organization=ORGANIZATION_ID --policies=policy.json
|
||||
|
||||
To simulate changes to both custom constraints defined in
|
||||
./custom-constraint.json and organization policies defined in
|
||||
./policy.json, run:
|
||||
|
||||
$ gcloud beta policy-intelligence simulate orgpolicy \
|
||||
--organization=ORGANIZATION_ID --policies=policy.json \
|
||||
--custom-constraints=custom-constraint.json
|
||||
|
||||
See
|
||||
https://cloud.google.com/policy-intelligence/docs/test-organization-policies
|
||||
for more information about Policy Simulator for Organization Policy.
|
||||
|
||||
REQUIRED FLAGS
|
||||
--organization=ORGANIZATION_ID
|
||||
Organization ID.
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--custom-constraints=[CUSTOM_CONSTRAINTS,...]
|
||||
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:
|
||||
--custom-constraints=constraint1.json,constraint2.json
|
||||
|
||||
--policies=[POLICIES,...]
|
||||
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: --policies=p1.json,p2.json
|
||||
|
||||
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.
|
||||
|
||||
NOTES
|
||||
This command is currently in beta and might change without notice.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue