Orchestrator Function: AVI Pool Update

by Simon Sparks · 11 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 Update an AVI Pool.

Private Function: AviPoolUpdate

publicAviPoolUpdate(objAviWorkflowRuntime:AviWorkflowRuntime,arrIpAddress:string[],strPoolName:string,strAviIpAddrType:"V4"|"V6",intRatio:number,intPort:number):void{

letobjAviVroClient:AviVroClient=objAviWorkflowRuntime.getAviVroClient();

letobjAviCredentials:AviCredentials=objAviVroClient.cred;

letarrAviServer:AviServer[]=arrIpAddress.map((strIpAddress:string):AviServer=>{

letobjAviServer:AviServer=this.AviServerBuild(strIpAddress,intPort,strAviIpAddrType,intRatio);

returnobjAviServer;
});

letobjAviPool:AviPool=objAviVroClient.getObjectByName("pool",strPoolName,objAviCredentials.tenant)asAviPool;
objAviPool.setServers(arrAviServer);

objAviVroClient.addObject(objAviPool,objAviWorkflowRuntime.getWorkflowId(),objAviCredentials.tenant);
objAviVroClient.executeWorkflow();
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like