File: //snap/google-cloud-cli/396/help/man/man1/gcloud_compute_instances_update-access-config.1
.TH "GCLOUD_COMPUTE_INSTANCES_UPDATE\-ACCESS\-CONFIG" 1
.SH "NAME"
.HP
gcloud compute instances update\-access\-config \- update a Compute Engine virtual machine access configuration
.SH "SYNOPSIS"
.HP
\f5gcloud compute instances update\-access\-config\fR \fIINSTANCE_NAME\fR [\fB\-\-network\-interface\fR=\fINETWORK_INTERFACE\fR;\ default="nic0"] [\fB\-\-zone\fR=\fIZONE\fR] [\fB\-\-no\-ipv6\-public\-ptr\fR\ |\ \fB\-\-ipv6\-public\-ptr\-domain\fR=\fIIPV6_PUBLIC_PTR_DOMAIN\fR] [\fB\-\-public\-ptr\fR\ |\ \fB\-\-no\-public\-ptr\fR] [\fB\-\-public\-ptr\-domain\fR=\fIPUBLIC_PTR_DOMAIN\fR\ |\ \fB\-\-no\-public\-ptr\-domain\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fBgcloud compute instances update\-access\-config\fR is used to update access
configurations for network interfaces of Compute Engine virtual machines. IPv4
and IPv6 access configurations cannot be updated together.
.SH "EXAMPLES"
To update public PTR record in IPv4 access config in network interface 'nic0' of
an instance, run:
.RS 2m
$ gcloud compute instances update\-access\-config example\-instance \e
\-\-network\-interface=nic0 \-\-zone=us\-central1\-b \-\-public\-ptr \e
\-\-public\-ptr\-domain=exampledomain.com.
.RE
To update public PTR record in IPv6 access config in default network interface
\'nic0' of an instance, run:
.RS 2m
$ gcloud compute instances update\-access\-config example\-instance \e
\-\-zone=us\-central1\-b \-\-ipv6\-public\-ptr\-domain=exampledomain.com.
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIINSTANCE_NAME\fR
Name of the instance to operate on. For details on valid instance names, refer
to the criteria documented under the field 'name' at:
https://cloud.google.com/compute/docs/reference/rest/v1/instances
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-network\-interface\fR=\fINETWORK_INTERFACE\fR; default="nic0"
Specifies the name of the network interface which contains the access
configuration. If this is not provided, then "nic0" is used as the default.
.TP 2m
\fB\-\-zone\fR=\fIZONE\fR
Zone of the instance to operate on. If not specified, you might be prompted to
select a zone (interactive mode only). \f5gcloud\fR attempts to identify the
appropriate zone by searching for resources in your currently active project. If
the zone cannot be determined, \f5gcloud\fR prompts you for a selection with all
available Google Cloud Platform zones.
To avoid prompting when this flag is omitted, the user can set the
\f5\fIcompute/zone\fR\fR property:
.RS 2m
$ gcloud config set compute/zone ZONE
.RE
A list of zones can be fetched by running:
.RS 2m
$ gcloud compute zones list
.RE
To unset the property, run:
.RS 2m
$ gcloud config unset compute/zone
.RE
Alternatively, the zone can be stored in the environment variable
\f5\fICLOUDSDK_COMPUTE_ZONE\fR\fR.
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-no\-ipv6\-public\-ptr\fR
If provided, the default DNS PTR record will replace the existing one for
external IPv6 in the IPv6 access configuration. Mutually exclusive with
ipv6\-public\-ptr\-domain.
.TP 2m
\fB\-\-ipv6\-public\-ptr\-domain\fR=\fIIPV6_PUBLIC_PTR_DOMAIN\fR
Assigns a custom PTR domain for the external IPv6 in the access configuration.
Mutually exclusive with no\-ipv6\-public\-ptr. This option can only be specified
for the default network interface, \f5\fInic0\fR\fR.
.RE
.sp
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-public\-ptr\fR
Creates a DNS PTR record for the external IP in the access configuration. This
option can only be specified for the default network\-interface, "nic0".
.TP 2m
\fB\-\-no\-public\-ptr\fR
If provided, no DNS PTR record is created for the external IP in the access
configuration. Mutually exclusive with public\-ptr\-domain.
.RE
.sp
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-public\-ptr\-domain\fR=\fIPUBLIC_PTR_DOMAIN\fR
Assigns a custom PTR domain for the external IP in the access configuration.
Mutually exclusive with no\-public\-ptr. This option can only be specified for
the default network\-interface, "nic0".
.TP 2m
\fB\-\-no\-public\-ptr\-domain\fR
If both this flag and \-\-public\-ptr are specified, creates a DNS PTR record
for the external IP in the access configuration with the PTR domain name being
the DNS name of the instance.
.RE
.RE
.sp
.SH "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 \fB$ gcloud help\fR for details.
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha compute instances update\-access\-config
.RE
.RS 2m
$ gcloud beta compute instances update\-access\-config
.RE