Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Looking for help to understand correct REST API URI to use to get storage grid used space
2021-09-03
08:18 AM
3,007 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We are using storage grid as capacity tier and working on APIs to understand used space here.
I am trying to get storage grid used space and used below API URI using python, this works fine however space shown using this approach is not matching with that on storage grid console.
####
requests.get(https://cluster/api/storage/aggregates?fields=space.cloud_storage.used", auth = (xxxx, xxxx), verify = False)
####
In fact on storage grid console, it shows close to 2times more space consumption.
Need help with correct API URI that gives accurate info.
Thanks,
-Srini
Solved! See The Solution
1 ACCEPTED SOLUTION
Juluri has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 REPLIES 3
Juluri has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much @pedro_rocha
It worked fine.
Both APIs /grid/account/{id}/usage from grids' API perspective and /storage/aggregates?fields=space.cloud_storage.used from clusters' API perspective are showing same numbers (used space is same)
However on the GRID GUI console, used space is close to 2X more than what I am seeing from APIs.
Not sure why this difference is there, Any thoughts. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe your storagegrid is configured for 2 replicas?
