Solved

Rest Api V3 - Get Host Usage Stats

  • 8 May 2019
  • 1 reply
  • 2233 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?
icon

Best answer by HITESH0801 26 November 2019, 16:04

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

This topic has been closed for comments

1 reply

Userlevel 4
Badge +4

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