str
Applies to ipv6AccessConfigs only. The first
IPv6 address of the external IPv6 range
associated with this instance, prefix length is
stored in externalIpv6PrefixLength in
ipv6AccessConfig. To use a static external IP
address, it must be unused and in the same
region as the instance's zone. If not specified,
Google Cloud will automatically assign an
external IPv6 address from the instance's
subnetwork.
This field is a member of oneof_ _external_ipv6.
external_ipv6_prefix_length
int
Applies to ipv6AccessConfigs only. The prefix
length of the external IPv6 range.
This field is a member of oneof_ _external_ipv6_prefix_length.
kind
str
[Output Only] Type of the resource. Always
compute#accessConfig for access configs.
This field is a member of oneof_ _kind.
name
str
The name of this access configuration. In
accessConfigs (IPv4), the default and
recommended name is External NAT, but you can
use any arbitrary string, such as My external IP
or Network Access. In ipv6AccessConfigs, the
recommend name is External IPv6.
This field is a member of oneof_ _name.
nat_i_p
str
Applies to accessConfigs (IPv4) only. An
external IP address associated with this
instance. Specify an unused static external IP
address available to the project or leave this
field undefined to use an IP from a shared
ephemeral IP address pool. If you specify a
static external IP address, it must live in the
same region as the zone of the instance.
This field is a member of oneof_ _nat_i_p.
network_tier
str
This signifies the networking tier used for
configuring this access configuration and can
only take the following values: PREMIUM,
STANDARD. If an AccessConfig is specified
without a valid external IP address, an
ephemeral IP will be created with this
networkTier. If an AccessConfig with a valid
external IP address is specified, it must match
that of the networkTier associated with the
Address resource owning that IP. Check the
NetworkTier enum for the list of possible
values.
This field is a member of oneof_ _network_tier.
public_ptr_domain_name
str
The DNS domain name for the public PTR record. You can set
this field only if the setPublicPtr field is enabled in
accessConfig. If this field is unspecified in
ipv6AccessConfig, a default PTR record will be created for
first IP in associated external IPv6 range.
This field is a member of oneof_ _public_ptr_domain_name.
security_policy
str
The resource URL for the security policy
associated with this access config.
This field is a member of oneof_ _security_policy.
set_public_ptr
bool
Specifies whether a public DNS 'PTR' record
should be created to map the external IP address
of the instance to a DNS domain name. This field
is not used in ipv6AccessConfig. A default PTR
record will be created if the VM has external
IPv6 range associated.
This field is a member of oneof_ _set_public_ptr.
type_
str
The type of configuration. In accessConfigs (IPv4), the
default and only option is ONE_TO_ONE_NAT. In
ipv6AccessConfigs, the default and only option is
DIRECT_IPV6. Check the Type enum for the list of possible
values.
This field is a member of oneof_ _type.
Classes
NetworkTier
NetworkTier(value)
This signifies the networking tier used for configuring this
access configuration and can only take the following values:
PREMIUM, STANDARD. If an AccessConfig is specified without a
valid external IP address, an ephemeral IP will be created with
this networkTier. If an AccessConfig with a valid external IP
address is specified, it must match that of the networkTier
associated with the Address resource owning that IP.
Type
Type(value)
The type of configuration. In accessConfigs (IPv4), the default and
only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and
only option is DIRECT_IPV6.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class AccessConfig (1.35.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.35.0 (latest)](/python/docs/reference/compute/latest/google.cloud.compute_v1.types.AccessConfig)\n- [1.34.0](/python/docs/reference/compute/1.34.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.33.0](/python/docs/reference/compute/1.33.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.32.0](/python/docs/reference/compute/1.32.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.31.0](/python/docs/reference/compute/1.31.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.30.0](/python/docs/reference/compute/1.30.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.29.0](/python/docs/reference/compute/1.29.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.28.0](/python/docs/reference/compute/1.28.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.27.0](/python/docs/reference/compute/1.27.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.26.0](/python/docs/reference/compute/1.26.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.25.0](/python/docs/reference/compute/1.25.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.24.0](/python/docs/reference/compute/1.24.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.23.0](/python/docs/reference/compute/1.23.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.22.0](/python/docs/reference/compute/1.22.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.21.0](/python/docs/reference/compute/1.21.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.20.1](/python/docs/reference/compute/1.20.1/google.cloud.compute_v1.types.AccessConfig)\n- [1.19.2](/python/docs/reference/compute/1.19.2/google.cloud.compute_v1.types.AccessConfig)\n- [1.18.0](/python/docs/reference/compute/1.18.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.17.0](/python/docs/reference/compute/1.17.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.16.1](/python/docs/reference/compute/1.16.1/google.cloud.compute_v1.types.AccessConfig)\n- [1.15.0](/python/docs/reference/compute/1.15.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.14.1](/python/docs/reference/compute/1.14.1/google.cloud.compute_v1.types.AccessConfig)\n- [1.13.0](/python/docs/reference/compute/1.13.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.12.1](/python/docs/reference/compute/1.12.1/google.cloud.compute_v1.types.AccessConfig)\n- [1.11.0](/python/docs/reference/compute/1.11.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.10.1](/python/docs/reference/compute/1.10.1/google.cloud.compute_v1.types.AccessConfig)\n- [1.9.0](/python/docs/reference/compute/1.9.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.8.0](/python/docs/reference/compute/1.8.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.7.0](/python/docs/reference/compute/1.7.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.6.1](/python/docs/reference/compute/1.6.1/google.cloud.compute_v1.types.AccessConfig)\n- [1.5.2](/python/docs/reference/compute/1.5.2/google.cloud.compute_v1.types.AccessConfig)\n- [1.4.0](/python/docs/reference/compute/1.4.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.3.2](/python/docs/reference/compute/1.3.2/google.cloud.compute_v1.types.AccessConfig)\n- [1.2.0](/python/docs/reference/compute/1.2.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.1.0](/python/docs/reference/compute/1.1.0/google.cloud.compute_v1.types.AccessConfig)\n- [1.0.0](/python/docs/reference/compute/1.0.0/google.cloud.compute_v1.types.AccessConfig)\n- [0.9.0](/python/docs/reference/compute/0.9.0/google.cloud.compute_v1.types.AccessConfig)\n- [0.8.0](/python/docs/reference/compute/0.8.0/google.cloud.compute_v1.types.AccessConfig)\n- [0.7.0](/python/docs/reference/compute/0.7.0/google.cloud.compute_v1.types.AccessConfig)\n- [0.6.0](/python/docs/reference/compute/0.6.0/google.cloud.compute_v1.types.AccessConfig)\n- [0.5.0](/python/docs/reference/compute/0.5.0/google.cloud.compute_v1.types.AccessConfig)\n- [0.4.2](/python/docs/reference/compute/0.4.2/google.cloud.compute_v1.types.AccessConfig)\n- [0.3.0](/python/docs/reference/compute/0.3.0/google.cloud.compute_v1.types.AccessConfig)\n- [0.2.1](/python/docs/reference/compute/0.2.1/google.cloud.compute_v1.types.AccessConfig)\n- [0.1.0](/python/docs/reference/compute/0.1.0/google.cloud.compute_v1.types.AccessConfig) \n\n AccessConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nAn access configuration attached to an instance's network\ninterface. Only one access config per instance is supported.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e\n\nClasses\n-------\n\n### NetworkTier\n\n NetworkTier(value)\n\nThis signifies the networking tier used for configuring this\naccess configuration and can only take the following values:\nPREMIUM, STANDARD. If an AccessConfig is specified without a\nvalid external IP address, an ephemeral IP will be created with\nthis networkTier. If an AccessConfig with a valid external IP\naddress is specified, it must match that of the networkTier\nassociated with the Address resource owning that IP.\n\n### Type\n\n Type(value)\n\nThe type of configuration. In accessConfigs (IPv4), the default and\nonly option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and\nonly option is DIRECT_IPV6."]]