InstanceNetworkInterface class
Constructors
-
InstanceNetworkInterface({Input<List<InstanceNetworkInterfaceAccessConfig>?>? accessConfigs, Input<List<InstanceNetworkInterfaceAliasIpRange>?>? aliasIpRanges, Input<List<InstanceNetworkInterfaceAliasIpv6Range>?>? aliasIpv6Ranges, Input<String?>? igmpQuery, Input<int?>? internalIpv6PrefixLength, Input<List<InstanceNetworkInterfaceIpv6AccessConfig>?>? ipv6AccessConfigs, Input<String?>? ipv6AccessType, Input<String?>? ipv6Address, Input<String?>? macAddress, Input<String?>? name, Input<String?>? network, Input<String?>? networkAttachment, Input<String?>? networkIp, Input<String?>? nicType, Input<String?>? parentNicName, Input<int?>? queueCount, Input<String?>? securityPolicy, Input<String?>? stackType, Input<String?>? subnetwork, Input<String?>? subnetworkProject, Input<int?>? vlan})
-
Creates a new InstanceNetworkInterface.
accessConfigs Access configurations, i.e. IPs via which this
aliasIpRanges An
aliasIpv6Ranges Beta An
igmpQuery Indicates whether igmp query is enabled on the network interface or not. If enabled, also indicates the version of IGMP supported.
internalIpv6PrefixLength The prefix length of the primary internal IPv6 range.
ipv6AccessConfigs An array of IPv6 access configurations for this interface.
ipv6AccessType One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet.
ipv6Address An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
macAddress Beta MAC address assigned to this network interface
name A unique name for the resource, required by GCE.
network The name or selfLink of the network to attach this interface to.
networkAttachment The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
networkIp The private IP address to assign to the instance. If
nicType The type of vNIC to be used on this interface. Possible values: GVNIC, VIRTIO_NET, IDPF, MRDMA, IRDMA, IDPF
parentNicName Name of the parent network interface of a dynamic network interface.
queueCount The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
securityPolicy Beta A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
stackType The stack type for this network interface to identify whether the IPv6 feature is enabled or not. Values are IPV4_IPV6, IPV6_ONLY or IPV4_ONLY. If not specified, IPV4_ONLY will be used.
subnetwork The name or selfLink of the subnetwork to attach this
subnetworkProject The project in which the subnetwork belongs.
vlan VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 inclusively.
const
-
InstanceNetworkInterface.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
accessConfigs
→ Input<List<InstanceNetworkInterfaceAccessConfig>?>?
-
Access configurations, i.e. IPs via which this
instance can be accessed via the Internet. Omit to ensure that the instance
is not accessible from the Internet. If omitted, ssh provisioners will not
work unless Terraform can send traffic to the instance's network (e.g. via
tunnel or because it is running on another cloud instance on that network).
This block can be specified once per
networkInterface. Structure documented below.
final
-
aliasIpRanges
→ Input<List<InstanceNetworkInterfaceAliasIpRange>?>?
-
An
array of alias IP ranges for this network interface. Can only be specified for network
interfaces on subnet-mode networks. Structure documented below.
final
-
aliasIpv6Ranges
→ Input<List<InstanceNetworkInterfaceAliasIpv6Range>?>?
-
Beta An
array of alias IPv6 ranges for this network interface. Can only be specified for network
interfaces on subnet-mode networks. Structure documented below.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
igmpQuery
→ Input<String?>?
-
Indicates whether igmp query is enabled on the network interface or not. If enabled, also indicates the version of IGMP supported.
final
-
internalIpv6PrefixLength
→ Input<int?>?
-
The prefix length of the primary internal IPv6 range.
final
-
ipv6AccessConfigs
→ Input<List<InstanceNetworkInterfaceIpv6AccessConfig>?>?
-
An array of IPv6 access configurations for this interface.
Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig
specified, then this instance will have no external IPv6 Internet access. Structure documented below.
final
-
ipv6AccessType
→ Input<String?>?
-
One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet.
This field is always inherited from its subnetwork.
final
-
ipv6Address
→ Input<String?>?
-
An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
final
-
macAddress
→ Input<String?>?
-
Beta MAC address assigned to this network interface
final
-
name
→ Input<String?>?
-
A unique name for the resource, required by GCE.
Changing this forces a new resource to be created.
final
-
network
→ Input<String?>?
-
The name or selfLink of the network to attach this interface to.
Either
network or subnetwork must be provided. If network isn't provided it will
be inferred from the subnetwork.
final
-
networkAttachment
→ Input<String?>?
-
The URL of the network attachment that this interface should connect to in the following format:
projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
final
-
networkIp
→ Input<String?>?
-
The private IP address to assign to the instance. If
empty, the address will be automatically assigned.
final
-
nicType
→ Input<String?>?
-
The type of vNIC to be used on this interface. Possible values: GVNIC, VIRTIO_NET, IDPF, MRDMA, IRDMA, IDPF
final
-
parentNicName
→ Input<String?>?
-
Name of the parent network interface of a dynamic network interface.
final
-
queueCount
→ Input<int?>?
-
The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
securityPolicy
→ Input<String?>?
-
Beta A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
final
-
stackType
→ Input<String?>?
-
The stack type for this network interface to identify whether the IPv6 feature is enabled or not. Values are IPV4_IPV6, IPV6_ONLY or IPV4_ONLY. If not specified, IPV4_ONLY will be used.
final
-
subnetwork
→ Input<String?>?
-
The name or selfLink of the subnetwork to attach this
interface to. Either
network or subnetwork must be provided. If network isn't provided
it will be inferred from the subnetwork. The subnetwork must exist in the same region this
instance will be created in. If the network resource is in
legacy mode, do not specify this field. If the
network is in auto subnet mode, specifying the subnetwork is optional. If the network is
in custom subnet mode, specifying the subnetwork is required.
final
-
subnetworkProject
→ Input<String?>?
-
The project in which the subnetwork belongs.
If the
subnetwork is a self_link, this field is set to the project
defined in the subnetwork self_link. If the subnetwork is a name and this
field is not provided, the provider project is used.
final
-
vlan
→ Input<int?>?
-
VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 inclusively.
final