Get backups tree from backup server.
PRL_HANDLE PrlSrv_GetBackupTree( PRL_HANDLE hSourceServer, PRL_CONST_STR sUuid, PRL_CONST_STR sTargetHost, PRL_UINT32 nTargetPort, PRL_CONST_STR sTargetSessionId, PRL_UINT32 backup_flags, PRL_UINT32 reserved_flags, PRL_BOOL force_operation );
PrlApiVm.h
PVMSL_LOW_SECURITY, PVMSL_NORMAL_SECURITY, PVMSL_HIGH_SECURITY
A handle of type PHT_JOB containing the results of this asynchronous operation or PRL_INVALID_HANDLE if there's not enough memory to instantiate the job object.
Some of the important XML elements are:
<VmItem> - root element of a branch containing information about a virtual machine. This element, in turn, may contain a set of elements describing full backups of this virtual machine.
<BackupItem> - root element of a branch containing information about a full backup. This element, in turn, may contain a set of elements describing incremental backups of this full backup.
<PartialBackupItem> - root element of a branch containing information about an incremental backup.
<Id> - the backup ID. The ID is required when performing other operations on a backup.
<DateTime> - the backup creation date and time.
<Type> - backup type {'f' - full, 'i' - incremental}
<Size> Backup size in bytes
To get the return code from the PHT_JOB object, use the PrlJob_GetRetCode function. Possible values are:
PRL_ERR_INVALID_ARG - invalid handle was passed.
PRL_ERR_INVALID_PARAM - invalid combination of backup_flags was passed.
PRL_ERR_SUCCESS - function completed successfully.
To get a backup tree from the PHT_JOB object: