Retrieve a
vCenter Server
ID by Using the Lookup Service

You use the node ID of a
vCenter Server
instance to retrieve the endpoint URL of a service on that
vCenter Server
instance. You specify the node ID in the service registration filter that you pass to the
List()
function on the Lookup Service.
  • Establish a connection with the Lookup Service.
  • Retrieve a service registration object.
Managed services are registered with the instance name of the
vCenter Server
instance where they run. The instance name maps to a unique
vCenter Server
ID. The instance name of a
vCenter Server
system is specified during installation and might be an FQDN or an IP address.
  1. List the
    vCenter Server
    instances.
  2. Find the matching node name of the
    vCenter Server
    instance and save the ID.
Use the node ID of the
vCenter Server
instance to filter subsequent endpoint requests. You can use the node ID in a function that retrieves the endpoint URL of a service on a
vCenter Server
instance. For information about implementing such a function, see Retrieve Service Endpoints on vCenter Server Instances.