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.
for child in content.rootFolder.childEntity:
if hasattr(child, 'vmFolder'):
datacenter = child
vmFolder = datacenter.vmFolder
vmList = vmFolder.childEntity
for vm in vmList:
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