Network Interface

Implements

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

Entry point for Virtual Network management API in Azure.

Method Summary

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

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

abstract boolean isPrivateIPAddressInNetwork(String ipAddress)

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

abstract boolean isVmProtectionEnabled()

Deprecated

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

Method Details

addressSpaces

public abstract List addressSpaces()

Returns:

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

ddosProtectionPlanId

public abstract String ddosProtectionPlanId()

Returns:

the DDoS protection plan id associated with the virtual network

dnsServerIPs

public abstract List dnsServerIPs()

Returns:

list of DNS server IP addresses associated with this virtual network

isDdosProtectionEnabled

public abstract boolean isDdosProtectionEnabled()

Returns:

whether DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource.

isPrivateIPAddressAvailable

public abstract 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 abstract 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

isVmProtectionEnabled

@Deprecated
public abstract boolean isVmProtectionEnabled()

Deprecated

Returns:

whether VM protection is enabled for all the subnets in the virtual network

peerings

public abstract NetworkPeerings peerings()

Returns:

entry point to managing virtual network peerings for this network

subnets

public abstract Map subnets()

Returns:

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

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

Applies to