gcloud policy-intelligence simulate orgpolicy Stay organized with collections Save and categorize content based on your preferences.
- 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:gcloudpolicy-intelligencesimulateorgpolicy--organization=ORGANIZATION_ID--custom-constraints=custom-constraint.jsonTo simulate changes to organization policies defined in
./policy.json, run:gcloudpolicy-intelligencesimulateorgpolicy--organization=ORGANIZATION_ID--policies=policy.jsonTo simulate changes to both custom constraints defined in
./custom-constraint.jsonand organization policies defined in./policy.json, run:gcloudpolicy-intelligencesimulateorgpolicy--organization=ORGANIZATION_ID--policies=policy.json--custom-constraints=custom-constraint.jsonSeehttps://cloud.google.com/policy-intelligence/docs/test-organization-policiesfor 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:
gcloudbetapolicy-intelligencesimulateorgpolicy
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-01 UTC.