waf__UpdateAntileakageRule
Update a WAF anti-leakage rule to block or log responses exposing sensitive data or specified HTTP status codes for a URL.
Instructions
[WAF] 更新防敏感信息泄露防护规则
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"category": "<category>",
"contents": "<contents>",
"policy_id": "<policy_id>",
"project_id": "<project_id>",
"rule_id": "<rule_id>",
"url": "<url>"
},
"name": "waf__UpdateAntileakageRule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 规则应用的url | |
| action | No | 规则命中后操作对象 | |
| rule_id | Yes | 防敏感信息泄露规则id,通过查询防敏感信息泄露规则列表接口(ListAntileakageRules)获取 | |
| category | Yes | 类别(响应码:code,敏感信息:sensitive) | |
| contents | Yes | 内容(http状态码:400 、401、402 、 403 、404 、 405 、500 、501 、502 、503、 504 、507;手机:phone、身份证号:id_card、邮箱:email) | |
| policy_id | Yes | 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id | |
| project_id | Yes | 项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID | |
| description | No | 规则描述 | |
| enterprise_project_id | No | 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id |