I am working on a project for VM 7.0.3 and I am new to both VMWare and Python. What I have is a csv file with all of the roles and privs that go with a server. I am going to use this file to select a role out of and I want to apply it to a new server. I have searched all over for some code that could help me.
What I cannot figure out is the way to push it to the target server. Name+Privs should be all that is needed for this. Is the formatting of the strings specific? If I have multiple privileges to copy, are there quotes or just commas in the list?
Target_vcenter.authorizationManager.updateAuthorizationRole(Role.name , Role.privilege)
The MOB worked for me but I cannot figure out how to do this after making the connection in Python. It does not seem to like my inputs.