NetworkSecurityGroups interface

Interface representing a NetworkSecurityGroups.

Methods

beginCreateOrUpdate(string, string, NetworkSecurityGroup, NetworkSecurityGroupsCreateOrUpdateOptionalParams)

Creates or updates a network security group in the specified resource group.

beginCreateOrUpdateAndWait(string, string, NetworkSecurityGroup, NetworkSecurityGroupsCreateOrUpdateOptionalParams)

Creates or updates a network security group in the specified resource group.

beginDelete(string, string, NetworkSecurityGroupsDeleteOptionalParams)

Deletes the specified network security group.

beginDeleteAndWait(string, string, NetworkSecurityGroupsDeleteOptionalParams)

Deletes the specified network security group.

get(string, string, NetworkSecurityGroupsGetOptionalParams)

Gets the specified network security group.

list(string, NetworkSecurityGroupsListOptionalParams)

Gets all network security groups in a resource group.

listAll(NetworkSecurityGroupsListAllOptionalParams)

Gets all network security groups in a subscription.

updateTags(string, string, TagsObject, NetworkSecurityGroupsUpdateTagsOptionalParams)

Updates a network security group tags.

Method Details

beginCreateOrUpdate(string, string, NetworkSecurityGroup, NetworkSecurityGroupsCreateOrUpdateOptionalParams)

Creates or updates a network security group in the specified resource group.

function beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, parameters: NetworkSecurityGroup, options?: NetworkSecurityGroupsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<NetworkSecurityGroup>, NetworkSecurityGroup>>

Parameters

resourceGroupName

string

The name of the resource group.

networkSecurityGroupName

string

The name of the network security group.

parameters
NetworkSecurityGroup

Parameters supplied to the create or update network security group operation.

options
NetworkSecurityGroupsCreateOrUpdateOptionalParams

The options parameters.

Returns

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

beginCreateOrUpdateAndWait(string, string, NetworkSecurityGroup, NetworkSecurityGroupsCreateOrUpdateOptionalParams)

Creates or updates a network security group in the specified resource group.

function beginCreateOrUpdateAndWait(resourceGroupName: string, networkSecurityGroupName: string, parameters: NetworkSecurityGroup, options?: NetworkSecurityGroupsCreateOrUpdateOptionalParams): Promise<NetworkSecurityGroup>

Parameters

resourceGroupName

string

The name of the resource group.

networkSecurityGroupName

string

The name of the network security group.

parameters
NetworkSecurityGroup

Parameters supplied to the create or update network security group operation.

options
NetworkSecurityGroupsCreateOrUpdateOptionalParams

The options parameters.

Returns

beginDelete(string, string, NetworkSecurityGroupsDeleteOptionalParams)

Deletes the specified network security group.

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

Parameters

resourceGroupName

string

The name of the resource group.

networkSecurityGroupName

string

The name of the network security group.

options
NetworkSecurityGroupsDeleteOptionalParams

The options parameters.

Returns

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

beginDeleteAndWait(string, string, NetworkSecurityGroupsDeleteOptionalParams)

Deletes the specified network security group.

function beginDeleteAndWait(resourceGroupName: string, networkSecurityGroupName: string, options?: NetworkSecurityGroupsDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group.

networkSecurityGroupName

string

The name of the network security group.

options
NetworkSecurityGroupsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, NetworkSecurityGroupsGetOptionalParams)

Gets the specified network security group.

function get(resourceGroupName: string, networkSecurityGroupName: string, options?: NetworkSecurityGroupsGetOptionalParams): Promise<NetworkSecurityGroup>

Parameters

resourceGroupName

string

The name of the resource group.

networkSecurityGroupName

string

The name of the network security group.

options
NetworkSecurityGroupsGetOptionalParams

The options parameters.

Returns

list(string, NetworkSecurityGroupsListOptionalParams)

Gets all network security groups in a resource group.

function list(resourceGroupName: string, options?: NetworkSecurityGroupsListOptionalParams): PagedAsyncIterableIterator<NetworkSecurityGroup, NetworkSecurityGroup[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group.

options
NetworkSecurityGroupsListOptionalParams

The options parameters.

Returns

listAll(NetworkSecurityGroupsListAllOptionalParams)

Gets all network security groups in a subscription.

function listAll(options?: NetworkSecurityGroupsListAllOptionalParams): PagedAsyncIterableIterator<NetworkSecurityGroup, NetworkSecurityGroup[], PageSettings>

Parameters

options
NetworkSecurityGroupsListAllOptionalParams

The options parameters.

Returns

updateTags(string, string, TagsObject, NetworkSecurityGroupsUpdateTagsOptionalParams)

Updates a network security group tags.

function updateTags(resourceGroupName: string, networkSecurityGroupName: string, parameters: TagsObject, options?: NetworkSecurityGroupsUpdateTagsOptionalParams): Promise<NetworkSecurityGroup>

Parameters

resourceGroupName

string

The name of the resource group.

networkSecurityGroupName

string

The name of the network security group.

parameters
TagsObject

Parameters supplied to update network security group tags.

options
NetworkSecurityGroupsUpdateTagsOptionalParams

The options parameters.

Returns