Get firewall rules for a VM

Retrieve current firewall rules for a specific virtual server (VM). This information is crucial for understanding and managing your server's network security. Use the VM ID obtained from endpoints like GET /api/vm/{vmid}/status.

Path Parameters

vmid integer · min: 1 required Example

Unique vmid identifier

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data array
401
error string
message string
code string
timestamp string
requestId string
GET https://cloud.hostup.se/api/vm/{vmid}/firewall
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/vm/17562/firewall" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": [
    {
      "type": "string",
      "dport": "string",
      "digest": "string",
      "source": "string",
      "action": "string",
      "ipversion": 0,
      "enable": 0,
      "proto": "string",
      "pos": 0
    }
  ]
}