REST API knowledge exchange
Post Reply
dcoates
Service Provider
Posts: 1
Liked: never
Joined: Feb 20, 2017 10:34 am
Full Name: David Coates
Contact:

Backup reports with failure information from API

Post by dcoates »

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
benyoung
Veeam Software
Posts: 149
Liked: 47 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: Backup reports with failure information from API

Post by benyoung » 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest