API Docs

This functionality of the Ubiquity API has been disabled. Looking for information on this transition to LeaseWeb? Click here for answers to FAQs and here for information on the LeaseWeb customer portal. Click here for information about the Leaseweb API.

Get to know resize

Overview: Updates a VM to a new flavor. VMs can only be resized to a larger flavor.

resize expects the following parameters:

  • vm_id – The identifier of the virtual machine in question.
  • flavor_id – The id of the new flavor to update the VM to. Use cloud.list_flavors to retrieve valid flavors. The selected flavor must be larger than what is currently being used.


$params = array(
	    'vm_id' => 1,
	    'flavor_id' => 3
$api->call('cloud.resize', $params);


    [status] => 1