[Users] Rest-api to fetch the hosts details ( active vm's , CPU , Physical memory etc.)

Michael Pasternak mpastern at redhat.com
Mon Mar 4 14:36:07 UTC 2013


On 03/04/2013 03:43 PM, Romil Gupta wrote:
> Hi Michael ,
> 
> May I know , Is there any api to get the no. of cores available in  Host attached to a Cluster in RHEV-M ??

see in host CPU element:

<cpu>
  <topology sockets=".." cores=".."/>
  ...
</cpu>

api.hosts.get(name="...").get_cpu().get_topology().get_cores()

> 
> Thanks 
> Romil


-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D



More information about the Users mailing list