Rest Api V3 - Get Host Usage Stats | Nutanix Community
Skip to main content
Solved

Rest Api V3 - Get Host Usage Stats

  • May 8, 2019
  • 1 reply
  • 2914 views

Hi,

I'm already consuming API V3.0 to retrieve data from Nutanix Element. But i',m not figure how can i get usage stats info (CPU, RAM, DISK) from hosts or VMs.

There's a way to do that on V3 or i need to call v2 or v1?

Best answer by HITESH0801

Hello @BrunoR 

Sorry for the late reply. 

I’m searching for a way to achieve this using V3 but I know for sure you can achieve this using V2.

Try the following link to see the end-points. 
https://www.nutanix.dev/reference/prism_element/v2/


To get details regarding host 
https://www.nutanix.dev/reference/prism_element/v2/api/hosts/get-hosts-uuid-gethost

To get details of the VM 
https://www.nutanix.dev/reference/prism_element/v2/api/vms/get-vms-uuid-getvm

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

HITESH0801
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • 104 replies
  • Answer
  • November 26, 2019

Hello @BrunoR 

Sorry for the late reply. 

I’m searching for a way to achieve this using V3 but I know for sure you can achieve this using V2.

Try the following link to see the end-points. 
https://www.nutanix.dev/reference/prism_element/v2/


To get details regarding host 
https://www.nutanix.dev/reference/prism_element/v2/api/hosts/get-hosts-uuid-gethost

To get details of the VM 
https://www.nutanix.dev/reference/prism_element/v2/api/vms/get-vms-uuid-getvm