DeluxHostAPI Reference
Firewall

Get protection traffic statistics

GET
/v1/firewall/traffic

The filter's own view of an address: what reached the server and what it discarded.

passUnit and dropUnit are chosen by the panel from the window and are not always the same — read both rather than assuming Kb.

Authorization

apiToken firewall:read
headerAuthorizationBearer <token>

A personal API token: Authorization: Bearer dh_live_…. See Authentication for scopes.

Scope: firewall:read

Query Parameters

ip*string

One of your protected addresses, from GET /v1/firewall/ips. Any other address is a 403.

period?string

How far back to go. An unknown value falls back to 10m.

Default"10m"
Value in"10m""1h""1d""1w"

Response Body

The series, oldest first.

application/json
  1. response
points*array<>
passUnit*string

Unit of pass, e.g. Kb. Chosen by the panel.

dropUnit*string

Unit of drop. Not necessarily passUnit.

curl -X GET 'https://api.deluxhost.net/v1/firewall/traffic?ip=string' \  -H "Authorization: Bearer $DELUXHOST_TOKEN"
Example Response
{  "points": [    {      "time": "string",      "pass": 0,      "drop": 0    }  ],  "passUnit": "string",  "dropUnit": "string"}