gcloud beta compute firewall-policies clone-rules Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta compute firewall-policies clone-rules - replace the rules of a Compute Engine organization firewall policy with rules from another policy
- SYNOPSIS
gcloud beta compute firewall-policies clone-rulesFIREWALL_POLICY--source-firewall-policy=SOURCE_FIREWALL_POLICY[--organization=ORGANIZATION][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)gcloud beta compute firewall-policiesclone-rulesis used to replace the rules of organization firewallpolicies. An organization firewall policy is a set of rules that controls accessto various resources.- EXAMPLES
- To clone the rules of an organization firewall policy with ID ``123456789", fromanother organization firewall policy with ID ``987654321", run:
gcloudbetacomputefirewall-policiesclone-rules123456789--source-firewall-policy=987654321 - POSITIONAL ARGUMENTS
FIREWALL_POLICY- Short name or ID of the firewall policy to clone the rules to.
- REQUIRED FLAGS
--source-firewall-policy=SOURCE_FIREWALL_POLICY- The URL of the source firewall policy to copy the rules from.
- OPTIONAL FLAGS
--organization=ORGANIZATION- Organization in which the organization firewall policy to copy the rules to.Must be set if firewall-policy is 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. - IAM PERMISSIONS
- To clone rules to a firewall policy, the user must have the followingpermission:
compute.firewallPolicies.cloneRules.To find predefined roles that contain those permissions, see theCompute Engine IAMroles.
- NOTES
- This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudcomputefirewall-policiesclone-rulesgcloudalphacomputefirewall-policiesclone-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-05-07 UTC.