REST API knowledge exchange
Post Reply
HalYaman
Influencer
Posts: 16
Liked: 1 time
Joined: Feb 13, 2022 11:02 am
Full Name: Hal
Contact:

API - Repository size per Job

Post by HalYaman »

Hi there,

Trying to get the total repository consumption size per job and am unable to find an API that can retrieve the size consumed (to date). is there any way I can get the total size of the repository consumed per job?

Thanks
HY.
chris.arceneaux
VeeaMVP
Posts: 695
Liked: 374 times
Joined: Jun 24, 2019 1:39 pm
Full Name: Chris Arceneaux
Location: Georgia, USA
Contact:

Re: API - Repository size per Job

Post by chris.arceneaux » 1 person likes this post

Hi Hal,

You can pull this information from the Enterprise Manager API:
  1. Retrieve Jobs
  2. Retrieve Backup for Job
  3. Retrieve Backup Files for Backup
  4. Adding together the BackupSize for all backup files will provide you the total backup size for the job
HalYaman
Influencer
Posts: 16
Liked: 1 time
Joined: Feb 13, 2022 11:02 am
Full Name: Hal
Contact:

Re: API - Repository size per Job

Post by HalYaman »

Hi @chris

Thanks for your reply, I found that this will not take into account the retention policy when the backup files will be expired. What I'm doing is retrieving the backup job session etc... and storing the info on a DB, but when a retention kick-on this will now show the actual remaining size consumed. or I miss something?

But will give this a try again and compare

HY.
chris.arceneaux
VeeaMVP
Posts: 695
Liked: 374 times
Joined: Jun 24, 2019 1:39 pm
Full Name: Chris Arceneaux
Location: Georgia, USA
Contact:

Re: API - Repository size per Job

Post by chris.arceneaux »

To my knowledge, only backup files that currently exist are returned. If the retention expired and the backup file has been deleted, I wouldn't expect it to be present in this API call.
HalYaman
Influencer
Posts: 16
Liked: 1 time
Joined: Feb 13, 2022 11:02 am
Full Name: Hal
Contact:

Re: API - Repository size per Job

Post by HalYaman » 1 person likes this post

@Chris,

Correct, i just tried this and its working as expected, appreciate it

HY.
HalYaman
Influencer
Posts: 16
Liked: 1 time
Joined: Feb 13, 2022 11:02 am
Full Name: Hal
Contact:

Re: API - Repository size per Job

Post by HalYaman »

Hi All,

any change on this API call, seems not returning any info anymore except:
<QueryResult xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.veeam.com/ent/v1.0">
<Entities>
<BackupFiles />
</Entities>
<PagingInfo PageNum="1" PageSize="100" PagesCount="1">
<Links>
<Link Href="https://xxxxx/api/query?format=Entities ... amp;page=1" Rel="First" />
<Link Href="https://xxxx/api/query?format=Entities& ... amp;page=1" Rel="Last" />
</Links>
</PagingInfo>
</QueryResult>
chris.arceneaux
VeeaMVP
Posts: 695
Liked: 374 times
Joined: Jun 24, 2019 1:39 pm
Full Name: Chris Arceneaux
Location: Georgia, USA
Contact:

Re: API - Repository size per Job

Post by chris.arceneaux »

Hi Hal,

It appears you're trying to use this API call? If so, it's working fine in my lab environment.

Image

Please provide more details (API call / parameters / headers) so we can further assist.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest