CC规则 开关
更新时间:2026-03-10
POST
/v1/waf/ccRules/switch
CC规则 开关
请求参数
Headers 参数
除公共头域外,无其它特殊头域
Body 参数
switch
integer
开关状态。可选值: 0(关), 1(开)
必选
ruleKey
string
规则唯一标识
必选
请求结构
{
"ruleKey": "规则唯一标识",
"switch": 1
}
示例代码
开启CC规则
curl -X POST "https://example.com/v1/waf/ccRules/switch" \
-H "Content-Type: application/json" \
-d '{
"ruleKey": "rule_123456",
"switch": 1
}'
{
"ruleKey": "rule_123456",
"switch": 1
}
返回响应
Headers 参数
除公共头域外,无其它特殊头域
返回参数
success
boolean
请求是否成功
必选
result
array
返回结果数组
必选
显示子属性
隐藏子属性
items
string
成功响应
响应示例
{
"success": true,
"result": []
}
