Is there a way where we can subscribe to the events and task status and vSphere can notify us when the event/task happens/completes.
My goal is to get the notifications from vSphere tasks and events , without having to poll for task/events from vSphere. I am thinking of exposing an endpoint by extending the interface from vSphere management SDK (6.0) and configure that endpoint in vSphere , and get notified on tasks and events as it happens on vSphere instead of me polling the vSphere.
I am not sure if it is possible , any help/sample/documentation is appreciated.
As far as I know polling is the only way to watch events. You could write a program/script that continuously polls for specific events then sends an email to whomever you would like. That seems like the most simple implementation to me.
I was curious how to do this too, so I did some research. This is the first article I found that got me going in the right direction:
Getting Events or Notifications of Events as They Occur (1002651)
This then lead me to the vSphere API documentation.
Managed Object - PropertyCollector > WaitForUpdatesEx
This presentation might also help:
Finally, it seems like someone else had a similar question:
Sending feedback to the KB article above might prompt a response from VMware.