Subnet Interface

Implements

ChildResource<Network> HasInner<com.microsoft.azure.management.network.implementation.SubnetInner>

public interface Subnet
extends HasInner<com.microsoft.azure.management.network.implementation.SubnetInner>, ChildResource<Network>

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

Method Summary

Modifier and Type Method and Description
abstract java.lang.String addressPrefix()
abstract java.util.Set<NicIPConfiguration> getNetworkInterfaceIPConfigurations()

Deprecated

abstract NetworkSecurityGroup getNetworkSecurityGroup()
abstract RouteTable getRouteTable()
abstract java.util.Set<java.lang.String> listAvailablePrivateIPAddresses()
abstract java.util.Collection<NicIPConfiguration> listNetworkInterfaceIPConfigurations()
abstract int networkInterfaceIPConfigurationCount()
abstract java.lang.String networkSecurityGroupId()
abstract java.lang.String routeTableId()
abstract java.util.Map<ServiceEndpointType,java.util.List<Region>> servicesWithAccess()

Method Details

addressPrefix

public abstract String addressPrefix()

Returns:

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

getNetworkInterfaceIPConfigurations


public abstract Set getNetworkInterfaceIPConfigurations()

Deprecated

Returns:

network interface IP configurations that are associated with this subnet

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

getNetworkSecurityGroup

public abstract NetworkSecurityGroup getNetworkSecurityGroup()

Returns:

the network security group associated with this subnet, if any

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

getRouteTable

public abstract RouteTable getRouteTable()

Returns:

the route table associated with this subnet, if any

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

listAvailablePrivateIPAddresses

public abstract Set listAvailablePrivateIPAddresses()

Returns:

available private IP addresses within this network

listNetworkInterfaceIPConfigurations

public abstract Collection listNetworkInterfaceIPConfigurations()

Returns:

network interface IP configurations that are associated with this subnet

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

networkInterfaceIPConfigurationCount

public abstract int networkInterfaceIPConfigurationCount()

Returns:

number of network interface IP configurations associated with this subnet

networkSecurityGroupId

public abstract String networkSecurityGroupId()

Returns:

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

routeTableId

public abstract String routeTableId()

Returns:

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

servicesWithAccess

public abstract Map> servicesWithAccess()

Returns:

the services that has access to the subnet.

Applies to