Overview
Resizing a VM allows you to change its CPU and RAM allocation. This is useful when your workload requirements change and you need more or fewer resources.Prerequisites
- The VM must be stopped before resizing
- An API key and project ID
Step 1: Stop the VM
Resizing requires the VM to be inpassive (stopped) state:
Step 2: Resize the VM
Change the CPU and RAM allocation:| Field | Type | Description |
|---|---|---|
cpu | integer | New vCPU count |
ram | integer | New RAM in GB |
Resizing changes your hourly billing rate. The new rate takes effect immediately after the resize completes.
Step 3: Start the VM
Start the VM with its new resources:Important Notes
- Storage cannot be reduced — you can only increase storage, not decrease it
- IP address is preserved — resizing does not change your VM’s public or private IP
- Data is preserved — all data on the VM is retained during resize
- Billing changes immediately — the new
price_per_hourapplies as soon as the resize completes
Next Steps
- Manage VMs — Start, stop, and reboot
- API Reference: Resize VM — Full API specification