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