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.v2020_06_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, 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, enable_accelerated_networking: typing.Union[bool, NoneType] = None, enable_ip_forwarding: typing.Union[bool, NoneType] = None, **kwargs)

Parameters

id
str

Resource ID.

location
str

Resource location.

tags
dict[str, str]

A set of tags. Resource tags.

network_security_group
NetworkSecurityGroup

The reference to the NetworkSecurityGroup resource.

ip_configurations
list[NetworkInterfaceIPConfiguration]

A list of IPConfigurations of the network interface.

dns_settings
NetworkInterfaceDnsSettings

The DNS settings in network interface.

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.

Variables

name
str

Resource name.

type
str

Resource type.

etag
str

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

virtual_machine
SubResource

The reference to a virtual machine.

private_endpoint
PrivateEndpoint

A reference to the private endpoint to which the network interface is linked.

tap_configurations
list[NetworkInterfaceTapConfiguration]

A list of TapConfigurations of the network interface.

mac_address
str

The MAC address of the network interface.

primary
bool

Whether this is a primary network interface on a virtual machine.

hosted_workloads
list[str]

A list of references to linked BareMetal resources.

dscp_configuration
SubResource

A reference to the dscp configuration to which the network interface is linked.

resource_guid
str

The resource GUID property of the network interface resource.

provisioning_state
str or ProvisioningState

The provisioning state of the network interface resource. Possible values include: "Succeeded", "Updating", "Deleting", "Failed".