VirtualNetworks interface

Interface representing a VirtualNetworks.

Methods

beginCreate(string, string, VirtualNetworksCreateOptionalParams)

Create Or Update virtual network.

beginCreateAndWait(string, string, VirtualNetworksCreateOptionalParams)

Create Or Update virtual network.

beginDelete(string, string, VirtualNetworksDeleteOptionalParams)

Implements virtual network DELETE method.

beginDeleteAndWait(string, string, VirtualNetworksDeleteOptionalParams)

Implements virtual network DELETE method.

get(string, string, VirtualNetworksGetOptionalParams)

Implements virtual network GET method.

list(VirtualNetworksListOptionalParams)

List of virtualNetworks in a subscription.

listByResourceGroup(string, VirtualNetworksListByResourceGroupOptionalParams)

List of virtualNetworks in a resource group.

update(string, string, VirtualNetworksUpdateOptionalParams)

API to update certain properties of the virtual network resource.

Method Details

beginCreate(string, string, VirtualNetworksCreateOptionalParams)

Create Or Update virtual network.

function beginCreate(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksCreateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualNetwork>, VirtualNetwork>>

Parameters

resourceGroupName

string

The Resource Group Name.

virtualNetworkName

string

Name of the virtual network resource.

options
VirtualNetworksCreateOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<VirtualNetwork>, VirtualNetwork>>

beginCreateAndWait(string, string, VirtualNetworksCreateOptionalParams)

Create Or Update virtual network.

function beginCreateAndWait(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksCreateOptionalParams): Promise<VirtualNetwork>

Parameters

resourceGroupName

string

The Resource Group Name.

virtualNetworkName

string

Name of the virtual network resource.

options
VirtualNetworksCreateOptionalParams

The options parameters.

Returns

Promise<VirtualNetwork>

beginDelete(string, string, VirtualNetworksDeleteOptionalParams)

Implements virtual network DELETE method.

function beginDelete(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

Parameters

resourceGroupName

string

The Resource Group Name.

virtualNetworkName

string

Name of the virtual network resource.

options
VirtualNetworksDeleteOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, VirtualNetworksDeleteOptionalParams)

Implements virtual network DELETE method.

function beginDeleteAndWait(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The Resource Group Name.

virtualNetworkName

string

Name of the virtual network resource.

options
VirtualNetworksDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, VirtualNetworksGetOptionalParams)

Implements virtual network GET method.

function get(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksGetOptionalParams): Promise<VirtualNetwork>

Parameters

resourceGroupName

string

The Resource Group Name.

virtualNetworkName

string

Name of the virtual network resource.

options
VirtualNetworksGetOptionalParams

The options parameters.

Returns

Promise<VirtualNetwork>

list(VirtualNetworksListOptionalParams)

List of virtualNetworks in a subscription.

function list(options?: VirtualNetworksListOptionalParams): PagedAsyncIterableIterator<VirtualNetwork, VirtualNetwork[], PageSettings>

Parameters

options
VirtualNetworksListOptionalParams

The options parameters.

Returns

listByResourceGroup(string, VirtualNetworksListByResourceGroupOptionalParams)

List of virtualNetworks in a resource group.

function listByResourceGroup(resourceGroupName: string, options?: VirtualNetworksListByResourceGroupOptionalParams): PagedAsyncIterableIterator<VirtualNetwork, VirtualNetwork[], PageSettings>

Parameters

resourceGroupName

string

The Resource Group Name.

options
VirtualNetworksListByResourceGroupOptionalParams

The options parameters.

Returns

update(string, string, VirtualNetworksUpdateOptionalParams)

API to update certain properties of the virtual network resource.

function update(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksUpdateOptionalParams): Promise<VirtualNetwork>

Parameters

resourceGroupName

string

The Resource Group Name.

virtualNetworkName

string

Name of the virtual network resource.

options
VirtualNetworksUpdateOptionalParams

The options parameters.

Returns

Promise<VirtualNetwork>