Update DDoS protection mode
update_ddos_protection_modeSet or change a domain's DDoS protection mode to cookie, JavaScript, reCAPTCHA, or CAPTCHA, defining how incoming traffic is challenged.
Instructions
[WRITE] Offline FA (cdn/security/ddos): PATCH /domains/{domain}/ddos with protection_mode (cookie|javascript|recaptcha|captcha). Note: CDN Go SDK lists /ddos/settings — this tool follows FA product docs path /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": {
"domain": "<domain>",
"protection_mode": "<protection_mode>"
},
"name": "update_ddos_protection_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | ||
| domain | Yes | ||
| captcha_service | No | ||
| protection_mode | Yes | Documented samples: cookie, javascript, recaptcha, captcha |