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
public VAPIEndpointAdd(strEndpointUrl: string, strUsername: string, strPassword: string, blnUseSecureConnection: boolean = true): VAPIEndpoint {
try {
let objVAPIEndpoint: VAPIEndpoint = VAPIManager.addEndpoint(strEndpointUrl, blnUseSecureConnection, strUsername, strPassword);
return objVAPIEndpoint;
}
catch (objException) {
return null;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
