waf__ShowCustomRule
Retrieves details for a specific WAF precise protection rule using policy ID, project ID, and rule ID to support inspection and verification.
Instructions
[WAF] 根据Id查询精准防护规则
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": {
"policy_id": "<policy_id>",
"project_id": "<project_id>",
"rule_id": "<rule_id>"
},
"name": "waf__ShowCustomRule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_id | Yes | 精准防护规则id,通过查询精准防护规则列表接口(ListCustomRules)获取 | |
| policy_id | Yes | 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id | |
| project_id | Yes | 项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID | |
| enterprise_project_id | No | 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 |