Subnet Interface

public interface Subnet extends HasInner,ChildResource

A client-side representation of a subnet of a virtual network.

Method Summary

Modifier and Type Method and Description
String addressPrefix()
Set<NicIPConfiguration> getNetworkInterfaceIPConfigurations()

Note that this call may result in multiple calls to Azure to fetch all the referenced interfaces each time it is invoked.

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>Use <xref uid="com.microsoft.azure.management.network.Subnet.listNetworkInterfaceIPConfigurations()" data-throw-if-not-resolved="false" data-raw-source="Subnet#listNetworkInterfaceIPConfigurations()"></xref> instead. </p>

</xrefdescription>
NetworkSecurityGroup getNetworkSecurityGroup()

Note that this method will result in a call to Azure each time it is invoked.

RouteTable getRouteTable()

Note that this method will result in a call to Azure each time it is invoked.

Set<String> listAvailablePrivateIPAddresses()
Collection<NicIPConfiguration> listNetworkInterfaceIPConfigurations()

Note that this call may result in multiple calls to Azure to fetch all the referenced interfaces each time it is invoked.

int networkInterfaceIPConfigurationCount()
String networkSecurityGroupId()
String routeTableId()

Inherited Members

Method Details

addressPrefix

public String addressPrefix()

Returns:

the address space prefix, in CIDR notation, assigned to this subnet

getNetworkInterfaceIPConfigurations

public Set getNetworkInterfaceIPConfigurations()

Note that this call may result in multiple calls to Azure to fetch all the referenced interfaces each time it is invoked.

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>Use <xref uid="com.microsoft.azure.management.network.Subnet.listNetworkInterfaceIPConfigurations()" data-throw-if-not-resolved="false" data-raw-source="Subnet#listNetworkInterfaceIPConfigurations()"></xref> instead. </p>

</xrefdescription>

Returns:

network interface IP configurations that are associated with this subnet

getNetworkSecurityGroup

public NetworkSecurityGroup getNetworkSecurityGroup()

Note that this method will result in a call to Azure each time it is invoked.

Returns:

the network security group associated with this subnet, if any

getRouteTable

public RouteTable getRouteTable()

Note that this method will result in a call to Azure each time it is invoked.

Returns:

the route table associated with this subnet, if any

listAvailablePrivateIPAddresses

public Set listAvailablePrivateIPAddresses()

Returns:

available private IP addresses within this network

listNetworkInterfaceIPConfigurations

public Collection listNetworkInterfaceIPConfigurations()

Note that this call may result in multiple calls to Azure to fetch all the referenced interfaces each time it is invoked.

Returns:

network interface IP configurations that are associated with this subnet

networkInterfaceIPConfigurationCount

public int networkInterfaceIPConfigurationCount()

Returns:

number of network interface IP configurations associated with this subnet

networkSecurityGroupId

public String networkSecurityGroupId()

Returns:

the resource ID of the network security group associated with this subnet, if any

routeTableId

public String routeTableId()

Returns:

the resource ID of the route table associated with this subnet, if any

Applies to