VMware {code} Community
halio
Contributor
Contributor

Access VM host details via REST API

Hi

I'm using the VMWare REST API (/api/vcenter/host) to query information about the VM Hosts registered on a vCenter.  At the moment I can only seem to get basic info like this :

{
"host": "host-10",
"name": "192.168.18.89",
"connection_state": "CONNECTED",
"power_state": "POWERED_ON"
}
 
but the Powershell "Get-VMHost | Format-List" has much more useful information such as ESXi version, hardware specs etc  Can I get this information via the REST API as well?
 
Thanks!
 
0 Kudos
0 Replies