- NAME
-
- gcloud vmware private-clouds dns-forwarding update - update a Google Cloud VMware Engine dns-forwarding
- SYNOPSIS
-
-
gcloud vmware private-clouds dns-forwarding update
(--private-cloud
=PRIVATE_CLOUD
:--location
=LOCATION
) [--async
] [--rule
=[domain
=DOMAIN
,name-servers
="NAME_SERVER1
;NAME_SERVER2
[;NAME_SERVER3
]",…]] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- Update DNS forwarding.
- EXAMPLES
-
To update a DNS forwarding config in private cloud
my-private-cloud
and zoneus-west2-a
to forward DNS requests for domainactivedirectory.my.corp
to name servers192.168.20.15
and192.168.20.16
and for domainproxy.my.corp
to nameservers192.168.30.15
and192.168.30.16
, run:gcloud vmware private-clouds dns-forwarding update --location=us-west2-a --project=my-project --private-cloud=my-private-cloud --rule=domain=activedirectory.my.corp,name-servers=192.168.20.15;192.168.20.16 --rule=domain=proxy.my.corp,name-servers=192.168.30.15;192.168.30.16
Or:
gcloud vmware private-clouds dns-forwarding update --private-cloud=my-private-cloud --rule=domain=activedirectory.my.corp,name-servers=192.168.20.15;192.168.20.16 --rule=domain=proxy.my.corp,name-servers=192.168.30.15;192.168.30.16
In the second example, the project and location are taken from gcloud properties core/project and compute/zone.
- REQUIRED FLAGS
-
-
Private cloud resource - private_cloud. The arguments in this group can be used
to specify the attributes of this 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
--private-cloud
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.
--private-cloud
=PRIVATE_CLOUD
-
ID of the private cloud or fully qualified identifier for the private cloud.
To set the
private-cloud
attribute:-
provide the argument
--private-cloud
on the command line.
This flag argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--location
=LOCATION
-
Location of the private cloud or cluster.
To set the
location
attribute:-
provide the argument
--private-cloud
on the command line with a fully specified name; -
provide the argument
--location
on the command line; -
set the property
compute/zone
.
-
provide the argument
-
provide the argument
-
Private cloud resource - private_cloud. The arguments in this group can be used
to specify the attributes of this resource. (NOTE) Some attributes are not given
arguments in this group but can be set in other ways.
- OPTIONAL FLAGS
-
--async
-
Return immediately, without waiting for the operation in progress to complete.
The default is
True
. Enabled by default, use--no-async
to disable. --rule
=[domain
=DOMAIN
,name-servers
="NAME_SERVER1
;NAME_SERVER2
[;NAME_SERVER3
]",…]- Domain name and the name servers used to resolve DNS requests for this domain.
- 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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-30 UTC.