Backup results

RESTful knowledge exchange

Re: Backup results

Veeam Logoby Cathy » Mon Sep 01, 2014 3:36 am

Yes!
We use query?type=BackupTaskSession&format=entities&filter=(JobName==myTest) and get 200 OK with null list.
However, we change to use powershell Get-VBRBackupSession -Name "myTest" could get correct return.
Cathy
Influencer
 
Posts: 16
Liked: never
Joined: Fri Jun 13, 2014 3:48 am
Full Name: Cathy Hu

Re: Backup results

Veeam Logoby v.Eremin » Mon Sep 01, 2014 8:39 am

In fact, Backup session and Backup Task session are two different entities. If you want to get Backup sessions, you have to query "/BackupSessions" resource, not "/BackupTaskSessions" one. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Backup results

Veeam Logoby Cathy » Tue Sep 02, 2014 7:15 am

Yes, we know "The /backupTaskSession resource provides information about a specific task within a backup job session." Backup session and Backup Task session are different.
However, we only use powershell to prove there is a backup job there with JobName=myTest.
powershell:: Get-VBRBackupSession –Name “myTest”|Get-VBRTaskSession did return correct data.
Cathy
Influencer
 
Posts: 16
Liked: never
Joined: Fri Jun 13, 2014 3:48 am
Full Name: Cathy Hu

Re: Backup results

Veeam Logoby v.Eremin » Tue Sep 02, 2014 8:23 am

My point was that BackupTaskSession doesn't seem to support JobName or JodUID as querying parameters. And if you want to use them, you should query the higher entity - BackupJobSession. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Backup results

Veeam Logoby Cathy » Thu Sep 04, 2014 10:32 am

http://helpcenter.veeam.com/backup/70/r ... ns_id.html
I think (GET)/backupTaskSessions/ should support JobName or JobUid as querying parameters. Or it would not return 200OK.
We want to get VM's restore point and its backup result(for each restore point) in a specific backup JOB. That is why we need to use JobName or JobUid as querying parameter.
Cathy
Influencer
 
Posts: 16
Liked: never
Joined: Fri Jun 13, 2014 3:48 am
Full Name: Cathy Hu

Re: Backup results

Veeam Logoby v.Eremin » Thu Sep 04, 2014 11:35 am

After having investigated this behavior further, it was confirmed that backupTaskSession entity should accept JobName and JobUID as querying parameters (thus, the documentation). However, currently it doesn't work that way. So, we tracked that as a bug. Chances are, it will be fixed in the upcoming release. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Backup results

Veeam Logoby Cathy » Fri Sep 12, 2014 2:30 am

One more thing about query:
We would get 400 error from query?type=restoreSession&format=Entities&sortAsc=name&filter=(VmDisplayName=="vse-in1 (13638542-3fcd-4ebf-a75d-ccf502970f6b)-0"),(VmDisplayName=="vse-in2 (3c07ee1c-66de-4a6f-b086-c68ca215d117)-0"),(VmDisplayName=="win2008-sch (9abc15fc-2a98-463b-a9e4-889e71fbc21d)")

However, it would return 200 OK if we only set 2 VMDisplayName. ex: query?type=restoreSession&format=Entities&sortAsc=name&filter=(VmDisplayName=="vse-in1 (13638542-3fcd-4ebf-a75d-ccf502970f6b)-0"),(VmDisplayName=="vse-in2 (3c07ee1c-66de-4a6f-b086-c68ca215d117)-0")

Just want to make sure we could only set 2 VMDisplayname filter. (Can't set 3 or more VMDisplayname filter.) Or maybe our restful API strings are too long.
Cathy
Influencer
 
Posts: 16
Liked: never
Joined: Fri Jun 13, 2014 3:48 am
Full Name: Cathy Hu

Re: Backup results

Veeam Logoby v.Eremin » Fri Sep 12, 2014 1:28 pm

I wasn't able to confirm that. I've just query /restoresssions, using three different VM names as a filter, and everything's worked as expected.

Code: Select all
query?type=RestoreSession&format=Entities&sortAsc=name&filter=(VMDisplayName=="First VM"), (VMDisplayName=="Second VM"), (VMDisplayName=="Third VM")


Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Previous

Return to RESTful API



Who is online

Users browsing this forum: No registered users and 3 guests