Single job status via Rest API?

RESTful knowledge exchange

Single job status via Rest API?

Veeam Logoby david.buchanan » Thu Nov 24, 2016 6:25 am

Hi All,

How to use a API is something that I'm lacking skills in so I'm hoping someone can save me some time and tell me if what I'm trying to do is even possable.

Currently we have multiple clients with Veeam B&R servers all reporting to our Enterprise Manager server.

I'd like to be able to query our Eneterprise Manager server and get info on specific jobs. I've already got a query working that reports on the overall status of all jobs (ie: if gives me the totals for success, failed, etc). But what I'd like is to query one single job and get it's status. Prehaps maybe a few other items such as last results, most recent restore point, etc.

Is this something that the RestAPI can do?

Thanks,
David.
david.buchanan
Enthusiast
 
Posts: 41
Liked: 8 times
Joined: Tue Jun 02, 2015 12:44 am
Full Name: David

Re: Single job status via Rest API?

Veeam Logoby tdewin » Fri Nov 25, 2016 2:31 pm 1 person likes this post

Yes, you are looking for sessions.

You can follow the link from the job itself via:

Code: Select all
<Link Rel="Down" Type="BackupJobSessionReferenceList" Href="http://localhost:9399/api/jobs/da4a15c2-04e7-4135-b876-577249d3d720/backupSessions" />)

RestorePoints and VMRestorePoints

Thanks.
tdewin
Veeam Software
 
Posts: 1090
Liked: 378 times
Joined: Fri Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin

Re: Single job status via Rest API?

Veeam Logoby david.buchanan » Mon Nov 28, 2016 12:08 am

Thanks TDewin, appericate it.

Regards,
David.
david.buchanan
Enthusiast
 
Posts: 41
Liked: 8 times
Joined: Tue Jun 02, 2015 12:44 am
Full Name: David


Return to RESTful API



Who is online

Users browsing this forum: No registered users and 3 guests