Object Storage

Looking for help to understand correct REST API URI to use to get storage grid used space

Juluri
2,657 Views

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

1 ACCEPTED SOLUTION
3 REPLIES 3

Juluri
2,626 Views

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.

pedro_rocha
2,613 Views

Maybe your storagegrid is configured for 2 replicas?

Public