Compartir a través de


VirtualNetworks interface

Interface representing a VirtualNetworks.

Methods

beginCreateOrUpdate(string, string, string, VirtualNetwork, VirtualNetworksCreateOrUpdateOptionalParams)

Create or replace an existing virtual network. This operation can take a while to complete.

beginCreateOrUpdateAndWait(string, string, string, VirtualNetwork, VirtualNetworksCreateOrUpdateOptionalParams)

Create or replace an existing virtual network. This operation can take a while to complete.

beginDelete(string, string, string, VirtualNetworksDeleteOptionalParams)

Delete virtual network. This operation can take a while to complete.

beginDeleteAndWait(string, string, string, VirtualNetworksDeleteOptionalParams)

Delete virtual network. This operation can take a while to complete.

get(string, string, string, VirtualNetworksGetOptionalParams)

Get virtual network.

list(string, string, VirtualNetworksListOptionalParams)

List virtual networks in a given lab.

update(string, string, string, VirtualNetworkFragment, VirtualNetworksUpdateOptionalParams)

Allows modifying tags of virtual networks. All other properties will be ignored.

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.

options
VirtualNetworksCreateOrUpdateOptionalParams

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.

options
VirtualNetworksCreateOrUpdateOptionalParams

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.

options
VirtualNetworksDeleteOptionalParams

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.

options
VirtualNetworksDeleteOptionalParams

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.

options
VirtualNetworksListOptionalParams

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.

options
VirtualNetworksUpdateOptionalParams

The options parameters.

Returns

Promise<VirtualNetwork>