This example provides a common pattern for filtering Lookup Service registration data. This example is based on the code in the lookup_service_helper.py sample file. The file is located in the following vCloud Suite SDK for Python directory: client/samples/src/com/vmware/vcloud/suite/sample/common/

This example uses the steps that are described in the Retrieve a vCloud Suite Endpoint on a vCenter Server Instance procedure.

service_infos = lookup_service_infos(prod='com.vmware.cis',
                                             svc_type='cs.vapi', 
                                             proto='vapi.json.https.public', 
                                             ep_type='com.vmware.vapi.endpoint',
                                             node_id=my_mgmt_node_id)
my_vapi_url = service_infos[0].serviceEndpoints[0].url