DDoS Mitigation

Upsert Protection Profile

put/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).

Autorización

Authorization
Authorization*string

Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.

Parámetros de ruta

network*string

Cuerpo de la petición

Schema for creating/updating a protection profile.

application/jsonObligatorio
tcp_validation_level?integer
Rango0 ≤ value ≤ 10Por defecto1
tcp_validation_sym_level?integer
Rango0 ≤ value ≤ 10Por defecto0
udp_validation_level?integer
Rango0 ≤ value ≤ 10Por defecto0
invalid_filter_level?integer
Rango0 ≤ value ≤ 10Por defecto1
fragmented_filter_level?integer
Rango0 ≤ value ≤ 10Por defecto1
amplification_udp_level?integer
Rango0 ≤ value ≤ 10Por defecto1
amplification_tcp_level?integer
Rango0 ≤ value ≤ 10Por defecto1
icmp_rate_limit_level?integer
Rango0 ≤ value ≤ 10Por defecto0
same_packet_size_level?integer
Rango0 ≤ value ≤ 10Por defecto1
stateful_firewall_level?integer
Rango0 ≤ value ≤ 10Por defecto0
default_action?integer
Rango0 ≤ value ≤ 2Por defecto0
country_mode?integer
Rango0 ≤ value ≤ 2Por defecto0
asn_mode?integer
Rango0 ≤ value ≤ 2Por defecto0
prefix_list_mode?integer
Rango0 ≤ value ≤ 2Por defecto0
udp_threshold_pps?integer
Rango0 ≤ value ≤ 100000000Por defecto200000
tcp_threshold_pps?integer
Rango0 ≤ value ≤ 100000000Por defecto100000
tcp_syn_threshold_pps?integer
Rango0 ≤ value ≤ 100000000Por defecto10000
tcp_ack_threshold_pps?integer
Rango0 ≤ value ≤ 100000000Por defecto100000
icmp_threshold_pps?integer
Rango0 ≤ value ≤ 100000000Por defecto2000
udp_threshold_mbps?integer
Rango0 ≤ value ≤ 100000Por defecto1000
tcp_threshold_mbps?integer
Rango0 ≤ value ≤ 100000Por defecto1000
tcp_syn_threshold_mbps?integer
Rango0 ≤ value ≤ 100000Por defecto1000
tcp_ack_threshold_mbps?integer
Rango0 ≤ value ≤ 100000Por defecto1000
icmp_threshold_mbps?integer
Rango0 ≤ value ≤ 100000Por defecto20
syn_flood_threshold?integer
Rango0 ≤ value ≤ 10000Por defecto0
syn_flood_block_secs?integer
Rango0 ≤ value ≤ 86400Por defecto60
always_on_mitigation?integer | null
Rango0 ≤ value ≤ 1
symmetric_routing?integer | null
Rango0 ≤ value ≤ 1

Respuestas

Successful Response

application/json

detail*string