describeBlackListRuleOfWebRule

产品文档

IP 高防

2020-11-20 06:33:11

describeBlackListRuleOfWebRule

描述

查询网站类规则的黑名单规则

请求方式

GET

请求地址

https://ipanti.jdcloud-api.com/v1/regions/{regionId}/instances/{instanceId}/webRules/{webRuleId}/webBlackListRules/{webBlackListRuleId}

名称 类型 是否必需 默认值 描述
regionId String True 区域 ID, 高防不区分区域, 传 cn-north-1 即可
instanceId String True 高防实例 Id
webRuleId String True 网站规则 Id
webBlackListRuleId String True 网站类规则的黑名单规则 Id

请求参数

返回参数

名称 类型 描述
result Result
requestId String
error Error

Error

名称 类型 描述
err Err

Err

名称 类型 描述
code Long 同http code
details Object
message String
status String 具体错误

Result

名称 类型 描述
data WebBlackListRule

WebBlackListRule

名称 类型 描述
id String 黑名单规则 Id
name String 黑名单规则名称
mode Integer 匹配模式:
- 0: uri
- 1: ip
- 2: cookie
- 3: geo
- 4: header
key String 匹配 key.
- mode 为 cookie 时, 为 cookie 的 name
- mode 为 header 时, 为 header 的 key
value String 匹配 value.
- mode 为 uri 时, 为要匹配的 uri
- mode 为 ip 时, 为引用的 ip 黑白名单 Id
- mode 为 cookie 时, 为 cookie 的 value
- mode 为 header 时, 为 header 的 value
pattern Integer 匹配规则, mode 为 uri, cookie 和 header 时有效. 包含以下匹配规则:
- 0: 完全匹配
- 1: 前缀匹配
- 2: 包含
- 3: 正则匹配
- 4: 后缀匹配
action Integer 命中后处理动作.
- 0: 封禁并返回自定义页面
- 1: 跳转
- 2: 验证码
actionValue String 命中后处理值, 命中后处理动作为跳转时有效, 表示跳转路径
status Integer 规则状态.
- 0: 关闭
- 1: 开启
geoList Geo[ ] geo 黑名单地域列表, mode 不为 geo 或未设置时此字段为空
pageId String 关联的自定义页面id, 命中后处理动作为封禁并返回自定义页面时有效, 为空时表示默认页面
pageName String 关联的自定义页面名称, 命中后处理动作为封禁并返回自定义页面时有效

Geo

名称 类型 描述
label String geo 拦截地域
value String geo 拦截地域编码

返回码

返回码 描述
200 OK
文档反馈

开始与售前顾问沟通

可直接拨打电话 400-098-8505转1

我们的产品专家为您找到最合适的产品/解决⽅案

在线咨询 5*8⼩时

1v1线上咨询获取售前专业咨询

点击咨询
企微服务助手

专业产品顾问,随时随地沟通