API Docs

Get to know backup_restore

Overview: backup_restore restores a backup to an indicated VM.

backup_restore expects the following parameters:

  • vm_id – The identifier of the VM you want to create the backup from.
  • backup_id – The unique ID of the backup you want to restore

Example:

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

Output:

Array
(
    [status] => 1
)