Subnets interface
Interface representing a Subnets.
Methods
begin |
Creates or updates a subnet in the specified virtual network. |
begin |
Creates or updates a subnet in the specified virtual network. |
begin |
Deletes the specified subnet. |
begin |
Deletes the specified subnet. |
get(string, string, string, Subnets |
Gets the specified subnet by virtual network and resource group. |
list(string, string, Subnets |
Gets all subnets in a virtual network. |
Method Details
beginCreateOrUpdate(string, string, string, Subnet, SubnetsCreateOrUpdateOptionalParams)
Creates or updates a subnet in the specified virtual network.
function beginCreateOrUpdate(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: Subnet, options?: SubnetsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<Subnet>, Subnet>>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- virtualNetworkName
-
string
The name of the virtual network.
- subnetName
-
string
The name of the subnet.
- subnetParameters
- Subnet
Parameters supplied to the create or update subnet operation.
The options parameters.
Returns
Promise<PollerLike<@azure/core-lro.PollOperationState<Subnet>, Subnet>>
beginCreateOrUpdateAndWait(string, string, string, Subnet, SubnetsCreateOrUpdateOptionalParams)
Creates or updates a subnet in the specified virtual network.
function beginCreateOrUpdateAndWait(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: Subnet, options?: SubnetsCreateOrUpdateOptionalParams): Promise<Subnet>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- virtualNetworkName
-
string
The name of the virtual network.
- subnetName
-
string
The name of the subnet.
- subnetParameters
- Subnet
Parameters supplied to the create or update subnet operation.
The options parameters.
Returns
Promise<Subnet>
beginDelete(string, string, string, SubnetsDeleteOptionalParams)
Deletes the specified subnet.
function beginDelete(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- virtualNetworkName
-
string
The name of the virtual network.
- subnetName
-
string
The name of the subnet.
- options
- SubnetsDeleteOptionalParams
The options parameters.
Returns
Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>
beginDeleteAndWait(string, string, string, SubnetsDeleteOptionalParams)
Deletes the specified subnet.
function beginDeleteAndWait(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetsDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- virtualNetworkName
-
string
The name of the virtual network.
- subnetName
-
string
The name of the subnet.
- options
- SubnetsDeleteOptionalParams
The options parameters.
Returns
Promise<void>
get(string, string, string, SubnetsGetOptionalParams)
Gets the specified subnet by virtual network and resource group.
function get(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetsGetOptionalParams): Promise<Subnet>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- virtualNetworkName
-
string
The name of the virtual network.
- subnetName
-
string
The name of the subnet.
- options
- SubnetsGetOptionalParams
The options parameters.
Returns
Promise<Subnet>
list(string, string, SubnetsListOptionalParams)
Gets all subnets in a virtual network.
function list(resourceGroupName: string, virtualNetworkName: string, options?: SubnetsListOptionalParams): PagedAsyncIterableIterator<Subnet, Subnet[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- virtualNetworkName
-
string
The name of the virtual network.
- options
- SubnetsListOptionalParams
The options parameters.