To use this function add it to the class library file named vCenterVAPIBaseService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: vCenterVAPIService.ts
Description: Orchestrator Function to Add a vCenter VAPI Endpoint
Function VAPIEndpointAdd
publicVAPIEndpointAdd(strEndpointUrl:string,strUsername:string,strPassword:string,blnUseSecureConnection:boolean=true):VAPIEndpoint{
try{
letobjVAPIEndpoint:VAPIEndpoint=VAPIManager.addEndpoint(strEndpointUrl,blnUseSecureConnection,strUsername,strPassword);
returnobjVAPIEndpoint;
}
catch (objException){
returnnull;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
