查询信息安全过滤规则 - DescribeWafResponseFilter
简介
查询信息安全过滤规则
定义
公共参数
| 参数名 | 类型 | 描述信息 | 必填 | 
|---|---|---|---|
| Action | string | 对应的 API 指令名称,当前 API 为 DescribeWafResponseFilter | Yes | 
| PublicKey | string | 用户公钥,可从 控制台 获取 | Yes | 
| Signature | string | 根据公钥及 API 指令生成的用户签名,参见 签名算法 | Yes | 
请求参数
| 参数名 | 类型 | 描述信息 | 必填 | 
|---|---|---|---|
| ProjectId | string | 项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口 | No | 
| FullDomain | string | 要查询的域名 | Yes | 
响应字段
| 字段名 | 类型 | 描述信息 | 必填 | 
|---|---|---|---|
| RetCode | int | 返回状态码,为 0 则为成功返回,非 0 为失败 | Yes | 
| Action | string | 操作指令名称 | Yes | 
| Message | string | 返回错误消息,当 RetCode非 0 时提供详细的描述信息 | No | 
| Data | array[HttpReponseFilter] | 信息安全过滤规则列表,参考HttpReponseFilter | Yes | 
数据模型
HttpReponseFilter
| 字段名 | 类型 | 描述信息 | 必填 | 
|---|---|---|---|
| ID | int | 规则ID | No | 
| Name | string | 规则名称 | No | 
| Type | string | 防护类型;可选项:Status(状态码),Sensitive(敏感内容),Customize(自定义字符串) | No | 
| Content | string | 过滤内容 | No | 
| RuleAction | string | 丢弃响应或伪装内容 | No | 
| DisguiseFile | string | 伪装响应内容 | No | 
示例
请求示例
https://api.tnqacloud.com/?Action=DescribeWafResponseFilter
&ProjectId=org-xxx
&FullDomain=www.test.com响应示例
{
  "Action": "DescribeWafHttpResponseFilterResponse",
  "Data": [
    {
      "Content": "TelNum",
      "DisguiseFile": "",
      "ID": 3000,
      "Name": "手机号",
      "RuleAction": "DROP",
      "Type": "Sensitive"
    },
    {
      "Content": "403",
      "DisguiseFile": "403403",
      "ID": 2000,
      "Name": "43",
      "RuleAction": "DISGUISE",
      "Type": "Status"
    },
    {
      "Content": "404",
      "DisguiseFile": "",
      "ID": 1000,
      "Name": "404",
      "RuleAction": "DROP",
      "Type": "Status"
    }
  ],
  "RetCode": 0
}