Virtual Machines
Resize VM
Changed onResize a virtual machine's CPU and RAM by selecting a new pricing plan. The VM must be stopped before resizing.
A Cost-Optimized server resizes only to another cost_optimized plan, and other servers cannot move to one: such a request is refused.
Billing
For subscription VMs, the price difference is calculated pro-rata for the remaining billing period:
- Upgrade — the difference is deducted from your account balance. If your balance is insufficient, the request fails with 402.
- Downgrade — the pro-rata credit is added to your account balance.
The new subscription price takes effect immediately.
post/api/v1/vms/{id}/resize
Request
- Base URLhttps://api.rafftechnologies.com
- URLhttps://api.rafftechnologies.com/api/v1/vms/{id}/resize
- AuthAPI key in header X-API-Key
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
Response
VM resized
Example response
{
"success": true
}Changes
- warning
removed the optional property
/from the response with the status
- warning
- info
added the media type
application/jsonfor the response with the status
- info