DeluxHostAPI Reference
Firewall

List protection rules

GET
/v1/firewall/rules

Ten per page, the panel's own page size. state is working once the rule is enforced; a rule you just created is creating, and one being removed is delete.

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.

page?integer
Range1 <= value
Default1

Response Body

One page of rules.

application/json
  1. response
items*array<>
total*integer
curl -X GET 'https://api.deluxhost.net/v1/firewall/rules?ip=string' \  -H "Authorization: Bearer $DELUXHOST_TOKEN"
Example Response
{  "items": [    {      "id": 0,      "ip": "string",      "port": 0,      "protocol": "string",      "application": "string",      "state": "string"    }  ],  "total": 0}