To use this function add it to the class library file named vCenterVAPIBaseService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: vCenterVAPIService.ts
Description: Orchestrator Function to Find a vCenter VAPI Endpoint by Url
Function VAPIEndpointFindByUrl
publicVAPIEndpointFindByUrl(strEndpointUrl:string):VAPIEndpoint{
try{
letobjVAPIEndpoint:VAPIEndpoint=VAPIManager.findEndpoint(strEndpointUrl);
returnobjVAPIEndpoint;
}
catch (objException){
returnnull;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
