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

NetworkSecurityGroups interface

表示 NetworkSecurityGroups 的接口。

方法

beginCreateOrUpdate(string, string, NetworkSecurityGroup, NetworkSecurityGroupsCreateOrUpdateOptionalParams)

在指定的资源组中创建或更新网络安全组。

beginCreateOrUpdateAndWait(string, string, NetworkSecurityGroup, NetworkSecurityGroupsCreateOrUpdateOptionalParams)

在指定的资源组中创建或更新网络安全组。

beginDelete(string, string, NetworkSecurityGroupsDeleteOptionalParams)

删除指定的网络安全组。

beginDeleteAndWait(string, string, NetworkSecurityGroupsDeleteOptionalParams)

删除指定的网络安全组。

beginUpdateTags(string, string, TagsObject, NetworkSecurityGroupsUpdateTagsOptionalParams)

更新网络安全组标记。

beginUpdateTagsAndWait(string, string, TagsObject, NetworkSecurityGroupsUpdateTagsOptionalParams)

更新网络安全组标记。

get(string, string, NetworkSecurityGroupsGetOptionalParams)

获取指定的网络安全组。

list(string, NetworkSecurityGroupsListOptionalParams)

获取资源组中的所有网络安全组。

listAll(NetworkSecurityGroupsListAllOptionalParams)

获取订阅中的所有网络安全组。

方法详细信息

beginCreateOrUpdate(string, string, NetworkSecurityGroup, NetworkSecurityGroupsCreateOrUpdateOptionalParams)

在指定的资源组中创建或更新网络安全组。

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

参数

resourceGroupName

string

资源组的名称。

networkSecurityGroupName

string

网络安全组的名称。

parameters
NetworkSecurityGroup

提供给创建或更新网络安全组作的参数。

返回

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

beginCreateOrUpdateAndWait(string, string, NetworkSecurityGroup, NetworkSecurityGroupsCreateOrUpdateOptionalParams)

在指定的资源组中创建或更新网络安全组。

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

参数

resourceGroupName

string

资源组的名称。

networkSecurityGroupName

string

网络安全组的名称。

parameters
NetworkSecurityGroup

提供给创建或更新网络安全组作的参数。

返回

beginDelete(string, string, NetworkSecurityGroupsDeleteOptionalParams)

删除指定的网络安全组。

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

参数

resourceGroupName

string

资源组的名称。

networkSecurityGroupName

string

网络安全组的名称。

返回

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

beginDeleteAndWait(string, string, NetworkSecurityGroupsDeleteOptionalParams)

删除指定的网络安全组。

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

参数

resourceGroupName

string

资源组的名称。

networkSecurityGroupName

string

网络安全组的名称。

返回

Promise<void>

beginUpdateTags(string, string, TagsObject, NetworkSecurityGroupsUpdateTagsOptionalParams)

更新网络安全组标记。

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

参数

resourceGroupName

string

资源组的名称。

networkSecurityGroupName

string

网络安全组的名称。

parameters
TagsObject

提供用于更新网络安全组标记的参数。

返回

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

beginUpdateTagsAndWait(string, string, TagsObject, NetworkSecurityGroupsUpdateTagsOptionalParams)

更新网络安全组标记。

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

参数

resourceGroupName

string

资源组的名称。

networkSecurityGroupName

string

网络安全组的名称。

parameters
TagsObject

提供用于更新网络安全组标记的参数。

返回

get(string, string, NetworkSecurityGroupsGetOptionalParams)

获取指定的网络安全组。

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

参数

resourceGroupName

string

资源组的名称。

networkSecurityGroupName

string

网络安全组的名称。

options
NetworkSecurityGroupsGetOptionalParams

选项参数。

返回

list(string, NetworkSecurityGroupsListOptionalParams)

获取资源组中的所有网络安全组。

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

参数

resourceGroupName

string

资源组的名称。

options
NetworkSecurityGroupsListOptionalParams

选项参数。

返回

listAll(NetworkSecurityGroupsListAllOptionalParams)

获取订阅中的所有网络安全组。

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

参数

返回