Interface Subnet
- All Superinterfaces:
ChildResource<Network>,HasInnerModel<SubnetInner>,HasName,HasParent<Network>,Indexable
A client-side representation of a subnet of a virtual network.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe entirety of a Subnet definition.static interfaceGrouping of subnet definition stages.static interfaceThe entirety of a subnet update as part of a network update.static interfaceThe entirety of a subnet definition as part of a virtual network update.static interfaceGrouping of subnet definition stages applicable as part of a virtual network update.static interfaceGrouping of subnet update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets the address space prefix, in CIDR notation, assigned to this subnet.Gets address space prefixes, in CIDR notation, assigned to this subnet.Gets the network security group associated with this subnet.Gets the route table associated with this subnet.id()Gets the ID of the subnet.List available private IP addresses within this subnet.Gets network interface IP configurations that are associated with this subnet.Gets the resource ID of the NAT gateway associated with this subnet.intGets number of network interface IP configurations associated with this subnet.Gets the resource ID of the network security group associated with this subnet.Gets the resource ID of the route table associated with this subnet.Map<ServiceEndpointType, List<com.azure.core.management.Region>> Gets the services that has access to the subnet.Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModelMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
name
-
Method Details
-
listNetworkInterfaceIPConfigurations
Collection<NicIpConfiguration> listNetworkInterfaceIPConfigurations()Gets network interface IP configurations that are associated with this subnet.- 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.
-
listAvailablePrivateIPAddresses
List available private IP addresses within this subnet.Starting IPs of the address prefixes are not returned, due to: 1. They are usually reserved by platform(e.g. for gateway usage). 2. For backward-compatibility.
- Returns:
- available private IP addresses within this network
-
networkInterfaceIPConfigurationCount
int networkInterfaceIPConfigurationCount()Gets number of network interface IP configurations associated with this subnet.- Returns:
- number of network interface IP configurations associated with this subnet
-
addressPrefix
String addressPrefix()Gets the address space prefix, in CIDR notation, assigned to this subnet.Use
addressPrefixes()if this subnet has multiple prefixes.- Returns:
- the address space prefix, in CIDR notation, assigned to this subnet
- See Also:
-
addressPrefixes
Gets address space prefixes, in CIDR notation, assigned to this subnet.Use
addressPrefix()if this subnet is created/updated using that property.- Returns:
- address space prefixes, in CIDR notation, assigned to this subnet
- See Also:
-
getNetworkSecurityGroup
NetworkSecurityGroup getNetworkSecurityGroup()Gets the network security group associated with this subnet.- 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.
-
networkSecurityGroupId
String networkSecurityGroupId()Gets the resource ID of the network security group associated with this subnet.- Returns:
- the resource ID of the network security group associated with this subnet, if any
-
getRouteTable
RouteTable getRouteTable()Gets the route table associated with this subnet.- 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.
-
routeTableId
String routeTableId()Gets the resource ID of the route table associated with this subnet.- Returns:
- the resource ID of the route table associated with this subnet, if any
-
servicesWithAccess
Map<ServiceEndpointType,List<com.azure.core.management.Region>> servicesWithAccess()Gets the services that has access to the subnet.- Returns:
- the services that has access to the subnet.
-
id
String id()Gets the ID of the subnet.- Returns:
- the ID of the subnet.
-
natGatewayId
String natGatewayId()Gets the resource ID of the NAT gateway associated with this subnet.- Returns:
- the resource ID of the NAT gateway associated with this subnet, if any
-