API Docs

Get to know backup_list

Overview: Lists all backups for an indicated VM.

backup_list expects the following parameters:

  • vm_id – The identifier of the virtual machine in question.

Example:

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

Output:

Array
	(
	    [status] => 1
	    [data] => Array
	(
		[0] => Array
			(
				[id] => 5
				[instance_id] => 1
				[backupServer] => 192.168.0.1
				[raw_size] => 15
				[compressed_size] => 517030086
				[file_name] => d849e355ed65d6234541217b5a5ca733
				[image_alias] => image_alias_1
				[created_on] => 1406851556
			)

		[1] => Array
			(
				[id] => 13
				[instance_id] => 1
				[backupServer] => 192.168.0.2
				[raw_size] => 16
				[compressed_size] => 617030086
				[file_name] => e849e355ed65d6234518817b5a5ca732
				[image_alias] => image_alias_2
				[created_on] => 1406920173
			)

	)
)