Skip to content

Get a server's DDoS protection

GET/servers/{server}/ddos-protection

Overview

Lists the server's protected addresses and protection details. addresses maps address IDs to IP addresses. Other endpoints in this section use the IP address itself. Send ?address_id= to select an address; otherwise, the first is used. If protection details are unavailable, the address list is still returned, error explains the problem, and other details are empty.

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' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
{
  "addressId": "58213",
  "address": "203.0.113.24",
  "addresses": [
    {
      "id": "58213",
      "address": "203.0.113.24"
    },
    {
      "id": "58391",
      "address": "203.0.113.88"
    }
  ],
  "settings": {
    "symmetrical": true,
    "symmetricalBasic": false,
    "allowEgress": true,
    "attackDuration": 30,
    "defaultAction": "FILTER",
    "discovery": true,
    "autoMitigation": true
  },
  "profiles": [
    {
      "id": "a45afea6-a83e-4685-b7d5-029d0a91e81e",
      "protocol": "TCP",
      "minDstPort": 443,
      "maxDstPort": 443,
      "preset": {
        "id": "19cfb2ea-daa8-4693-ad63-9d147b00b8f7",
        "name": "HTTPS",
        "protocol": "TCP"
      },
      "notes": "Black Mesa announcement system",
      "createdAt": "2026-03-04T10:22:51Z",
      "updatedAt": "2026-03-04T10:22:51Z"
    }
  ],
  "presets": [
    {
      "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
      }
    },
    {
      "id": "ce736ad0-0ad7-4b43-95b8-1156cccdf2be",
      "name": "SSH",
      "protocol": "TCP",
      "description": "Remote shell access on port 22, rate limited per source address.",
      "action": "FILTER",
      "filter": {
        "filterId": 3,
        "name": "ssh",
        "id": 12
      }
    }
  ],
  "error": null
}

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

Query parameters

address_idstring

The address id ID.

Response 200

application/json

The record, as a JSON object. There is no envelope.

addressIdstring | nullrequired

The address ID, or null when no protected address is selected.

addressstring | nullrequired

That address itself, as the per-address endpoints name it.

addressesobject[]required

Every address on this server that DDoS protection covers.

Show child attributes
idstringrequired

The address ID.

addressstringrequired

The address itself, as the per-address endpoints name it.

settingsobject | nullrequired

The value of settings.

Show child attributes
symmetricalbooleanrequired

The value of symmetrical.

symmetricalBasicbooleanrequired

The value of symmetrical_basic.

allowEgressbooleanrequired

The value of allow_egress.

attackDurationintegerrequired

How long, in minutes, an attack is considered ongoing.

defaultActionstringrequired

What happens to traffic no rule matched, FILTER or DROP.

discoverybooleanrequired

The value of discovery.

autoMitigationboolean | nullrequired

The value of auto_mitigation.

profilesobject[]required

The value of profiles.

Show child attributes
idstringrequired

The id ID.

protocolstringrequired

The value of protocol.

minDstPortinteger | nullrequired

The value of min_dst_port.

maxDstPortinteger | nullrequired

The value of max_dst_port.

presetobject | nullrequired

The value of preset.

Show child attributes
idstring | nullrequired

The id ID.

namestringrequired

The name shown to customers.

protocolstringrequired

The value of protocol.

notesstring | nullrequired

Optional notes about the request.

createdAtstring | nullrequired

The provider's own timestamps, in the provider's own format. Kept as strings and parsed where they are rendered: the provider does not promise anything this side could safely read as a date.

updatedAtstring | nullrequired

The date and time for updated at, in UTC.

presetsobject[]required

The value of presets.

Show child attributes
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.

errorstring | nullrequired

What went wrong, when the filtering could not be read.

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.