Orchestrator Function: Remove an AVI Controller

by Simon Sparks · 8 March 2026

To use this function add it to the class library file named PluginAVIService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: PluginAVIService.ts

Description: Orchestrator Function to remove an AVI Controller.

Public Function: AviControllerRemove

publicAviControllerRemove(strAviControllerFQDN:string):boolean{

letblnIsHttps:boolean=strAviControllerFQDN.indexOf('https')===0;

if (blnIsHttps===true){
strAviControllerFQDN=strAviControllerFQDN.substring(8,strAviControllerFQDN.length);

letintPositionOfEnd:number=strAviControllerFQDN.indexOf("/");

if (intPositionOfEnd!==-1){
strAviControllerFQDN=strAviControllerFQDN.substring(0,intPositionOfEnd);
}
}else{
strAviControllerFQDN=strAviControllerFQDN;
}

try{
AviVroPlugin.removeVroClient(strAviControllerFQDN);

returntrue;
}
catch (objException){
returnfalse;
}
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like