waf__UpdatePrivacyRule
Updates a Web Application Firewall privacy masking rule, letting you change the protected URL and masked fields so sensitive request data stays out of logs.
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>",
"index": "<index>",
"policy_id": "<policy_id>",
"project_id": "<project_id>",
"rule_id": "<rule_id>",
"url": "<url>"
},
"name": "waf__UpdatePrivacyRule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 隐私屏蔽规则防护的url,需要填写标准的url格式,例如/admin/xxx或者/admin/*,以"*"(星号)结尾代表路径前缀 | |
| index | Yes | 屏蔽字段名,根据“屏蔽字段”设置字段名,被屏蔽的字段将不会出现在日志中。屏蔽字段名长度不能超过2048字节,且只能由数字、字母、下划线和中划线组成 | |
| rule_id | Yes | 隐私屏蔽规则id,您可以通过调用查询隐私屏蔽规则列表(ListPrivacyRule)获取规则id | |
| category | Yes | 屏蔽字段 | |
| policy_id | Yes | 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id | |
| project_id | Yes | 项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID | |
| description | No | 规则描述,可选参数,设置该规则的备注信息。 | |
| enterprise_project_id | No | 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id |