Create CDN firewall rule
create_firewall_ruleCreate a firewall rule for an ArvanCloud domain to allow, deny, challenge, or bypass traffic based on a filter expression.
Instructions
[WRITE] POST /domains/{domain}/firewall/rules. Official FA samples: name, note, is_enabled, action (allow|deny|challenge|bypass), action_details, filter_expr.
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": {
"domain": "<domain>",
"name": "<name>",
"action": "<action>",
"filter_expr": "<filter_expr>"
},
"name": "create_firewall_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| note | No | ||
| action | Yes | allow | deny | challenge | bypass (FA samples) | |
| domain | Yes | ||
| is_enabled | No | ||
| filter_expr | Yes | ||
| action_details | No |