To use this function add it to the class library file named OrchestratorPluginVRAService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: OrchestratorPluginVRAService.ts
Description: Orchestrator Function to Get vRA Host by Name
Public Function: VraHostGetByName
publicVraHostGetByName(strDisplayName:string):VraHost{
letarrVraHost:VraHost[]=this.VraHostGetAll("vra-onprem")
letobjVraHost:VraHost=arrVraHost.find((objVraHost:VraHost):boolean=>{
returnobjVraHost.name===strDisplayName;
});
returnobjVraHost;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
