Hello,
I am trying to clone session from plugin UI to back end using python for back-end development. [basically this]
I've successfully retrieved the clone ticket from vCenter API endpoint and but struggling to clone the session using it.
I've come across this post which details the problem of cloning the session using clone ticket with python.
I've seen in the pyvmomi sample code where there is code to convert python suds cookies over to pyvmomi session cookies.
The comments in the pyvmomi code note that there is no way to connect to call the CloneSession() function on vCenter through
pyvmomi without having already been logged in. Is this actually true?
This seems like a chicken or the egg problem. How can I call CloneSession() without already being logged in?
Because if I could be already logged then I wouldn't need to call CloneSession().
Any suggestions on what course to take to resolve this little puzzle?
If anyone has done the "Clone Session using Python" already, can you please show how to do it?
Any help is appreciated. Thanks in advance!