ServiceInstance
is a singleton managed object that acts as a gateway to the resources available on the server. You can locate other important singletons such as SessionManager
and SearchIndex
from ServiceInstance
properties. ServiceInstance
is accessible without authentication, so you can retrieve a reference to the SessionManager
which you can use to authenticate a session.
To retrieve the properties of the ServiceInstance
managed object, do the following.
Prerequisites
You need the IP address or FQDN of a vCenter Server to which you will send the request.
Procedure
Results
The program displays a number of managed object references for singletons that you can use for additional requests. The following excerpt includes several important managed objects that you will use for basic operations, including authentication.
Example: Excerpt from Service Content
... 'propertyCollector': {'_typeName': 'ManagedObjectReference', 'type': 'PropertyCollector', 'value': 'propertyCollector'}, 'rootFolder': {'_typeName': 'ManagedObjectReference', 'type': 'Folder', 'value': 'group-d1'}, 'scheduledTaskManager': {'_typeName': 'ManagedObjectReference', 'type': 'ScheduledTaskManager', 'value': 'ScheduledTaskManager'}, 'searchIndex': {'_typeName': 'ManagedObjectReference', 'type': 'SearchIndex', 'value': 'SearchIndex'}, 'serviceManager': {'_typeName': 'ManagedObjectReference', 'type': 'ServiceManager', 'value': 'ServiceMgr'}, 'sessionManager': {'_typeName': 'ManagedObjectReference', 'type': 'SessionManager', 'value': 'SessionManager'}, ...
What to do next
Use the SessionManager
URL in the Service Content to open an authenticated session with the vCenter Server instance.