Retrieving Service
Endpoints
To access services
and resources in the virtual environment,
vSphere
Automation
API client applications must know the endpoints of
vSphere
Automation
and vSphere services. Client applications retrieve
service endpoints from the Lookup Service that runs on the
Platform
Services Controller
.
The Lookup Service provides
service registration and discovery by using a Web services API.
By using the Lookup Service, you can retrieve endpoints of services on
the
Platform
Services Controller
and
vCenter
Server
.
The following endpoints are available from the Lookup Service.
- The vCenter Single Sign-On endpoint on thePlatform Services Controller. You use the vCenter Single Sign-On service to get a SAML token and establish an authenticated session with avSphere Automationendpoint or a endpoint.
- ThevSphere AutomationEndpoint onvCenter Server. Through thevSphere AutomationEndpoint, you can make requests tovSphere AutomationAPI services such as virtual machine management, Content Library, and Tagging.
- ThevCenter Serverendpoint. In an environment with externalPlatform Services Controllerinstances, you can use thevCenter Serverendpoint to get the node ID of a particularvCenter Serverinstance. By using the node ID , you can retrieve service endpoints on thatvCenter Serverinstance.
- The vSphere API endpoint and endpoints of other vSphere services that run onvCenter Server.
Workflow for
Retrieving Service Endpoints
The workflow that you use to
retrieve service endpoints from the Lookup Service might vary depending on the
endpoints that you need and their number. Follow this general workflow for
retrieving service endpoints.
- Connect to the Lookup Service on thePlatform Services Controllerand service registration object so that you can query for registered services.
- Create a service registration filter for the endpoints that you want to retrieve.
- Use the filter to retrieve registration information for services from the Lookup Service.
- Extract one or more endpoint URLs from the array of registration information that you receive from the Lookup Service.