你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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()
Gets list of address spaces associated with this virtual network, in the CIDR notation. |
abstract String |
ddosProtectionPlanId()
Gets the DDoS protection plan id associated with the virtual network. |
abstract List<String> |
dnsServerIPs()
Gets list of DNS server IP addresses associated with this virtual network. |
abstract boolean |
isDdosProtectionEnabled()
Checks whether DDoS protection is enabled for all the protected resources in the virtual network. |
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 Checks whether VM protection is enabled for all the subnets in the virtual network. |
abstract
Network |
peerings()
Gets entry point to managing virtual network peerings for this network. |
abstract Map<String,Subnet> |
subnets()
Gets subnets of this virtual network. |
Method Details
addressSpaces
public abstract List
Gets list of address spaces associated with this virtual network, in the CIDR notation.
Returns:
ddosProtectionPlanId
public abstract String ddosProtectionPlanId()
Gets the DDoS protection plan id associated with the virtual network.
Returns:
dnsServerIPs
public abstract List
Gets list of DNS server IP addresses associated with this virtual network.
Returns:
isDdosProtectionEnabled
public abstract boolean isDdosProtectionEnabled()
Checks whether DDoS protection is enabled for all the protected resources in the virtual network.
Returns:
isPrivateIPAddressAvailable
public abstract boolean isPrivateIPAddressAvailable(String ipAddress)
Checks if the specified private IP address is available in this network.
Parameters:
Returns:
isPrivateIPAddressInNetwork
public abstract boolean isPrivateIPAddressInNetwork(String ipAddress)
Checks if the specified private IP address is within this network's address space.
Parameters:
Returns:
isVmProtectionEnabled
@Deprecated
public abstract boolean isVmProtectionEnabled()
Deprecated
Checks whether VM protection is enabled for all the subnets in the virtual network.
Returns:
peerings
public abstract NetworkPeerings peerings()
Gets entry point to managing virtual network peerings for this network.
Returns:
subnets
public abstract Map
Gets subnets of this virtual network.
Returns:
Note that when a virtual network is created with no subnets explicitly defined, a default subnet is automatically created with the name "subnet1".