Get disk information for a Virtual Server

Retrieve detailed information about all disks connected to a specific Virtual Machine (VM). This returns details like size, usage, and disk type. The returned `requestId` can be used for follow-up calls to other API endpoints.

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 array
401
error string
message string
code string
timestamp string
requestId string
GET https://cloud.hostup.se/api/vm/{vmid}/disks
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/vm/14611/disks" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": [
    {
      "name": "string",
      "storage": "string",
      "path": "string",
      "size": "string",
      "type": "string",
      "device": "string",
      "isCdrom": true,
      "bootOrder": "string",
      "sizeBytes": 0,
      "sizeFormatted": "string",
      "usedBytes": 0,
      "usedFormatted": "string",
      "usedPercent": 0,
      "readBytes": 0,
      "writeBytes": 0,
      "readOps": 0,
      "writeOps": 0
    }
  ]
}