Return VPS disks, filesystem usage, block IO counters, guest-agent availability, and disk action gates. Get {id} from GET /api/v2/vps. Use this endpoint when an agent needs to explain disk usage or whether a disk can be detached, resized, or expanded.
read:vm
Use Authorization: Bearer <token> for API keys. Dashboard sessions may also use hostup_session.
id string required
Example: vps_01hxa3b4c5d6e7f8g9h0j1k2m3 Public VPS ID from `GET /api/v2/vps` `data[].id`. Do not invent this value; use the exact ID returned by the referenced API response.
Accept Example Content-Type Example disks array<object> required disks[].id stringnull required
· Example: vpsdisk_01hxa3b4c5d6e7f8g9h0j1k2m3 disks[].name stringnull required
· Example: scsi0 disks[].type stringnull required
· Example: SCSI disks[].device stringnull required
· Example: /dev/scsi0 disks[].isCdrom boolean required
· Example: false disks[].bootOrder numbernull required
· Example: 1 disks[].capacity object required disks[].capacity.totalGb number required
· Example: 80 disks[].capacity.usedGb number required
· Example: 24.2 disks[].capacity.freeGb number required
· Example: 55.8 disks[].capacity.usagePercent number required
· Example: 30.25 disks[].io object required disks[].io.readGb number required
· Example: 120.5 disks[].io.writeGb number required
· Example: 64.2 disks[].io.readOperations number required
· Example: 102400 disks[].io.writeOperations number required
· Example: 51200 disks[].actions object required disks[].actions.canDetach object required disks[].actions.canDetach.allowed boolean required
· Example: true disks[].actions.canDetach.reason stringnull required
· Example: null disks[].actions.canDetach.code stringnull
· Example: pending_order Machine-readable reason code when an action is blocked.
disks[].actions.canResize object disks[].actions.canResize.allowed boolean required
· Example: true disks[].actions.canResize.reason stringnull required
· Example: null disks[].actions.canResize.code stringnull
· Example: pending_order Machine-readable reason code when an action is blocked.
disks[].actions.canExpand object disks[].actions.canExpand.allowed boolean required
· Example: true disks[].actions.canExpand.reason stringnull required
· Example: null disks[].actions.canExpand.code stringnull
· Example: pending_order Machine-readable reason code when an action is blocked.
filesystems array<object> required filesystems[].mountpoint stringnull required
· Example: / filesystems[].type stringnull required
· Example: ext4 filesystems[].name stringnull required
· Example: rootfs filesystems[].devices array<string> required
· Example: ["/dev/sda1"] filesystems[].capacity object required filesystems[].capacity.totalGb number required
· Example: 78 filesystems[].capacity.usedGb number required
· Example: 24.2 filesystems[].capacity.freeGb number required
· Example: 53.8 filesystems[].capacity.usagePercent number required
· Example: 31.03 blockStats object required blockStats.totalReadGb number required
· Example: 120.5 blockStats.totalWriteGb number required
· Example: 64.2 guestAgentAvailable boolean required
· Example: true vmNotRunning boolean required
· Example: false type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on `detail`.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when `code` is `invalid_request`.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on `detail`.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when `code` is `invalid_request`.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on `detail`.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when `code` is `invalid_request`.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on `detail`.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when `code` is `invalid_request`.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on `detail`.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when `code` is `invalid_request`.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on `detail`.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when `code` is `invalid_request`.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object https://cloud.hostup.se/api/v2/vps/{id}/storage curl -X GET "https://cloud.hostup.se/api/v2/vps/vps_01hxa3b4c5d6e7f8g9h0j1k2m3/storage" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" {
"disks": [
{
"id": "vpsdisk_01hxa3b4c5d6e7f8g9h0j1k2m3",
"name": "scsi0",
"type": "SCSI",
"device": "/dev/scsi0",
"isCdrom": false,
"bootOrder": 1,
"capacity": {
"totalGb": 80,
"usedGb": 24.2,
"freeGb": 55.8,
"usagePercent": 30.25
},
"io": {
"readGb": 120.5,
"writeGb": 64.2,
"readOperations": 102400,
"writeOperations": 51200
},
"actions": {
"canDetach": {
"allowed": false,
"reason": "Cannot detach root disk."
},
"canResize": {
"allowed": false,
"reason": "To expand your main disk, use Billing -> Add Resources."
},
"canExpand": {
"allowed": false,
"reason": "Guest agent is not installed. Install qemu-guest-agent on the VM to enable disk expansion."
}
}
}
],
"filesystems": [
{
"mountpoint": "/",
"type": "ext4",
"name": "rootfs",
"devices": [
"/dev/sda1"
],
"capacity": {
"totalGb": 78,
"usedGb": 24.2,
"freeGb": 53.8,
"usagePercent": 31.03
}
}
],
"blockStats": {
"totalReadGb": 120.5,
"totalWriteGb": 64.2
},
"guestAgentAvailable": true,
"vmNotRunning": false
}