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.

Note

For a complete and up-to-date version of the sample code, see the vSphere Automation SDK Python samples at GitHub.

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