To use this function add it to the class library file named OrchestratorService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: OrchestratorService.ts
Description: Orchestrator Function to Add multiple REST Hosts
Function RESTHostsCreate
public RESTHostsCreate(arrRESTHostFQDN: string[], blnWithCredentials: boolean = true, strUsername?: string, strPassword?: string): void {
arrRESTHostFQDN.forEach((strRESTHostFQDN: string):void => {
if (blnWithCredentials === true && strUsername && strPassword) {
this.RESTHostCreateWithCredentials(strRESTHostFQDN, strRESTHostFQDN, strUsername, strPassword);
}
else {
this.RESTHostCreateNoCredentials(strRESTHostFQDN, strRESTHostFQDN);
}
});
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
