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 Create a vRA Host
Public Function: VraHostCreate
publicVraHostCreate(strDisplayName:string,strHostnameFQDN:string,strUsername:string,strPassword:string,strSessionMode:"Shared Session"|"Per User Session"):boolean{
letobjRequest:any={
name:strDisplayName,
vraHost:strHostnameFQDN,
user:strUsername,
password:strPassword,
connectionType:"vra-onprem",
sessionMode:strSessionMode
};
try{
letstrResult:string=VraHostManager.save(objRequest);
this.objLogger.info(`VraHostManager Result:${strResult}.`);
returntrue;
}
catch (objException){
returnfalse;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
