waf__CreateAntiTamperRule
Creates a WAF anti-tamper rule to protect a specified URL on a hosted domain, applying it to a chosen protection policy.
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": {
"hostname": "<hostname>",
"policy_id": "<policy_id>",
"project_id": "<project_id>",
"url": "<url>"
},
"name": "waf__CreateAntiTamperRule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 防篡改规则防护的url,需要填写标准的url格式,例如/admin/xxx或者/admin/*,以"*"号结尾代表路径前缀 | |
| hostname | Yes | 防护网站,查询云模式防护域名列表(ListHost)接口获取防护域名,响应体中的的hostname字段 | |
| policy_id | Yes | 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id | |
| project_id | Yes | 项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID | |
| description | No | 规则描述 | |
| enterprise_project_id | No | 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id |