We use RestAPI to get space usage values of our Libraries in Commvault for reporting purposes, especially Total Capacity, Free Space and Used Space.
For Disc Libraries this is no problem, but we’re currently doing testing with S3 Storage as Libraries and there we face an issue with that, as these values can’t be extracted.
In the Command Center we see the “Size on disk”
![](https://uploads-eu-west-1.insided.com/commvault-eu/attachment/f30a3127-5b82-4232-8577-5182f429f8cf.jpg)
With QCommands (qlist media -l) we see the “TOTAL DATA(GB)”
![](https://uploads-eu-west-1.insided.com/commvault-eu/attachment/49eafdf7-3287-462d-8ff5-03d0e6275a9e.jpg)
And with RestAPI (GET Library Details) we see “N/A”
![](https://uploads-eu-west-1.insided.com/commvault-eu/attachment/2adf9585-fe35-41b3-9988-687ad74f0240.jpg)
Quota on the S3 Bucket has been set, so from my understanding this Quota should act as a “Capacity” value from a Commvault side.
![](https://uploads-eu-west-1.insided.com/commvault-eu/attachment/97e3bf5c-ef08-4e25-809c-080cbf1f3369.jpg)
How can we extract this data from Commvault?