-
- Influencer
- Posts: 16
- Liked: 1 time
- Joined: Feb 13, 2022 11:02 am
- Full Name: Hal
- Contact:
API - Repository size per Job
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.
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.
-
- 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
Hi Hal,
You can pull this information from the Enterprise Manager API:
You can pull this information from the Enterprise Manager API:
- Retrieve Jobs
- Retrieve Backup for Job
- Retrieve Backup Files for Backup
- Adding together the BackupSize for all backup files will provide you the total backup size for the job
-
- Influencer
- Posts: 16
- Liked: 1 time
- Joined: Feb 13, 2022 11:02 am
- Full Name: Hal
- Contact:
Re: API - Repository size per Job
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.
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.
-
- 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
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.
-
- Influencer
- Posts: 16
- Liked: 1 time
- Joined: Feb 13, 2022 11:02 am
- Full Name: Hal
- Contact:
Re: API - Repository size per Job
@Chris,
Correct, i just tried this and its working as expected, appreciate it
HY.
Correct, i just tried this and its working as expected, appreciate it
HY.
-
- Influencer
- Posts: 16
- Liked: 1 time
- Joined: Feb 13, 2022 11:02 am
- Full Name: Hal
- Contact:
Re: API - Repository size per Job
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>
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>
-
- 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
Hi Hal,
It appears you're trying to use this API call? If so, it's working fine in my lab environment.
Please provide more details (API call / parameters / headers) so we can further assist.
It appears you're trying to use this API call? If so, it's working fine in my lab environment.
Please provide more details (API call / parameters / headers) so we can further assist.
Who is online
Users browsing this forum: No registered users and 1 guest