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

DdosCustomPolicies interface

表示 DdosCustomPolicies 的接口。

方法

beginCreateOrUpdate(string, string, DdosCustomPolicy, DdosCustomPoliciesCreateOrUpdateOptionalParams)

创建或更新 DDoS 自定义策略。

beginCreateOrUpdateAndWait(string, string, DdosCustomPolicy, DdosCustomPoliciesCreateOrUpdateOptionalParams)

创建或更新 DDoS 自定义策略。

beginDelete(string, string, DdosCustomPoliciesDeleteOptionalParams)

删除指定的 DDoS 自定义策略。

beginDeleteAndWait(string, string, DdosCustomPoliciesDeleteOptionalParams)

删除指定的 DDoS 自定义策略。

get(string, string, DdosCustomPoliciesGetOptionalParams)

获取有关指定的 DDoS 自定义策略的信息。

updateTags(string, string, TagsObject, DdosCustomPoliciesUpdateTagsOptionalParams)

更新 DDoS 自定义策略标记。

方法详细信息

beginCreateOrUpdate(string, string, DdosCustomPolicy, DdosCustomPoliciesCreateOrUpdateOptionalParams)

创建或更新 DDoS 自定义策略。

function beginCreateOrUpdate(resourceGroupName: string, ddosCustomPolicyName: string, parameters: DdosCustomPolicy, options?: DdosCustomPoliciesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DdosCustomPolicy>, DdosCustomPolicy>>

参数

resourceGroupName

string

资源组的名称。

ddosCustomPolicyName

string

DDoS 自定义策略的名称。

parameters
DdosCustomPolicy

提供给创建或更新作的参数。

返回

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

beginCreateOrUpdateAndWait(string, string, DdosCustomPolicy, DdosCustomPoliciesCreateOrUpdateOptionalParams)

创建或更新 DDoS 自定义策略。

function beginCreateOrUpdateAndWait(resourceGroupName: string, ddosCustomPolicyName: string, parameters: DdosCustomPolicy, options?: DdosCustomPoliciesCreateOrUpdateOptionalParams): Promise<DdosCustomPolicy>

参数

resourceGroupName

string

资源组的名称。

ddosCustomPolicyName

string

DDoS 自定义策略的名称。

parameters
DdosCustomPolicy

提供给创建或更新作的参数。

返回

Promise<DdosCustomPolicy>

beginDelete(string, string, DdosCustomPoliciesDeleteOptionalParams)

删除指定的 DDoS 自定义策略。

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

参数

resourceGroupName

string

资源组的名称。

ddosCustomPolicyName

string

DDoS 自定义策略的名称。

options
DdosCustomPoliciesDeleteOptionalParams

选项参数。

返回

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

beginDeleteAndWait(string, string, DdosCustomPoliciesDeleteOptionalParams)

删除指定的 DDoS 自定义策略。

function beginDeleteAndWait(resourceGroupName: string, ddosCustomPolicyName: string, options?: DdosCustomPoliciesDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。

ddosCustomPolicyName

string

DDoS 自定义策略的名称。

options
DdosCustomPoliciesDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, DdosCustomPoliciesGetOptionalParams)

获取有关指定的 DDoS 自定义策略的信息。

function get(resourceGroupName: string, ddosCustomPolicyName: string, options?: DdosCustomPoliciesGetOptionalParams): Promise<DdosCustomPolicy>

参数

resourceGroupName

string

资源组的名称。

ddosCustomPolicyName

string

DDoS 自定义策略的名称。

options
DdosCustomPoliciesGetOptionalParams

选项参数。

返回

Promise<DdosCustomPolicy>

updateTags(string, string, TagsObject, DdosCustomPoliciesUpdateTagsOptionalParams)

更新 DDoS 自定义策略标记。

function updateTags(resourceGroupName: string, ddosCustomPolicyName: string, parameters: TagsObject, options?: DdosCustomPoliciesUpdateTagsOptionalParams): Promise<DdosCustomPolicy>

参数

resourceGroupName

string

资源组的名称。

ddosCustomPolicyName

string

DDoS 自定义策略的名称。

parameters
TagsObject

提供用于更新 DDoS 自定义策略资源标记的参数。

返回

Promise<DdosCustomPolicy>