anti-ddos__CreateDefaultConfig
Configures a default Anti-DDoS protection policy so newly purchased resources automatically apply those protection settings when protection is enabled.
Instructions
[ANTI-DDOS] 配置用户的默认防护策略。配置防护策略后,新购买的资源在自动开启防护时,会按照该默认防护策略进行配置。
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": {
"app_type_id": "<app_type_id>",
"cleaning_access_pos_id": "<cleaning_access_pos_id>",
"enable_L7": "<enable_L7>",
"http_request_pos_id": "<http_request_pos_id>",
"project_id": "<project_id>",
"traffic_pos_id": "<traffic_pos_id>"
},
"name": "anti-ddos__CreateDefaultConfig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enable_L7 | Yes | 是否开启L7层防护,固定值为fasle | |
| project_id | Yes | 项目id | |
| app_type_id | Yes | 应用类型ID,固定值为0 | |
| traffic_pos_id | Yes | 流量分段ID,取值范围:1:10M;2:30M;3:50M;4:70M;5:100M;6:150M;7:200M;8:250M;9:300M;10:500M;11:800M;88:1000M;99:默认防护。 | |
| http_request_pos_id | Yes | HTTP请求数分段ID,固定值为1 | |
| cleaning_access_pos_id | Yes | 清洗时访问限制分段ID,取值范围:1:10M;2:30M;3:50M;4:70M;5:100M;6:150M;7:200M;8:250M;9:300M;10:500M;11:800M;88:1000M;99:默认防护。 |