OK, the selected node shown on the screenshot is of type vCACCAFE:Endpoint (scripting type vCACCAFEEndpoint)
If you know the ID of your concrete endpoint, you can retrieve it from vRO using a code like the following (which tries to find the endpoint and then prints its name):
var endpointId = "7a6..."; // the ID of your endpoint var endpoint = Server.findForType("vCACCAFE:Endpoint", endpointId); if (endpoint == null) { throw "Endpoint not found!"; } System.log("Endpoint name: " + endpoint.name);
If you don't know the ID of the concrete endpoint, you can enumerate all available endpoints with code like the following:
var endpoints = Server.findAllForType("vCACCAFE:Endpoint"); if (endpoints == null) { throw "Endpoints not found!"; } for each (var endpoint in endpoints) { System.log("Endpoint name: " + endpoint.name); }