WEB应用防火墙 WAF-创建黑白名单规则:请求示例

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

请求示例

在项目id为project_id,防护策略id为policy_id的防护策略下创建黑白名单规则,规则名称为"demo",防护动作为"拦截",描述为‘demo”,黑白名单ip地址为“x.x.x.x”。

POST https://{Endpoint}/v1/{project_id}/waf/policy/{policy_id}/whiteblackip?enterprise_project_id=0

{
  "name" : "demo",
  "white" : 0,
  "description" : "demo",
  "addr" : "x.x.x.x"
}
support.huaweicloud.com/api-waf/CreateWhiteblackipRule.html