Establishes a session with the Web service running on the vCenter Server or ESX/ESXi system using the user name and password credentials provided using the command-line, environment variables, or configuration file.

Note: In most cases, you use Util::connect() instead to establish a connection.

Parameters

Parameter Description
service_url URL of the server to which the client connects.
user_name User account on the ESX/ESXi or vCenter Server system.
password Password for the user account.

Returns

Returns the vSphere object instance.