gcloud_beta_dns_policies_create (1)
NAME
- gcloud beta dns policies create - creates a new Cloud DNS policy
SYNOPSIS
-
gcloud beta dns policies create POLICY --description=DESCRIPTION --networks=[URL,...] [--alternative-name-servers=[IP_ADDRESS,...]] [--enable-inbound-forwarding] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Creates a new Cloud DNS policy.
EXAMPLES
- $ gcloud beta dns policies create mypolicy \ --description 'My new policy test policy 5' \ --networks=''
To create a new policy with all optional arguments, run:
- $ gcloud beta dns policies create mypolicy \ --description 'My new policy test policy 5' \ --networks network1,network2 \ --alternative-name-servers 192.168.1.1,192.168.1.2 --enable-inbound-forwarding
POSITIONAL ARGUMENTS
-
-
Policy resource - The name of the policy you want to create. This represents a
Cloud resource. (NOTE) Some attributes are not given arguments in this group but
can be set in other ways. To set the [project] attribute: provide the argument
[policy] on the command line with a fully specified name; provide the argument
[--project] on the command line; set the property [core/project]. This must be
specified.
-
- POLICY
-
ID of the policy or fully qualified identifier for the policy.
-
-
Policy resource - The name of the policy you want to create. This represents a
Cloud resource. (NOTE) Some attributes are not given arguments in this group but
can be set in other ways. To set the [project] attribute: provide the argument
[policy] on the command line with a fully specified name; provide the argument
[--project] on the command line; set the property [core/project]. This must be
specified.
REQUIRED FLAGS
-
- --description=DESCRIPTION
-
A description of the policy.
- --networks=[URL,...]
-
The comma separated list of network names to associate with the policy.
OPTIONAL FLAGS
-
- --alternative-name-servers=[IP_ADDRESS,...]
-
List of alternative name servers to forward to. Must be a comma separated list
of IPv4 addresses.
- --enable-inbound-forwarding
-
Specifies whether to allow networks bound to this policy to receive DNS queries
sent by VMs or applications over VPN connections. Defaults to False.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
API REFERENCE
This command uses the dns/v1beta2 API. The full documentation for this API can be found at: developers.google.com/cloud-dns
NOTES
This command is currently in BETA and may change without notice.