Get the IPv4 firewall state for a VPS (enabled flag, default policy and rules).
Request
Add parameter in header API-key
Example:API-key: ********************
or
Request Code Samples
curl --location 'https://mijn.host/api/v2/vps/12345/firewall' \
--header 'Accept: application/json' \
--header 'User-Agent: my-application/1.0.0' \
--header 'API-key: <api-key>' \
--header 'Content-Type: application/json'
Responses
application/json
{
"status": 200,
"status_description": "Request successful.",
"data": {
"enabled": true,
"default_policy": "DROP",
"rules": [
{ "direction": "OUT", "decision": "ACCEPT", "protocol": "TCP", "port": "ALL", "source_ip": "0.0.0.0/0" },
{ "direction": "IN", "decision": "ACCEPT", "protocol": "TCP", "port": "22,80,443", "source_ip": "0.0.0.0/0" }
],
"locked": null
}
}
Modified at 2026-09-07 15:03:25