Please help me in getting date about perfomace hipervizor using simple api (in my case i used python).
There is simple example who gets list of machines :
#!/usr/bin/python
import CloudStack
api = 'http://example.com:8080/client/api'
apikey = 'API KEY'
secret = 'API SECRET'
cloudstack = CloudStack.Client(api, apikey, secret)
vms = cloudstack.listVirtualMachines()
for vm in vms:
print "%s %s %s" % (vm['id'], vm['name'], vm['state'])
How from this script i can change it, to get for example CPU of all hipervizor machine? (if can give info not only about cpu, but about HDD utilization, memory, etc...)
Thanks, very much.