查询精准防护规则
功能介绍
查询精准防护规则
调用方法
请参见如何调用API。
URI
GET /v2/aad/policies/waf/custom-rule
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
domain_name |
是 |
String |
域名 |
|
overseas_type |
是 |
Integer |
防护区域 |
请求参数
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
X-Auth-Token |
是 |
String |
token |
|
Content-Type |
是 |
String |
Content-Type |
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
total |
Integer |
total |
|
items |
Array of WafCustomRule objects |
items |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
id |
String |
id |
|
name |
String |
name |
|
time |
Boolean |
精准防护规则生效时间。true-自定义生效时间,false-立即生效 |
|
start |
Long |
精准防护规则生效的起始时间戳(秒) |
|
terminal |
Long |
精准防护规则生效的终止时间戳(秒) |
|
priority |
Integer |
执行该规则的优先级,值越小,优先级越高。取值范围:0到1000。 |
|
conditions |
Array of WafCustomCondition objects |
condition |
|
action |
WafCustomRuleAction object |
action |
|
domain_name |
String |
域名 |
|
overseas_type |
Integer |
防护区域,0-大陆,1-海外 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
category |
String |
字段类型 枚举值: url:路径 ip:IPv4 user-agent: User Agent method: Method referer: Referer params:Params cookie:Cookie header:Header request_line: Request Line request: Request |
|
index |
String |
子字段
client-ip:客户端IP x-forwarded-for:X-Forwarded-For TCP连接IP: $remote_addr |
|
logic_operation |
String |
条件列表匹配逻辑。 如果字段类型category是url、user-agent或者referer, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal或者len_not_equal 如果字段类型category是ip、ipv6或method,匹配逻辑可以为: equal、not_equal 如果字段类型category是request_line或者request, 匹配逻辑可以为: len_greater、len_less、len_equal或者len_not_equal 如果字段类型category是params、cookie或者header, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal、len_not_equal、num_greater、num_less、num_equal、num_not_equal、exist或者not_exist |
|
contents |
Array of strings |
条件列表逻辑匹配内容。
|
请求示例
无
响应示例
无
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
OK |
错误码
请参见错误码。