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

SecurityRulesOperations interface

表示 SecurityRules作的接口。

属性

beginCreateOrUpdate
beginCreateOrUpdateAndWait
beginDelete
beginDeleteAndWait
createOrUpdate

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

delete

删除指定的网络安全规则。

get

获取指定的网络安全规则。

list

获取网络安全组中的所有安全规则。

属性详细信息

beginCreateOrUpdate

警告

现已弃用此 API。

use createOrUpdate instead

beginCreateOrUpdate: (resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: SecurityRule, options?: SecurityRulesCreateOrUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<SecurityRule>, SecurityRule>>

属性值

(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: SecurityRule, options?: SecurityRulesCreateOrUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<SecurityRule>, SecurityRule>>

beginCreateOrUpdateAndWait

警告

现已弃用此 API。

use createOrUpdate instead

beginCreateOrUpdateAndWait: (resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: SecurityRule, options?: SecurityRulesCreateOrUpdateOptionalParams) => Promise<SecurityRule>

属性值

(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: SecurityRule, options?: SecurityRulesCreateOrUpdateOptionalParams) => Promise<SecurityRule>

beginDelete

警告

现已弃用此 API。

use delete instead

beginDelete: (resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: SecurityRulesDeleteOptionalParams) => Promise<SimplePollerLike<OperationState<void>, void>>

属性值

(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: SecurityRulesDeleteOptionalParams) => Promise<SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait

警告

现已弃用此 API。

use delete instead

beginDeleteAndWait: (resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: SecurityRulesDeleteOptionalParams) => Promise<void>

属性值

(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: SecurityRulesDeleteOptionalParams) => Promise<void>

createOrUpdate

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

createOrUpdate: (resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: SecurityRule, options?: SecurityRulesCreateOrUpdateOptionalParams) => PollerLike<OperationState<SecurityRule>, SecurityRule>

属性值

(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: SecurityRule, options?: SecurityRulesCreateOrUpdateOptionalParams) => PollerLike<OperationState<SecurityRule>, SecurityRule>

delete

删除指定的网络安全规则。

delete: (resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: SecurityRulesDeleteOptionalParams) => PollerLike<OperationState<void>, void>

属性值

(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: SecurityRulesDeleteOptionalParams) => PollerLike<OperationState<void>, void>

get

获取指定的网络安全规则。

get: (resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: SecurityRulesGetOptionalParams) => Promise<SecurityRule>

属性值

(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: SecurityRulesGetOptionalParams) => Promise<SecurityRule>

list

获取网络安全组中的所有安全规则。

list: (resourceGroupName: string, networkSecurityGroupName: string, options?: SecurityRulesListOptionalParams) => PagedAsyncIterableIterator<SecurityRule, SecurityRule[], PageSettings>

属性值

(resourceGroupName: string, networkSecurityGroupName: string, options?: SecurityRulesListOptionalParams) => PagedAsyncIterableIterator<SecurityRule, SecurityRule[], PageSettings>