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.
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 https://cloud.hostup.se/api/vm/{vmid}/storage curl -X GET "https://cloud.hostup.se/api/vm/14611/storage" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"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
}
}