gcloud alpha compute org-security-policies copy-rules Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha compute org-security-policies copy-rules - replace the rules of a Compute Engine organization security policy with rules from another policy
- SYNOPSIS
gcloud alpha compute org-security-policies copy-rulesSECURITY_POLICY--source-security-policy=SOURCE_SECURITY_POLICY[--organization=ORGANIZATION][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)gcloud alpha compute org-security-policiescopy-rulesis used to replace the rules of organization securitypolicies. An organization security policy is a set of rules that controls accessto various resources.- EXAMPLES
- To copy the rules of an organization security policy with ID
, from another organizationsecurity policy with ID123456789, run:987654321gcloudalphacomputeorg-security-policiescopy-rules123456789--source-security-policy=987654321 - POSITIONAL ARGUMENTS
SECURITY_POLICY- Short name or ID of the security policy to copy the rules to.
- REQUIRED FLAGS
--source-security-policy=SOURCE_SECURITY_POLICY- The URL of the source security policy to copy the rules from.
- OPTIONAL FLAGS
--organization=ORGANIZATION- Organization in which the organization security policy to copy the rules to.Must be set if security-policy is the short name.
- 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 command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudcomputeorg-security-policiescopy-rulesgcloudbetacomputeorg-security-policiescopy-rules
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-10-14 UTC.