Skip to content

List DDoS filtering presets for an IP address

GET/servers/{server}/ddos-protection/ip/{ip}/presets

Overview

Lists filtering presets supported by this address. {ip} must be an IP address assigned to this server. Retrieval failures return an empty list.

Permissions

Requires the network.read (View networking) permission for the selected team. Resources outside that team return 404.

curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/servers/{server}/ddos-protection/ip/{ip}/presets' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
[
  {
    "id": "19cfb2ea-daa8-4693-ad63-9d147b00b8f7",
    "name": "HTTPS",
    "protocol": "TCP",
    "description": "Web traffic on port 443, with TLS handshakes validated before they reach the server.",
    "action": "FILTER",
    "filter": {
      "filterId": 7,
      "name": "https",
      "id": 31
    }
  }
]

Authorization

Authorizationstringheaderrequired

Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

Send it as Bearer <token>.

Path parameters

serverstringrequired

The server uuid short

ipstringrequireddefault: null

The ip ID.

Response 200

application/json

The whole set, as a JSON array. There is no envelope and no paging.

idstringrequired

The id ID.

namestringrequired

The name shown to customers.

protocolstringrequired

The value of protocol.

descriptionstring | nullrequired

An optional description shown to customers.

actionstringrequired

What the preset does with matching traffic, FILTER or DROP.

filterobject | nullrequired

The value of filter.

Show child attributes
filterIdinteger | nullrequired

The filter id ID.

namestringrequired

The name shown to customers.

idinteger | nullrequired

The id ID.

Errors

401
The key was missing, malformed, revoked, or belongs to an account that no longer exists.
403
Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
404
The resource was not found in the selected team. Resources in another account or team also return 404.
429
Too many requests. The Retry-After header says how many seconds to wait. Limits are per account, so several keys on one account share them.