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.v2020_04_01.models._models_py3.SubResource
Subnet

Constructor

Subnet(*, id: typing.Union[str, NoneType] = None, name: typing.Union[str, NoneType] = None, address_prefix: typing.Union[str, NoneType] = None, address_prefixes: typing.Union[typing.List[str], NoneType] = None, network_security_group: typing.Union[_ForwardRef('NetworkSecurityGroup'), NoneType] = None, route_table: typing.Union[_ForwardRef('RouteTable'), NoneType] = None, nat_gateway: typing.Union[_ForwardRef('SubResource'), NoneType] = None, service_endpoints: typing.Union[typing.List[_ForwardRef('ServiceEndpointPropertiesFormat')], NoneType] = None, service_endpoint_policies: typing.Union[typing.List[_ForwardRef('ServiceEndpointPolicy')], NoneType] = None, ip_allocations: typing.Union[typing.List[_ForwardRef('SubResource')], NoneType] = None, delegations: typing.Union[typing.List[_ForwardRef('Delegation')], NoneType] = None, private_endpoint_network_policies: typing.Union[str, NoneType] = None, private_link_service_network_policies: 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.

address_prefix
str

The address prefix for the subnet.

address_prefixes
list[str]

List of address prefixes for the subnet.

network_security_group
NetworkSecurityGroup

The reference to the NetworkSecurityGroup resource.

route_table
RouteTable

The reference to the RouteTable resource.

nat_gateway
SubResource

Nat gateway associated with this subnet.

service_endpoints
list[ServiceEndpointPropertiesFormat]

An array of service endpoints.

service_endpoint_policies
list[ServiceEndpointPolicy]

An array of service endpoint policies.

ip_allocations
list[SubResource]

Array of IpAllocation which reference this subnet.

delegations
list[Delegation]

An array of references to the delegations on the subnet.

private_endpoint_network_policies
str

Enable or Disable apply network policies on private end point in the subnet.

private_link_service_network_policies
str

Enable or Disable apply network policies on private link service in the subnet.

Variables

etag
str

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

private_endpoints
list[PrivateEndpoint]

An array of references to private endpoints.

ip_configurations
list[IPConfiguration]

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

ip_configuration_profiles
list[IPConfigurationProfile]

Array of IP configuration profiles which reference this subnet.

resource_navigation_links
list[ResourceNavigationLink]

An array of references to the external resources using subnet.

service_association_links
list[ServiceAssociationLink]

An array of references to services injecting into this subnet.

purpose
str

A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties.

provisioning_state
str or ProvisioningState

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