WEB应用防火墙 WAF-创建隐私屏蔽防护规则:请求示例

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

请求示例

在项目id为project_id,防护策略id为policy_id的防护策略下创建隐私屏蔽防护规则,隐私屏蔽规则防护的url为“/demo”,屏蔽字段为Cookie,屏蔽字段名为“demo”,规则描述为“demo”。

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

{
  "url" : "/demo",
  "category" : "cookie",
  "index" : "demo",
  "description" : "demo"
}
support.huaweicloud.com/api-waf/CreatePrivacyRule.html