Hi all, what are the necessary vcenter permissiones for a user to export vcenter events?.
Im running this script:
Thanks!
Hello-
I do not think that you assign a permission named, "none". From the API reference listed above, I take that to mean that there are no additional privileges/permissions required for querying events.
Add'l info (added to this response at 11:10pm): I tested with a VIAccount that had the Read-Only role assigned, and it was able retrieve events. So, it would seem that so long as the account can connect to the vCenter/host, that it can retrieve events with no additional privileges required. Are you seeing different behavior?
Hello, smithjr-
Per the API reference for EventHistoryCollector (which is what Get-VIEvent uses, per an Onyx trace), the methods used require the privileges of "none". So, if the account as which you are running the script can successfully Connect-VIServer, it should be good to get VI events.
Btw, the methods used are SetCollectorPageSize(), ResetCollector(), ReadPreviousEvents(), and DestroyCollector().
"none" its a vcenter permission????
Hello-
I do not think that you assign a permission named, "none". From the API reference listed above, I take that to mean that there are no additional privileges/permissions required for querying events.
Add'l info (added to this response at 11:10pm): I tested with a VIAccount that had the Read-Only role assigned, and it was able retrieve events. So, it would seem that so long as the account can connect to the vCenter/host, that it can retrieve events with no additional privileges required. Are you seeing different behavior?
Thanks a lot, read-only is the answer.