anti-ddos__EnableDefensePolicy
Enable DDoS defense for a specified EIP by applying traffic and cleaning thresholds to control protection levels.
Instructions
[ANTI-DDOS] 开通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>",
"floating_ip_id": "<floating_ip_id>",
"http_request_pos_id": "<http_request_pos_id>",
"project_id": "<project_id>",
"traffic_pos_id": "<traffic_pos_id>"
},
"name": "anti-ddos__EnableDefensePolicy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enable_L7 | Yes | 是否开启L7层防护,固定值为fasle | |
| project_id | Yes | 项目id | |
| app_type_id | Yes | 应用类型ID,固定值为0 | |
| floating_ip_id | Yes | 用户EIP对应的ID | |
| 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:默认防护。 |