Authenticate with vCenter Single Sign-On Credentials and Create a Session
To establish a session with the vSphere Automation API endpoint in vCenter Server, you create a connection to the endpoint and authenticate with vCenter Single Sign-On credentials to receive a session ID.
Prerequisites
To perform this task, you must have the following items in place.
- The DNS name or IP address of vCenter Server
- A vCenter Single Sign-On domain account that has the requisite permissions for the operation that you intend to invoke
Procedure
Results
Subsequent method calls authenticate with the session cookie instead of the user name and password.
What to do next
Use the updated stub configuration with the session ID to create a stub for the interface that you want to use. Method calls on the new stub use the session ID to authenticate.