DDoS Mitigation
Upsert Protection Profile
/ddos-mitigation/profiles/{network}Create or update the protection profile for an IP or network.
If you provide a subnet (for example a /24), the profile is applied to each individual IP in it.
Only available for IPs with Premium protection. An IPv6 address takes every setting of the profile, country
and ASN filtering included. An IPv6 prefix (/48 to /128, inside a block you own) is stored as ONE profile
for the whole prefix, and its thresholds are totals for the prefix. For an IPv6 prefix or address,
always_on_mitigation writes one redirect row for exactly that prefix; the response of the GET tells
whether a core enforces it (scrubbing_active).
Authorization
Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.
Path parameters
Request body
Schema for creating/updating a protection profile.
0 ≤ value ≤ 10Default10 ≤ value ≤ 10Default00 ≤ value ≤ 10Default00 ≤ value ≤ 10Default10 ≤ value ≤ 10Default10 ≤ value ≤ 10Default10 ≤ value ≤ 10Default10 ≤ value ≤ 10Default00 ≤ value ≤ 10Default10 ≤ value ≤ 10Default00 ≤ value ≤ 2Default00 ≤ value ≤ 2Default00 ≤ value ≤ 2Default00 ≤ value ≤ 2Default00 ≤ value ≤ 100000000Default2000000 ≤ value ≤ 100000000Default1000000 ≤ value ≤ 100000000Default100000 ≤ value ≤ 100000000Default1000000 ≤ value ≤ 100000000Default20000 ≤ value ≤ 100000Default10000 ≤ value ≤ 100000Default10000 ≤ value ≤ 100000Default10000 ≤ value ≤ 100000Default10000 ≤ value ≤ 100000Default200 ≤ value ≤ 10000Default00 ≤ value ≤ 86400Default600 ≤ value ≤ 10 ≤ value ≤ 1Responses
Successful Response
application/json