Community maintenance is complete. Thank you for your patience!

Object Storage

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

Juluri

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

pedro_rocha

Maybe your storagegrid is configured for 2 replicas?

Juluri

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.

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public