This example is based on the in the LookupServiceHelper.java sample file. The file is located in the following vCloud Suite SDK for Java directory: client/samples/java/com/vmware/vcloud/suite/samples/common/
This example uses the steps that are described in the Retrieve a vCloud Suite Endpoint on a vCenter Server Instance procedure.
... //1 - Determine management node ID. String targetNodeId = getMgmtNodeId(targetNodeFqdn); //2 - List filtered registration info. List<LookupServiceRegistrationInfo> results = lookupSingleServiceUrl(“com.vmware.cis”, “cs.vapi”, “vapi.json.https.public”, “com.vmware.vapi.endpoint”, targetNodeId); //3 - Extract endpoint URL from registration info. LookupServiceRegistrationInfo registrationInfo = results.get(0); LookupServiceRegistrationEndpoint serviceEndpoint = registrationInfo.getServiceEndpoints().get(0); String ssoUrl = serviceEndpoint.getUrl(); ...