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