Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

Vix API - Connect to ESX/VCenter using SessionID, instead of username-password?

$
0
0

 

There is a VIX API to connect to a ESX or vCenter using the following API:

 

 

VixHandle VixHost_Connect(int apiVersion,  VixServiceProvider hostType, const char *hostName, int hostPort, const char *userName, const char *password, VixHostOptions options, VixHandle propertyListHandle, VixEventProc *callbackProc, void *clientData);

 

 

But, the API asks for the username & password of the ESX/vCenter.

 

 

Is there any way/API to connect to the vCenter, using sessionID, instead of specifying the username & password?

 

 

The problem is something like this:

 

 

Assume, we are already connect to the vCenter using VI client. When we click in any vCenter tab (extension) by selecting any VM, the session ID is available to us. Now, can that session ID be used in VIX API to connect to the vCenter, so that subsequent VIX operations can be performed (by avoiding asking the username & password.

 

 

Thanks!

 

 


Viewing all articles
Browse latest Browse all 34639

Latest Images

Trending Articles



Latest Images

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