To use this function add it to the class library file named vRealizeAutomation.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: vRealizeAutomation.ts
Function: getVCACCAFEHost
Description: The following code gets a vCACCAFE Host
privategetVCACCAFEHost ():vCACCAFEHost
{
letarrVCACCAFEHost:vCACCAFEHost[]=Server.findAllForType("VCACCAFE:VCACHost","");
letobjVCACCAFEHost:vCACCAFEHost=arrVCACCAFEHost.find((objVCACCAFEHost:vCACCAFEHost):boolean=>{returnobjVCACCAFEHost.name.indexOf(this.strTenantID)>-1;});
returnobjVCACCAFEHost;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
