Resize the root disk of a virtual machine
Resizes the root disk of a virtual machine. The new size must be larger than the current root disk size.
Authentication
X-API-Client-IDstring
API Client ID
X-API-Client-Secretstring
API Client Secret
Path parameters
id
ID of the virtual machine
Request
This endpoint expects an object.
sizeGb
The new size of the root disk in GB. Must be larger than the current root disk size.
reboot
Whether to automatically reboot the VM after the resize completes. Only applies when the VM is running. A reboot is required for the OS to recognize the new disk size.
Response
The disk resize operation has been initiated
id
Virtual machine ID.
status
Transitional state during the resize.
rebootInitiated
True when the VM was running and reboot=true, so the new disk size was applied via a reboot. False otherwise (VM was already stopped, or reboot=false, or the reboot step failed — see message).
message
Present only when the disk resize succeeded but the follow-up reboot failed; surfaces a remediation hint to the caller.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error