Get memory information for a virtual server

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.

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 object
401
error string
message string
code string
timestamp string
requestId string
429
error string
message string
retryAfter string
requestId string
504
error string
message string
code string
timestamp string
requestId string
GET https://cloud.hostup.se/api/vm/{vmid}/agent/memory
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/vm/10415/agent/memory" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "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
    }
  }
}