Agentless, cloud-native backup for Microsoft Azure
Post Reply
scrat
Enthusiast
Posts: 54
Liked: 4 times
Joined: Jul 26, 2022 5:14 pm
Contact:

REST API - Check last full backup and last health check

Post by scrat »

Hi team,
we have a report for our entire Veeam platform (VBR, VBO and VBA). For VBR/VBO we do it with PS, but for VBA (as there is no PS module) we do it via Rest API. I can't see how to get the last full of a SQL policy or even the last health check.

For the full I understand that it's not possible because they don't exist as such, they are "forever incremental", right?
https://helpcenter.veeam.com/docs/vbazu ... tml?ver=70

For a health check I get the following info that I can't relate to a policy.

Code: Select all

id : 3326874d-d089-4bdb-8ba3-0e6b44c9e4c3
type : HealthCheck
localizedType : Health Check
executionStartTime : 2024-06-01T21:00:09.524068Z
executionStopTime : 2024-06-02T13:38:55.600643Z
executionDuration : 16:38:46:0765750
status : Success
usn : 3287858
_links : @{self=; log=}
_embeddedResources : 
On the web, in Session Log, it does relate the session to the policy, how does it do that?

Thanks,
Best regards.
nielsengelen
Product Manager
Posts: 5899
Liked: 1235 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: REST API - Check last full backup and last health check

Post by nielsengelen »

Hi,

Only the first backup is a full. From there on it is incremental going forward.

Health check has an endpoint available (https://helpcenter.veeam.com/docs/vbazu ... eckedItems). Could you have a look at it or clarify what info you can’t find?

Thanks.
GitHub: https://github.com/nielsengelen
scrat
Enthusiast
Posts: 54
Liked: 4 times
Joined: Jul 26, 2022 5:14 pm
Contact:

Re: REST API - Check last full backup and last health check

Post by scrat »

Thanks nielsengelen! I know it.

But how do you relate this request to the name of the SQL Policy? Checking all the resources of the SQL Policies to see which one that item belongs to?
nielsengelen
Product Manager
Posts: 5899
Liked: 1235 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: REST API - Check last full backup and last health check

Post by nielsengelen »

Hi,

A health check is performed against the virtual machine or database backup so you'll need to get the details of a policy with the resource details and then query the health check session to get the output.
GitHub: https://github.com/nielsengelen
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest