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 rebuild

Overview: Rebuilds a VM.

rebuild expects the following parameters:

  • vm_id – The identifier of the virtual machine in question.
  • image_id – The ID of the operating system template the VM will be spawn from. (Use cloud.list_images for valid image options or cloud.list_templates for valid user defined template options)

Example:

$params = array(
        'vm_id' => 1,
        'image_id' => 1
        );
$api->call('cloud.rebuild', $params);

Output:

Array
(
    [status] => 1
)