Assign a specific firewall group to a virtual server (VM). This is useful for applying network rules to your server to enhance security. The endpoint returns an ID to track the assignment status.
vmid integer · min: 1 required Example Unique vmid identifier
Accept Example Content-Type Example groupId string required success boolean timestamp string requestId string data object https://cloud.hostup.se/api/vm/{vmid}/firewall/group curl -X POST "https://cloud.hostup.se/api/vm/17394/firewall/group" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"groupId": "string"
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"assignment": {
"id": "string",
"group_id": "string",
"hostbill_account_id": "string",
"client_id": 0,
"proxmox_vm_id": "string",
"server_id": "string",
"last_applied_at": "string",
"last_applied_status": "string",
"last_error": "string",
"created_at": "string",
"updated_at": "string"
},
"message": "string"
}
} {
"groupId": "string"
}