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.
vmid integer · min: 1 required Example Unique vmid identifier
Accept Example Content-Type Example success boolean timestamp string requestId string data array error string message string code string timestamp string requestId string https://cloud.hostup.se/api/vm/{vmid}/firewall curl -X GET "https://cloud.hostup.se/api/vm/17562/firewall" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"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
}
]
}