Subnet Class

Subnet in a virtual network resource.

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

Inheritance
azure.mgmt.network.v2016_09_01.models._models_py3.SubResource
Subnet

Constructor

Subnet(*, id: typing.Union[str, NoneType] = None, name: typing.Union[str, NoneType] = None, etag: typing.Union[str, NoneType] = None, address_prefix: typing.Union[str, NoneType] = None, network_security_group: typing.Union[_ForwardRef('NetworkSecurityGroup'), NoneType] = None, route_table: typing.Union[_ForwardRef('RouteTable'), NoneType] = None, resource_navigation_links: typing.Union[typing.List[_ForwardRef('ResourceNavigationLink')], NoneType] = None, provisioning_state: typing.Union[str, NoneType] = None, **kwargs)

Parameters

id
str

Resource ID.

name
str

The name of the resource that is unique within a resource group. This name can be used to access the resource.

etag
str

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

address_prefix
str

The address prefix for the subnet.

network_security_group
NetworkSecurityGroup

The reference of the NetworkSecurityGroup resource.

route_table
RouteTable

The reference of the RouteTable resource.

resource_navigation_links
list[ResourceNavigationLink]

Gets an array of references to the external resources using subnet.

provisioning_state
str

The provisioning state of the resource.

Variables

ip_configurations
list[IPConfiguration]

Gets an array of references to the network interface IP configurations using subnet.