Check how much storage space is purchased and used for a specific virtual server (VPS). Use this to monitor disk space and available space for your VM. The endpoint returns a 'requestId' that can be used for follow-up actions.
vmid integer · min: 1 required Example Unique vmid identifier
Accept Example Content-Type Example success boolean timestamp string requestId string data object https://cloud.hostup.se/api/vm/{vmid}/storage-quota curl -X GET "https://cloud.hostup.se/api/vm/16279/storage-quota" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"attachable": {
"purchasedGb": 0,
"usedGb": 0,
"availableGb": 0
},
"mainDisk": {
"purchasedGb": 0
}
}
}