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
public VraHostGetByName(strDisplayName: string): VraHost {
let arrVraHost: VraHost[] = this.VraHostGetAll("vra-onprem")
let objVraHost: VraHost = arrVraHost.find((objVraHost: VraHost): boolean => {
return objVraHost.name === strDisplayName;
});
return objVraHost;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
