mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-14 00:46:53 +00:00
46 lines
1.5 KiB
Text
46 lines
1.5 KiB
Text
NAME
|
|
gcloud beta compute network-policies create - create a Compute Engine
|
|
network policy
|
|
|
|
SYNOPSIS
|
|
gcloud beta compute network-policies create NETWORK_POLICY
|
|
[--description=DESCRIPTION] [--region=REGION] [GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
(BETA) gcloud beta compute network-policies create is used to create
|
|
network policies. A network policy is a set of rules that classifies
|
|
network traffic.
|
|
|
|
EXAMPLES
|
|
To create a regional network policy named my-region-policy under project
|
|
with ID test-project, in region my-region, run:
|
|
|
|
$ gcloud beta compute network-policies create my-region-policy \
|
|
--project=test-project --region=my-region
|
|
|
|
POSITIONAL ARGUMENTS
|
|
NETWORK_POLICY
|
|
name of the network policy to create.
|
|
|
|
FLAGS
|
|
--description=DESCRIPTION
|
|
An optional, textual description for the network policy.
|
|
|
|
--region=REGION
|
|
Region of the network policy to create. 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
|
|
This command is currently in beta and might change without notice. This
|
|
variant is also available:
|
|
|
|
$ gcloud alpha compute network-policies create
|
|
|