How to Resize a Vultr Optimized Cloud Compute Instance
-
by Blog Admin
- 5
How to Resize a Vultr Optimized Cloud Compute Instance
Learn how to increase or decrease the resources of your Vultr Optimized Cloud Compute instance.
Resizing an instance activates a new plan with more vCPUs, RAM, and storage to match your needs. Downgrading is not supported while upgrading the instance enables a higher plan without changes to the instance’s data or file system.
Follow this guide to resize a Vultr Optimized Cloud Compute instance using the Vultr Customer Portal, API, CLI, or Terraform.
Vultr Customer Portal
- Navigate to Products and click Compute.
- Click your target Vultr Optimized Cloud Compute instance to open its management page.
- Navigate to the Settings tab.
- Find and click Change Plan on the left navigation menu.
- Click the Change Plan drop-down and select a new instance plan.
- Click Upgrade to resize your instance.
- Check the confirmation prompt and click Change Plan to apply changes.
Vultr API
- Send a
GET
request to the List Instances endpoint and note your target instance’s ID.console$ curl "https://api.vultr.com/v2/instances" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
PATCH
request to the Update Instance endpoint to resize the instance with a new plan and note the Job ID.console$ curl "https://api.vultr.com/v2/instances/{instance-id}" \ -X PATCH \ -H "Authorization: Bearer ${VULTR_API_KEY}" \ -H "Content-Type: application/json" \ --data '{ "plan" : "instance_plan_id" }'
- Send a
GET
request to the Get Instance Job endpoint to monitor and get availble information for the upgrade plan instance job.console$ curl "https://api.vultr.com/v2/instances/jobs/{job-id}" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
Vultr CLI
- List all available instances and note your target instance’s ID.
console
$ vultr-cli instance list
- List all available plans the instance can resize to.
console
$ vultr-cli instance plan list <instance-id>
- Resize the instance to a new plan.
console
$ vultr-cli instance plan upgrade <instance-id> --plan <instance_plan_id>
Terraform
- Open your Terraform configuration for the existing Optimized Cloud Compute instance.
- Update the
plan
value in the instance resource to the new Optimized Cloud Compute plan code.terraformresource "vultr_instance" "occ" { # ...existing fields (region, os_id, label, etc.) plan = "vhp-4c-8gb" # Example: upgrade from vhp-2c-4gb to vhp-4c-8gb }
- Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
How to Resize a Vultr Optimized Cloud Compute Instance Learn how to increase or decrease the resources of your Vultr Optimized Cloud Compute instance. Resizing an instance activates a new plan with more vCPUs, RAM, and storage to match your needs. Downgrading is not supported while upgrading the instance enables…
How to Resize a Vultr Optimized Cloud Compute Instance Learn how to increase or decrease the resources of your Vultr Optimized Cloud Compute instance. Resizing an instance activates a new plan with more vCPUs, RAM, and storage to match your needs. Downgrading is not supported while upgrading the instance enables…