- NAME
-
- gcloud policy-intelligence simulate orgpolicy - understand how changes to organization policies could affect your resources
- SYNOPSIS
-
-
gcloud policy-intelligence simulate orgpolicy--organization=ORGANIZATION_ID[--custom-constraints=[CUSTOM_CONSTRAINTS, …]] [--policies=[POLICIES, …]] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
- Understand how changes to organization policies could affect your resources.
- EXAMPLES
- To simulate changes to custom constraints defined in
./custom-constraint.json, run:gcloud policy-intelligence simulate orgpolicy --organization = ORGANIZATION_ID --custom-constraints = custom-constraint.jsonTo simulate changes to organization policies defined in
./policy.json, run:gcloud policy-intelligence simulate orgpolicy --organization = ORGANIZATION_ID --policies = policy.jsonTo simulate changes to both custom constraints defined in
./custom-constraint.jsonand organization policies defined in./policy.json, run:gcloud policy-intelligence simulate orgpolicy --organization = ORGANIZATION_ID --policies = policy.json --custom-constraints = custom-constraint.jsonSee 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 helpfor details. - NOTES
- This variant is also available:
gcloud beta policy-intelligence simulate orgpolicy
gcloud policy-intelligence simulate orgpolicy
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 2026-05-27 UTC.

