Backup reports with failure information from API

RESTful knowledge exchange

Backup reports with failure information from API

Veeam Logoby dcoates » Tue May 09, 2017 12:25 pm

Hi All,

I am looking to use the REST API that Veeam provide to build a report of any failed jobs including the status i.e. Warning and Error and Failed. I haven't found anything that i can use to build a report.

For now i just want some really basic information. i.e. the job name the status and the errors that occurred to fail or cause a warning. has anyone got anything that can do this, or can point me in the correct direction?

I should point out i can get a summary of passed and failed jobs just need some more information.

Kind regards,
David
dcoates
Lurker
 
Posts: 1
Liked: never
Joined: Mon Feb 20, 2017 10:34 am
Full Name: David Coates

Re: Backup reports with failure information from API

Veeam Logoby benyoung » Wed May 10, 2017 12:51 am 1 person likes this post

Hi David, what i believe you are looking for is a "BackupSession"

You can display a big list by hitting
/api/backupSessions?format=Entity

Or you if you only want the session history for a specific job you can use
/api/jobs/{jobid}/backupSessions?format=Entity

Or you can use the QueryService
/api/query?type=BackupJobSession&format=entites&{your filter/sort/page params here if needed}

Hope that helps

Fyi to get more info on the session itself such as each server backed up, start/ed/success/total size and or error messages hit up for each session
/api/backupSessions/{backupsessionid}/taskSessions?format=Entity
benyoung
Service Provider
 
Posts: 36
Liked: 7 times
Joined: Wed May 25, 2016 3:29 am
Full Name: Ben Young


Return to RESTful API



Who is online

Users browsing this forum: No registered users and 2 guests