Quantcast
Channel: VMware Communities : All Content - VMware vCenter™
Viewing all articles
Browse latest Browse all 24426

Question with VMware vSphere method AcquireGenericServiceTicket().

$
0
0

Hello all,

I'm currently having an issue with VMware vSphere method AcquireGenericServiceTicket().
I will upload CU.ova file to datastore1 using libcurl through vCenterServer. datastore1 belongs to a esx server(ip: 10.153.147.54), which has added to vCenterServer(ip: 10.153.88.185).
To accomplish this, I need to use the AcquireGenericServiceTicket() method which is part of the sessionManager. Using this method, I can request a ticket for a one time HTTP request
to connect directly to an ESXi. To upload a file, the request must include the method which in this case will be a PUT operation and the local URL to an ESXi host that has access to
the vSphere Datastore. My URL is "https://10.153.147.54/folder/test/CU.ova?dcPath=ha-datacenter&dsName=datastore1".
In vCenterServer 5.5 and ESX 5.5 environment, the method AcquireGenericServiceTicket() works well and returns a ticket properly. But in vCenterServer 5.1 environment, this method
returns error info: "A specified parameter was not correct. url".

The method AcquireGenericServiceTicket() imported since vSphere API 5.0. I'm hoping someone has come across similiar and might have a suggestion on how to fix this issue.
Thank you.


Viewing all articles
Browse latest Browse all 24426

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>