Steps to Connect with a
vSphere Server
For a connection with a vSphere server, use
the following steps:
- Get theVimPortobject for access to the vSphere services.
- Call theRetrieveServiceContentmethod.
- Call theLoginByTokenmethod; insert a SAML token into the request header..
- Extract the session cookie from the response.
- Use the session cookie to set the request context for future requests.
The following sections describe these steps.