Agentless, cloud-native backup for Microsoft Azure
Post Reply
ks.any.cloud
Service Provider
Posts: 49
Liked: 3 times
Joined: Mar 04, 2021 2:17 pm
Full Name: Kim Svane
Location: Denmark
Contact:

REST API Storage consumption per VM

Post by ks.any.cloud »

Hi everybody

I have been working on a reporting system for a customer which has en Air-gapped backup using the VBA.
On that report the customer would like to see the total amount of backup storage per. VM.

Does anybody know of an endpoint which gives this info ?
Kim Svane @ any.cloud
lyudmila.ezerskaya
Veeam Software
Posts: 109
Liked: 34 times
Joined: Oct 04, 2021 4:08 pm
Full Name: Lyudmila Ezerskaya
Contact:

Re: REST API Storage consumption per VM

Post by lyudmila.ezerskaya » 1 person likes this post

Hello Kim!
Veeam Backup for Microsoft Azure REST API has an endpoint that provides the total storage space consumed by backups and archives. You can find more information in the REST API Reference.

Unfortunately, we do not have an endpoint specifically designed to address your request at this time.
ks.any.cloud
Service Provider
Posts: 49
Liked: 3 times
Joined: Mar 04, 2021 2:17 pm
Full Name: Kim Svane
Location: Denmark
Contact:

Re: REST API Storage consumption per VM

Post by ks.any.cloud »

Hello Lyudmila

Thanks for the response.
I will try to work with that endpoint.

Can you elaborate on this one: /api/v5/restorePoints/virtualMachines?VirtualMachineId=ID
The backupSizeBytes what does that cover ?

The reason i'm asking, is that if i sum all results, this does not match with what is showing in the Web UI.
Further more - could there be a possibility to seperate/filter on tat call, since snapshots lived besides the VM's, and backup does not.
In out case where this is located in two different tenants entirely, the snapshots are not as relevant.
Kim Svane @ any.cloud
lyudmila.ezerskaya
Veeam Software
Posts: 109
Liked: 34 times
Joined: Oct 04, 2021 4:08 pm
Full Name: Lyudmila Ezerskaya
Contact:

Re: REST API Storage consumption per VM

Post by lyudmila.ezerskaya »

Could you please specify which version of the product you are using and which numbers in the UI you are referring to? This will help us provide you with accurate assistance.
ks.any.cloud
Service Provider
Posts: 49
Liked: 3 times
Joined: Mar 04, 2021 2:17 pm
Full Name: Kim Svane
Location: Denmark
Contact:

Re: REST API Storage consumption per VM

Post by ks.any.cloud »

Sure, version 5.1.0.75.
The numbers are on Protected Data - Backup Size on the list of vm's.
Kim Svane @ any.cloud
lyudmila.ezerskaya
Veeam Software
Posts: 109
Liked: 34 times
Joined: Oct 04, 2021 4:08 pm
Full Name: Lyudmila Ezerskaya
Contact:

Re: REST API Storage consumption per VM

Post by lyudmila.ezerskaya »

Thank you for sharing. Let us check something and we will get back to you soon.
lyudmila.ezerskaya
Veeam Software
Posts: 109
Liked: 34 times
Joined: Oct 04, 2021 4:08 pm
Full Name: Lyudmila Ezerskaya
Contact:

Re: REST API Storage consumption per VM

Post by lyudmila.ezerskaya »

Hi Kim!
To retrieve the storage size consumed by backups for a specific VM, you can use a GET request to the /restorePoints/virtualMachines endpoint.

Find the latest backup restore points created for the VM in each backup chain (per repository) and summarize the values of the 'latestChainSizeBytes' properties. You can expand the response schema using the 'Expand=RepositoryName' filter to distinguish backup chains.

For example, the GET /restorePoints/virtualMachines?VirtualMachineId={someID}&StorageAccessTier=Hot&Expand=RepositoryName request will retrieve all restore points in all backup chains created in repositories of the Hot access tier and include the names of the repositories where the restore points are stored.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests