mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-15 01:15:34 +00:00
49 lines
1.7 KiB
Text
49 lines
1.7 KiB
Text
NAME
|
|
gcloud compute firewall-policies import-rules - import Compute Engine
|
|
organization firewall policy rules
|
|
|
|
SYNOPSIS
|
|
gcloud compute firewall-policies import-rules FIREWALL_POLICY
|
|
[--organization=ORGANIZATION] [--source=SOURCE] [GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
Imports Firewall Policy rules configuration from a file.
|
|
|
|
EXAMPLES
|
|
Firewall Policy rules can be imported by running:
|
|
|
|
$ gcloud compute firewall-policies import-rules FIREWALL_POLICY \
|
|
--source=<path-to-file> --organization=<organization>
|
|
|
|
POSITIONAL ARGUMENTS
|
|
FIREWALL_POLICY
|
|
Short name or ID of the firewall policy to imports rules to.
|
|
|
|
FLAGS
|
|
--organization=ORGANIZATION
|
|
Organization in which the organization firewall policy rules import to.
|
|
Must be set if FIREWALL_POLICY is short name.
|
|
|
|
--source=SOURCE
|
|
Path to a YAML file containing configuration export data.
|
|
Alternatively, you may omit this flag to read from standard input.For a
|
|
schema describing the export/import format, see:
|
|
$CLOUDSDKROOT/lib/googlecloudsdk/schemas/compute/v1/FirewallPolicy.yaml.
|
|
|
|
Note: $CLOUDSDKROOT represents the Google Cloud CLI's installation directory.
|
|
|
|
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
|
|
These variants are also available:
|
|
|
|
$ gcloud alpha compute firewall-policies import-rules
|
|
|
|
$ gcloud beta compute firewall-policies import-rules
|
|
|