WEB应用防火墙 WAF-更新全局白名单(原误报屏蔽)防护规则:请求示例

时间:2024-01-26 15:43:51

请求示例

更新项目id为project_id,防护策略id为policy_id,规则id为rule_id的全局白名单(原误报屏蔽)防护规则。修改防护条件为url包含”/test“,需要屏蔽的规则为网站木马和其他类型攻击,配置高级配置项为全部参数。

PUT https://{Endpoint}/v1/{project_id}/waf/policy/{policy_id}/ignore/{rule_id}

{
  "domain" : [ ],
  "mode" : 1,
  "description" : "",
  "conditions" : [ {
    "category" : "url",
    "logic_operation" : "contain",
    "index" : null,
    "contents" : [ "/test" ]
  } ],
  "rule" : "webshell;vuln",
  "advanced" : {
    "index" : "params",
    "contents" : [ ]
  }
}
support.huaweicloud.com/api-waf/UpdateIgnoreRule.html