1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-10 03:16:46 +00:00
gcloud-help/gcloud/compute/security-policies/import
2024-09-11 09:52:17 +00:00

58 lines
1.8 KiB
Text

NAME
gcloud compute security-policies import - import security policy configs
into your project
SYNOPSIS
gcloud compute security-policies import NAME --file-name=FILE_NAME
[--file-format=FILE_FORMAT] [--global | --region=REGION]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud compute security-policies import imports a security policy to update
an existing policy. To create a new policy from a file please use the
create command instead.
EXAMPLES
To import a security policy from a YAML file run this:
$ gcloud compute security-policies import --file-name=myFile
POSITIONAL ARGUMENTS
NAME
Name of the security policy to import.
REQUIRED FLAGS
--file-name=FILE_NAME
The name of the JSON or YAML file to import the security policy config
from.
OPTIONAL FLAGS
--file-format=FILE_FORMAT
The format of the file to import the security policy config from.
Specify either yaml or json. Defaults to yaml if not specified.
FILE_FORMAT must be one of: json, yaml.
At most one of these can be specified:
--global
If set, the security policy is global.
--region=REGION
Region of the security policy to import. Overrides the default
compute/region property value for this command invocation.
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 security-policies import
$ gcloud beta compute security-policies import