Check the current status of a specific virtual server (VM), including whether it is running or stopped. It also returns detailed information about the server's resource usage such as CPU, memory, and disk space. This endpoint returns a 'requestId' for tracking operations, and 'vmid' and 'pid' as important identifiers for subsequent actions.
vmid integer · min: 1 required Example Unique vmid identifier
Accept Example Content-Type Example success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string error string message string retryAfter string requestId string https://cloud.hostup.se/api/vm/{vmid}/status curl -X GET "https://cloud.hostup.se/api/vm/15520/status" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"vmid": "string",
"node": "string",
"name": "string",
"status": "string",
"uptime": 0,
"cpu": 0,
"cpus": 0,
"maxcpu": 0,
"mem": 0,
"maxmem": 0,
"disk": 0,
"maxdisk": 0,
"netin": 0,
"netout": 0,
"diskread": 0,
"diskwrite": 0,
"pid": 0,
"os": "string",
"pending_tasks": [
"string"
]
}
}