VirtualNetworks interface
Interface representing a VirtualNetworks.
Methods
Method Details
beginCreateOrUpdate(string, string, string, VirtualNetwork, VirtualNetworksCreateOrUpdateOptionalParams)
Create or replace an existing virtual network. This operation can take a while to complete.
function beginCreateOrUpdate(resourceGroupName: string, labName: string, name: string, virtualNetwork: VirtualNetwork, options?: VirtualNetworksCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<VirtualNetwork>, VirtualNetwork>>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- labName
-
string
The name of the lab.
- name
-
string
The name of the virtual network.
- virtualNetwork
- VirtualNetwork
A virtual network.
The options parameters.
Returns
Promise<PollerLike<@azure/core-lro.PollOperationState<VirtualNetwork>, VirtualNetwork>>
beginCreateOrUpdateAndWait(string, string, string, VirtualNetwork, VirtualNetworksCreateOrUpdateOptionalParams)
Create or replace an existing virtual network. This operation can take a while to complete.
function beginCreateOrUpdateAndWait(resourceGroupName: string, labName: string, name: string, virtualNetwork: VirtualNetwork, options?: VirtualNetworksCreateOrUpdateOptionalParams): Promise<VirtualNetwork>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- labName
-
string
The name of the lab.
- name
-
string
The name of the virtual network.
- virtualNetwork
- VirtualNetwork
A virtual network.
The options parameters.
Returns
Promise<VirtualNetwork>
beginDelete(string, string, string, VirtualNetworksDeleteOptionalParams)
Delete virtual network. This operation can take a while to complete.
function beginDelete(resourceGroupName: string, labName: string, name: string, options?: VirtualNetworksDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- labName
-
string
The name of the lab.
- name
-
string
The name of the virtual network.
The options parameters.
Returns
Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>
beginDeleteAndWait(string, string, string, VirtualNetworksDeleteOptionalParams)
Delete virtual network. This operation can take a while to complete.
function beginDeleteAndWait(resourceGroupName: string, labName: string, name: string, options?: VirtualNetworksDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- labName
-
string
The name of the lab.
- name
-
string
The name of the virtual network.
The options parameters.
Returns
Promise<void>
get(string, string, string, VirtualNetworksGetOptionalParams)
Get virtual network.
function get(resourceGroupName: string, labName: string, name: string, options?: VirtualNetworksGetOptionalParams): Promise<VirtualNetwork>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- labName
-
string
The name of the lab.
- name
-
string
The name of the virtual network.
- options
- VirtualNetworksGetOptionalParams
The options parameters.
Returns
Promise<VirtualNetwork>
list(string, string, VirtualNetworksListOptionalParams)
List virtual networks in a given lab.
function list(resourceGroupName: string, labName: string, options?: VirtualNetworksListOptionalParams): PagedAsyncIterableIterator<VirtualNetwork, VirtualNetwork[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- labName
-
string
The name of the lab.
The options parameters.
Returns
update(string, string, string, VirtualNetworkFragment, VirtualNetworksUpdateOptionalParams)
Allows modifying tags of virtual networks. All other properties will be ignored.
function update(resourceGroupName: string, labName: string, name: string, virtualNetwork: VirtualNetworkFragment, options?: VirtualNetworksUpdateOptionalParams): Promise<VirtualNetwork>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- labName
-
string
The name of the lab.
- name
-
string
The name of the virtual network.
- virtualNetwork
- VirtualNetworkFragment
A virtual network.
The options parameters.
Returns
Promise<VirtualNetwork>