Hi
I'm implementing a Python application for monitoring VM resource usage with pyVmomi. The application needs to 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,
Harri
Hey harppa,
Never used pyVmomi, but try to specify that same permission from Global Permissions in vCenter and choose propagate to all children. See if that works.
Hey harppa,
Never used pyVmomi, but try to specify that same permission from Global Permissions in vCenter and choose propagate to all children. See if that works.
"[x] Propagate to children" in the permission properties did the job. Thanks a lot Lalegre!
Glad it worked! You are welcome :smileygrin: