v12

latestOpenAPI 3.0.3raw.githubusercontent.com2026-06-1811583196.1 KB
Virtual Machines

Resize VM Disk

Increase the primary disk of a virtual machine. The VM must be stopped. Disk size can only be increased.

Billing

For subscription VMs, the storage cost difference is calculated pro-rata and deducted from credits, then account balance. Returns 402 if insufficient balance.

post/api/v1/vms/{id}/disk/resize

Path parameters

idstring uuid required

VM ID (UUID)

Headers

X-Project-IDstring uuid required

Project ID. Required for all mutating operations (create, delete, power actions, resize).

Request body

new_sizeinteger required

New disk size in GB. Must be larger than current size.

Response

VM disk resized

successboolean
messagestring
idstring

Resource ID.

Example response

{
  "success": true
}