InstanceTemplateNetworkInterface

data class InstanceTemplateNetworkInterface(val accessConfigs: List<InstanceTemplateNetworkInterfaceAccessConfig>? = null, val aliasIpRanges: List<InstanceTemplateNetworkInterfaceAliasIpRange>? = null, val internalIpv6PrefixLength: Int? = null, val ipv6AccessConfigs: List<InstanceTemplateNetworkInterfaceIpv6AccessConfig>? = null, val ipv6AccessType: String? = null, val ipv6Address: String? = null, val name: String? = null, val network: String? = null, val networkAttachment: String? = null, val networkIp: String? = null, val nicType: String? = null, val queueCount: Int? = null, val stackType: String? = null, val subnetwork: String? = null, val subnetworkProject: String? = null)

Constructors

Link copied to clipboard
constructor(accessConfigs: List<InstanceTemplateNetworkInterfaceAccessConfig>? = null, aliasIpRanges: List<InstanceTemplateNetworkInterfaceAliasIpRange>? = null, internalIpv6PrefixLength: Int? = null, ipv6AccessConfigs: List<InstanceTemplateNetworkInterfaceIpv6AccessConfig>? = null, ipv6AccessType: String? = null, ipv6Address: String? = null, name: String? = null, network: String? = null, networkAttachment: String? = null, networkIp: String? = null, nicType: String? = null, queueCount: Int? = null, stackType: String? = null, subnetwork: String? = null, subnetworkProject: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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 (this means that ssh provisioners will not work unless you 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 repeated multiple times. Structure documented below.

Link copied to clipboard

An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.

Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
val ipv6AccessType: String? = null
Link copied to clipboard
val ipv6Address: String? = null
Link copied to clipboard
val name: String? = null

The name of the instance template. If you leave this blank, the provider will auto-generate a unique name.

Link copied to clipboard
val network: String? = null

The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks.

Link copied to clipboard
Link copied to clipboard
val networkIp: String? = null

The private IP address to assign to the instance. If empty, the address will be automatically assigned.

Link copied to clipboard
val nicType: String? = null

The type of vNIC to be used on this interface. Possible values: GVNIC, VIRTIO_NET.

Link copied to clipboard
val queueCount: Int? = null

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.

Link copied to clipboard
val stackType: String? = null

The stack type for this network interface to identify whether the IPv6 feature is enabled or not. Values are IPV4_IPV6 or IPV4_ONLY. If not specified, IPV4_ONLY will be used.

Link copied to clipboard
val subnetwork: String? = null

the name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided.

Link copied to clipboard

The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.