调用BatchSetDcdnWafDomainConfigs批量设置域名防护状态。
接口说明
单用户调用频率:20 次/秒。
请求方式:支持 POST 请求。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
dcdn:BatchSetDcdnWafDomainConfigs |
*Domain
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
DomainNames |
string |
是 |
需修改防护状态域名,最多输入 50 个,多个域名用英文逗号(,)分隔。 |
example.com,example2.com |
DefenseStatus |
string |
否 |
防护域名状态,取值:on、off、和空值。
|
on |
ClientIpTag |
string |
否 |
指定的获取 IP 的 Header 值,当选择默认 Header 时,该值为空;选择自定义 Header 时,该值为用户输入的值。传多个值时需要使用逗号分隔,最多 5 个。 |
X-Forwarded-For |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
RequestId |
string |
请求 ID。 |
CB1A380B-09F0-41BB-3C82-72F8FD6DA2FE |
示例
正常返回示例
JSON
格式
{
"RequestId": "CB1A380B-09F0-41BB-3C82-72F8FD6DA2FE"
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | InvalidParameter | The specified parameter is invalid. | 参数错误 |
500 | InternalError | An internal error occurred; please try again later. | 内部错误,请重试,如果多次重试报错请提交工单。 |
403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. | 此域名处于被保护模式。如果您想做这个操作,请联系我们。 |
403 | %s.NotSupport | The specified resource type %s is not supported. | 不支持指定的资源类型。如需使用该类型资源,请与我们联系。 |
403 | %s.OverQuota | The quantity of %s exceeds the quota. | 该资源的数量超出了配额所规定的范围,如需申请更多的额度,请与我们联系。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。