Orchestrator Function: IpamNetwork Get Next Available IP

by Simon Sparks · 29 January 2026

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

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

Filename: InfobloxService.ts

Description: Orchestrator Function to get the next available IP address from an IpamNetwork.

Function: IpamNetworkGetNextAvailableIP

publicIpamNetworkGetNextAvailableIP(objIpamConnection:IpamConnection,strIpSubnet:string,intCIDR:number,strDnsView:string="default",strNetworkView:string="default"):string{
letobjIpamNetwork:IpamNetwork=newIpamNetwork(strIpSubnet,intCIDR);

try{
objIpamConnection.reconnect();
objIpamConnection.configDefaultNetworkView=strNetworkView;
objIpamConnection.configDefaultDnsView=strDnsView;

letobjIpamNetworkManager:IpamNetworkManager=objIpamConnection.getNetworkManager();

letstrIpAddress:string=objIpamNetworkManager.getNextAvailableIP(objIpamNetwork);

returnstrIpAddress;
}
catch (objException){
this.objLogger.info(objException);
}
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like