Network Interface

public interface Network extends GroupableResource<NetworkManager, VirtualNetworkInner>,Refreshable,Updatable<Network.Update>

Entry point for Virtual Network management API in Azure.

Method Summary

Modifier and Type Method and Description
List<String> addressSpaces()
List<String> dnsServerIPs()
boolean isPrivateIPAddressAvailable(String ipAddress)

Checks if the specified private IP address is available in this network.

boolean isPrivateIPAddressInNetwork(String ipAddress)

Checks if the specified private IP address is within this network's address space.

NetworkPeerings peerings()
Map<String, Subnet> subnets()

Note that when a virtual network is created with no subnets explicitly defined, a default subnet is automatically created with the name "subnet1".

Inherited Members

Method Details

addressSpaces

public List addressSpaces()

Returns:

list of address spaces associated with this virtual network, in the CIDR notation

dnsServerIPs

public List dnsServerIPs()

Returns:

list of DNS server IP addresses associated with this virtual network

isPrivateIPAddressAvailable

public boolean isPrivateIPAddressAvailable(String ipAddress)

Checks if the specified private IP address is available in this network.

Parameters:

ipAddress - an IP address from this network's address space

Returns:

true if the address is within this network's address space and is available

isPrivateIPAddressInNetwork

public boolean isPrivateIPAddressInNetwork(String ipAddress)

Checks if the specified private IP address is within this network's address space.

Parameters:

ipAddress - an IP address

Returns:

true if the specified IP address is within this network's address space, otherwise false

peerings

public NetworkPeerings peerings()

Returns:

entry point to managing virtual network peerings for this network

subnets

public Map subnets()

Note that when a virtual network is created with no subnets explicitly defined, a default subnet is automatically created with the name "subnet1".

Returns:

subnets of this virtual network as a map indexed by subnet name

Applies to