RESTful knowledge exchange
Post Reply
clh_jl
Service Provider
Posts: 14
Liked: 2 times
Joined: Sep 22, 2014 12:49 pm
Contact:

Listing VM ObjectsInJob for a vCloud backup

Post by clh_jl »

Hi,

If vApps are being backed up from vCloud Director, can a list of the virtual machines backed up by a job be retrieved using the API? They are shown in the Veeam GUI.

When vCenter is the source, http://<ip>:9399/api/jobs/<id>?format=Entity contains JobInfo->BackupJobInfo->Includes, which has an ObjectInJob entry for each VM. These are also shown in http://<ip>:9399/api/jobs/<id>/includes.

However when vCloud Director is the source and vApps have been selected, the vApps are the only objects shown in the ObjectInJob list - the individual VMs are not shown.

Thanks.
veremin
Product Manager
Posts: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Listing VM ObjectsInJob for a vCloud backup

Post by veremin »

I don't have a console at hand right now, but what if you go to /backupTaskSessions and see whether VMs inside a given vApp are reflected there? Thanks.
clh_jl
Service Provider
Posts: 14
Liked: 2 times
Joined: Sep 22, 2014 12:49 pm
Contact:

Re: Listing VM ObjectsInJob for a vCloud backup

Post by clh_jl »

Hi,

Thanks - we are no longer using the JobInfo to get the list of objects. Instead we are listing backupSessions for the job -> finding the most recent -> looking at the backupTaskSessions -> to get the list of objects inside the job.

1. This had led to a similar problem - the vApp is listed as an object within the job, in the exact same way as a VM - so there's no way of knowing whether an object within the backupTaskSession is a vApp or a VM - any suggestions?

2. In a previous thread it was confirmed that there is no way to retrieve the backup size on disk for a given restore point or its parent backup - is this still the case? If so, is it still the case in Veeam v8?

Thanks.
veremin
Product Manager
Posts: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Listing VM ObjectsInJob for a vCloud backup

Post by veremin »

1. In version v8 we will add type parameter to restore point entity. Using the said parameter, you will be able to identify unambiguously whether it's VM or vApp restore point.
2. Not in v8. But we have tracked this request already. Chances are, that parameter will be added later on.

Thanks.
clh_jl
Service Provider
Posts: 14
Liked: 2 times
Joined: Sep 22, 2014 12:49 pm
Contact:

Re: Listing VM ObjectsInJob for a vCloud backup

Post by clh_jl »

Thanks,

1. We already collect data from vCD using the vCloud API, so as a workaround for now we are checking that database.

2. In that case, is the only way to get the backup size to use Powershell?
veremin
Product Manager
Posts: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Listing VM ObjectsInJob for a vCloud backup

Post by veremin »

2. Both PowerShell and Veeam ONE should provide information regarding restore point size. This information is not currently presenting RESTful API, though.

Thanks.
clh_jl
Service Provider
Posts: 14
Liked: 2 times
Joined: Sep 22, 2014 12:49 pm
Contact:

Re: Listing VM ObjectsInJob for a vCloud backup

Post by clh_jl »

Are there any plans for the restore point size to be included in v8 Update 2?

Thanks.
veremin
Product Manager
Posts: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Listing VM ObjectsInJob for a vCloud backup

Post by veremin »

No plans for Update 2. We do consider adding it in the next major release, however.
clh_jl
Service Provider
Posts: 14
Liked: 2 times
Joined: Sep 22, 2014 12:49 pm
Contact:

Re: Listing VM ObjectsInJob for a vCloud backup

Post by clh_jl »

Hi,

Could you confirm whether it's now possible to distinguish between a vApp and a VM when listing the objects in a backupTaskSession?

Thanks
veremin
Product Manager
Posts: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Listing VM ObjectsInJob for a vCloud backup

Post by veremin »

The said parameter (allowing you to differ between VM and vApp restore points) has been added to Restore Point entity. If I'm not mistaken, successful backup sessions have a reference to newly created restore points which in their turn have the mentioned parameter.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests