NetworkInterface Class

A network interface in a resource group.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.network.v2018_04_01.models._models_py3.Resource
NetworkInterface

Constructor

NetworkInterface(*, id: typing.Union[str, NoneType] = None, location: typing.Union[str, NoneType] = None, tags: typing.Union[typing.Dict[str, str], NoneType] = None, etag: typing.Union[str, NoneType] = None, virtual_machine: typing.Union[_ForwardRef('SubResource'), NoneType] = None, network_security_group: typing.Union[_ForwardRef('NetworkSecurityGroup'), NoneType] = None, ip_configurations: typing.Union[typing.List[_ForwardRef('NetworkInterfaceIPConfiguration')], NoneType] = None, dns_settings: typing.Union[_ForwardRef('NetworkInterfaceDnsSettings'), NoneType] = None, mac_address: typing.Union[str, NoneType] = None, primary: typing.Union[bool, NoneType] = None, enable_accelerated_networking: typing.Union[bool, NoneType] = None, enable_ip_forwarding: typing.Union[bool, NoneType] = None, resource_guid: typing.Union[str, NoneType] = None, provisioning_state: typing.Union[str, NoneType] = None, **kwargs)

Parameters

id
str

Resource ID.

location
str

Resource location.

tags
dict[str, str]

A set of tags. Resource tags.

etag
str

A unique read-only string that changes whenever the resource is updated.

virtual_machine
SubResource

The reference of a virtual machine.

network_security_group
NetworkSecurityGroup

The reference of the NetworkSecurityGroup resource.

ip_configurations
list[NetworkInterfaceIPConfiguration]

A list of IPConfigurations of the network interface.

dns_settings
NetworkInterfaceDnsSettings

The DNS settings in network interface.

mac_address
str

The MAC address of the network interface.

primary
bool

Gets whether this is a primary network interface on a virtual machine.

enable_accelerated_networking
bool

If the network interface is accelerated networking enabled.

enable_ip_forwarding
bool

Indicates whether IP forwarding is enabled on this network interface.

resource_guid
str

The resource GUID property of the network interface resource.

provisioning_state
str

The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.

Variables

name
str

Resource name.

type
str

Resource type.