Retrieve detailed memory usage information for a specific virtual server (VM). This includes total, free, used memory, and percentage usage. A unique ID (requestId) is returned for tracking.
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 error string message string code string timestamp string requestId string https://cloud.hostup.se/api/vm/{vmid}/agent/memory curl -X GET "https://cloud.hostup.se/api/vm/10415/agent/memory" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"available": true,
"meminfo": {
"total": 0,
"free": 0,
"available": 0,
"buffers": 0,
"cached": 0,
"swapTotal": 0,
"swapFree": 0,
"usedReal": 0,
"usedPercent": 0,
"availablePercent": 0
}
}
}