Class NetworkInterface
A network interface resource attached to an instance.
Implements
Inherited Members
Namespace: Google.Apis.Compute.alpha.Data
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class NetworkInterface : IDirectResponseSchema
Properties
AccessConfigs
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
Declaration
[JsonProperty("accessConfigs")]
public virtual IList<AccessConfig> AccessConfigs { get; set; }
Property Value
Type | Description |
---|---|
IList<AccessConfig> |
AliasIpRanges
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
Declaration
[JsonProperty("aliasIpRanges")]
public virtual IList<AliasIpRange> AliasIpRanges { get; set; }
Property Value
Type | Description |
---|---|
IList<AliasIpRange> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Fingerprint
Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date.
Declaration
[JsonProperty("fingerprint")]
public virtual string Fingerprint { get; set; }
Property Value
Type | Description |
---|---|
string |
IgmpQuery
Indicate whether igmp query is enabled on the network interface or not. If enabled, also indicates the version of IGMP supported.
Declaration
[JsonProperty("igmpQuery")]
public virtual string IgmpQuery { get; set; }
Property Value
Type | Description |
---|---|
string |
InternalIpv6PrefixLength
The prefix length of the primary internal IPv6 range.
Declaration
[JsonProperty("internalIpv6PrefixLength")]
public virtual int? InternalIpv6PrefixLength { get; set; }
Property Value
Type | Description |
---|---|
int? |
Ipv6AccessConfigs
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.
Declaration
[JsonProperty("ipv6AccessConfigs")]
public virtual IList<AccessConfig> Ipv6AccessConfigs { get; set; }
Property Value
Type | Description |
---|---|
IList<AccessConfig> |
Ipv6AccessType
[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6.
Declaration
[JsonProperty("ipv6AccessType")]
public virtual string Ipv6AccessType { get; set; }
Property Value
Type | Description |
---|---|
string |
Ipv6Address
An IPv6 internal network address for this network interface. To use a static internal 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 internal IPv6 address from the instance's subnetwork.
Declaration
[JsonProperty("ipv6Address")]
public virtual string Ipv6Address { get; set; }
Property Value
Type | Description |
---|---|
string |
Kind
[Output Only] Type of the resource. Always compute#networkInterface for network interfaces.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and 7. The default interface value is nic0.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Network
URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default
Declaration
[JsonProperty("network")]
public virtual string Network { get; set; }
Property Value
Type | Description |
---|---|
string |
NetworkAttachment
The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.
Declaration
[JsonProperty("networkAttachment")]
public virtual string NetworkAttachment { get; set; }
Property Value
Type | Description |
---|---|
string |
NetworkIP
An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
Declaration
[JsonProperty("networkIP")]
public virtual string NetworkIP { get; set; }
Property Value
Type | Description |
---|---|
string |
NicType
The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
Declaration
[JsonProperty("nicType")]
public virtual string NicType { get; set; }
Property Value
Type | Description |
---|---|
string |
ParentNicName
Name of the parent network interface of a VLAN based nic. If this field is specified, vlan must be set.
Declaration
[JsonProperty("parentNicName")]
public virtual string ParentNicName { get; set; }
Property Value
Type | Description |
---|---|
string |
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'll be empty if not specified by the users.
Declaration
[JsonProperty("queueCount")]
public virtual int? QueueCount { get; set; }
Property Value
Type | Description |
---|---|
int? |
StackType
The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations.
Declaration
[JsonProperty("stackType")]
public virtual string StackType { get; set; }
Property Value
Type | Description |
---|---|
string |
Subinterfaces
SubInterfaces help enable L2 communication for the instance over subnetworks that support L2. Every network interface will get a default untagged (vlan not specified) subinterface. Users can specify additional tagged subinterfaces which are sub-fields to the Network Interface.
Declaration
[JsonProperty("subinterfaces")]
public virtual IList<NetworkInterfaceSubInterface> Subinterfaces { get; set; }
Property Value
Type | Description |
---|---|
IList<NetworkInterfaceSubInterface> |
Subnetwork
The URL of the Subnetwork resource for this instance. 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. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /subnetworks/subnetwork - regions/region/subnetworks/subnetwork
Declaration
[JsonProperty("subnetwork")]
public virtual string Subnetwork { get; set; }
Property Value
Type | Description |
---|---|
string |
Vlan
VLAN tag of a VLAN based network interface, must be in range from 2 to 4094 inclusively. This field is mandatory if the parent network interface name is set.
Declaration
[JsonProperty("vlan")]
public virtual int? Vlan { get; set; }
Property Value
Type | Description |
---|---|
int? |