调用ModifyDcdnWafPolicyDomains修改指定防护策略绑定的域名。
接口说明
单用户调用频率:20 次/秒。
请求方式:支持 POST 请求。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
dcdn:ModifyDcdnWafPolicyDomains |
update |
*全部资源
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
PolicyId |
integer |
是 |
防护策略 ID,仅支持单个输入。 |
1000001 |
Method |
integer |
否 |
绑定方式,取值:
说明
|
0 |
BindDomains |
string |
否 |
需绑定指定防护策略的域名,最多输入 50 个,多个域名用英文逗号(,)分隔。 说明
BindDomains 和 UnbindDomains 字段二选一。 |
example.com,example2.com |
UnbindDomains |
string |
否 |
需解绑指定防护策略的域名,最多输入 50 个,多个域名用英文逗号(,)分隔。 说明
BindDomains 和 UnbindDomains 字段二选一。 |
example3.com |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
RequestId |
string |
请求 ID。 |
CB1A380B-09F0-41BB-2B35-72F8FD6DA2FE |
示例
正常返回示例
JSON
格式
{
"RequestId": "CB1A380B-09F0-41BB-2B35-72F8FD6DA2FE"
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | InvalidParameter | The specified parameter is invalid. | 参数错误 |
400 | Policy.NotExist | The specified policy does not exist. | 指定的防护策略不存在。 |
400 | DomainBindAndUnbind.Overlapped | The specified bind and unbind domain names overlap. | 指定的绑定和解绑域名出现重叠。 |
400 | Domain.Bound.DefaultAndCustom | The specified domain name is bound to both default and custom policies. | 指定的域名同时绑定了默认和自定义策略。 |
400 | DefenseScene.MultiPolicies.NotSupport | The specified defense scene does not support multiple policies bound to the same domain name. | 指定的防护场景不支持同一域名绑定多个策略。 |
500 | InternalError | An internal error occurred; please try again later. | 内部错误,请重试,如果多次重试报错请提交工单。 |
403 | %s.NotSupport | The specified resource type %s is not supported. | 不支持指定的资源类型。如需使用该类型资源,请与我们联系。 |
403 | %s.OverQuota | The quantity of %s exceeds the quota. | 该资源的数量超出了配额所规定的范围,如需申请更多的额度,请与我们联系。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。