Solved

REST API - Storage Summary calculation

  • 27 March 2020
  • 2 replies
  • 2363 views

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

icon

Best answer by HITESH0801 1 April 2020, 15:00

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/

 

View original

This topic has been closed for comments

2 replies

Userlevel 4
Badge +5

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