waf__UpdateAnticrawlerRuleType
Updates the protection mode for JS script anticrawler rules; call before creating rules to specify included or excluded paths.
Instructions
[WAF] 更新JS脚本反爬虫规则防护模式,在创建JS脚本反爬虫规则前,需要调用该接口指定JS脚本反爬虫规则防护模式。
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": {
"anticrawler_type": "<anticrawler_type>",
"policy_id": "<policy_id>",
"project_id": "<project_id>"
},
"name": "waf__UpdateAnticrawlerRuleType"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy_id | Yes | 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id | |
| project_id | Yes | 项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID | |
| anticrawler_type | Yes | JS脚本反爬虫规则类型,指定防护路径:anticrawler_specific_url 排除防护路径:anticrawler_except_url | |
| enterprise_project_id | No | 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id |