Get storage information for a Virtual Server

Retrieve detailed information about the storage configuration of a specific Virtual Machine (VM). This provides insight into disks, file systems, and storage pools, necessary for understanding server storage usage and capacity. Use this API to troubleshoot storage issues or monitor resource allocation on your VM services.

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
GET https://cloud.hostup.se/api/vm/{vmid}/storage
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/vm/14611/storage" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "disks": [
      {
        "name": "string",
        "storage": "string",
        "path": "string",
        "size": "string",
        "type": "string",
        "device": "string",
        "isCdrom": true,
        "bootOrder": 0,
        "sizeBytes": 0,
        "sizeFormatted": "string",
        "usedBytes": 0,
        "usedFormatted": "string",
        "usedPercent": 0,
        "readBytes": 0,
        "writeBytes": 0,
        "readOps": 0,
        "writeOps": 0
      }
    ],
    "filesystems": [
      {
        "mountpoint": "string",
        "type": "string",
        "name": "string",
        "totalBytes": 0,
        "totalFormatted": "string",
        "usedBytes": 0,
        "usedFormatted": "string",
        "freeBytes": 0,
        "freeFormatted": "string",
        "usedPercent": 0
      }
    ],
    "storagePools": [
      {
        "storage": "string",
        "type": "string",
        "content": "string",
        "active": 0,
        "enabled": 0,
        "shared": 0,
        "total": 0,
        "used": 0,
        "available": 0,
        "usedPercent": 0
      }
    ],
    "blockStats": {
      "totalRead": "string",
      "totalWrite": "string",
      "totalReadBytes": 0,
      "totalWriteBytes": 0
    },
    "guestAgentAvailable": true,
    "vmNotRunning": true
  }
}