vCenter read-only user and pyVmomi

This post was originally published on this site



I’m implementing a Python application for monitoring VM resource usage with pyVmomi. The application needs read values like memory / disk usage.


Because the password must be stored somehow, I’d like to use a read-only account for accessing the API. However, if I create a user to vCenter domain “vsphere.local” with “Read-only” role, pyVmomi connect.SmartConnect throws a MethodFault “Permission to perform this operation was denied.”


Is it possible to create a read-only account for this purpose? How?


Kind regards,



Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.