Skip to main content

Resize Virtual Machine

https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{virtual_machine_id}/resize

Updates the hardware specifications for an existing virtual machine. Include the virtual machine ID in the path and provide the new configuration, referred to as a flavor, in the body of the request. For additional information on VM resizing, click here.


Path parameters


id integer   Required

The unique identifier of the virtual machine being resized.


Body parameters


flavor_name string   Required

The name of the flavor designating the hardware specifications for the virtual machine.
Call the GET /core/flavors endpoint to retrieve a list of available flavors.


Attributes


status boolean

Indicates the result of the request to resize the VM. true signifies success, while false indicates an error.


message string

A description of the status of the request to resize the VM.

Example request
curl -X POST "https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{id}/resize" \
-H "accept: application/json"\
-H "api_key: YOUR API KEY"
-H "content-type: application/json" \
-d '{
"flavor_name": "string"
}'
Response
{
"status": true,
"message": "string"
}

Returns


Returns the status of the request to resize the virtual machine. A true status indicates success, otherwise an error has occurred.


Back to top