你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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.

beginUpdateTags(string, string, TagsObject, NetworkSecurityGroupsUpdateTagsOptionalParams)

Updates a network security group tags.

beginUpdateTagsAndWait(string, string, TagsObject, NetworkSecurityGroupsUpdateTagsOptionalParams)

Updates a network security group tags.

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.

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<PollerLike<PollOperationState<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<PollerLike<@azure/core-lro.PollOperationState<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<PollerLike<PollOperationState<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<PollerLike<@azure/core-lro.PollOperationState<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>

beginUpdateTags(string, string, TagsObject, NetworkSecurityGroupsUpdateTagsOptionalParams)

Updates a network security group tags.

function beginUpdateTags(resourceGroupName: string, networkSecurityGroupName: string, parameters: TagsObject, options?: NetworkSecurityGroupsUpdateTagsOptionalParams): Promise<PollerLike<PollOperationState<NetworkSecurityGroup>, 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

Promise<PollerLike<@azure/core-lro.PollOperationState<NetworkSecurityGroup>, NetworkSecurityGroup>>

beginUpdateTagsAndWait(string, string, TagsObject, NetworkSecurityGroupsUpdateTagsOptionalParams)

Updates a network security group tags.

function beginUpdateTagsAndWait(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

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