.NET Example of Retrieving a
vSphere Automation
Endpoint on a
vCenter Server
Instance

This example provides a common pattern for filtering Lookup Service registration data. This example is based on the code in the
LookupServiceHelper.cs
sample file.
This example uses the steps that are described in the Retrieve a vSphere Automation Endpoint on a vCenter Server Instance procedure.
For a complete and up-to-date version of the sample code, see the vSphere Automation SDK .NET samples at GitHub.
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;