I need to get vsphere alarms via curl command. How can I do that.
I tried the following and was able to get some info. But I don't know the keyword for event or alarm
curl -k -i -b cookie-jar.txt https://<host>/rest/vcenter/...
This is very important to us, since we need to monitor the alarm vsphere generate.
Thank you in advance.
doesn't have to be curl command, python solution is even better. I found getallvms.py and it shows all the VMs. I just need similar program that shows all alarms or events
for child in content.rootFolder.childEntity:
if hasattr(child, 'vmFolder'):
datacenter = child
vmFolder = datacenter.vmFolder
vmList = vmFolder.childEntity
for vm in vmList:
PrintVmInfo(vm)
so what's the name of the alarm folder? is there a API documentation, that give the name of all the available Folders, attributes. is there a way to list all attributes