REST API - Storage Summary calculation | Nutanix Community
Skip to main content

Dear all,

I need to provide some reporting for my management. I'm using REST API & Python, to extract values. I managed to get hosts information (cpu, ram) and physical storage without any problem. Now I need to get the logical storage summary and I can't find the values via the REST Api. (same values as we get on the PRISM homepage on Storage Summary part) It's probably a calculation but I can't find the right one. May I ask you to provide me the values and calculations.

Thank you for your help. Best regards Cedric

Hello @cmonard 


You can use the storage_container endpoint to calculate the usage of a container and based on that, calculate the logical Storage summary. 

https://www.nutanix.dev/reference/prism_element/v2/api/storage-containers/get-storage-containers-uuid-getcontainer/

 


Thank you @HITESH0801 

I managed with your advice.

Kind regards

Cedric