This example provides a common pattern for filtering Lookup Service registration data. This example is based on the code in the LsConnection.cs sample file. The file is located in the following vCloud Suite SDK for .NET directory: client/samples/src/Samples/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.

targetNodeId = getMgmtNodeId(target_node_fqdn)
var serviceInfo = LookupSingleServiceUrl("com.vmware.cis",
                                         "cs.vapi",
                                         "vapi.json.https",
                                         "com.vmware.vapi.endpoint",
                                         targetNodeId);
var vapiUrl = serviceInfo[0].serviceEndpoints[0].url;