Search code examples
pythonvspherevcenterpyvmomi

can I see the owner/creator of a vcenter vm with pyvmomi


The closest info I can find in the vSphere UI is the user of the "Clone completed" event in the events list in monitoring. Can i access this list with pyvmomi? Or any better alternative would be appreciated.


Solution

  • That kind of information isn't part of the virtual machine object, so your best bet is to poll the events via EventManager Only caveat, if you have a particularly active environment, the events may rollover so using and polling a syslog would be the most consistent manner of obtaining that information.