listWafRules
描述
获取网站的waf自定义规则
请求方式
POST
请求地址
https://waf.jdcloud-api.com/v1/regions/{regionId}/wafInstanceIds/{wafInstanceId}/waf:listRules
名称 |
类型 |
是否必需 |
默认值 |
描述 |
regionId |
String |
True |
|
实例所属的地域ID |
wafInstanceId |
String |
True |
|
实例Id |
请求参数
名称 |
类型 |
是否必需 |
默认值 |
描述 |
req |
ListRulesReq |
True |
|
请求 |
content-language |
String |
True |
|
语言,"en":英文,"zh":中文 |
ListRulesReq
名称 |
类型 |
是否必需 |
默认值 |
描述 |
wafInstanceId |
String |
True |
|
WAF实例id |
domain |
String |
True |
|
域名 |
ruleType |
String |
False |
|
规则类型 |
pageIndex |
Integer |
False |
|
页码,[1-100],默认是1 |
pageSize |
Integer |
False |
|
页大小,[1-100],默认是10 |
返回参数
名称 |
类型 |
描述 |
result |
Result |
|
requestId |
String |
此次请求的ID |
Result
名称 |
类型 |
描述 |
pageIndex |
Integer |
页码 |
pageSize |
Integer |
页大小 |
totalCount |
Integer |
配置总数 |
list |
ListWafRuleCfg[ ] |
网站waf自定义规则 |
ListWafRuleCfg
名称 |
类型 |
描述 |
conditions |
ConditionNameSet[ ] |
使用的条件集 |
id |
Integer |
规则id |
matchAction |
String |
匹配动作, 拦截:forbidden,redirect 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice |
redirection |
String |
跳转地址,matchAction为redirect时必须为当前实例下的域名的url,forbidden时为自定义页面名称 |
ruleName |
String |
规则名称 |
updateTime |
Integer |
规则更新时间 |
disable |
Integer |
0-使用中,1-禁用 |
ConditionNameSet
名称 |
类型 |
描述 |
conditionName |
String |
条件名称 |
opposite |
String |
对条件结果的取反操作,does不取反,doesnot取反 |
返回码