Orchestrator Function: Add an Ipam Fixed Address in an Ipam Network

by Simon Sparks · 8 March 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 add an Ipam Fixed Address in an Ipam Network.

Function: IpamFixedAddressAddInIpamNetwork

publicIpamFixedAddressAddInIpamNetwork(objIpamConnection:IpamConnection,objIpamNetwork:IpamNetwork,strIpAddress:string,astrMacAddress:string,strNetworkView:string,strName:string,strComment:string,strMicrosoftDhcpServerIpAddress:string,blnRestartIfNeeded:boolean=false,arrIpamExtensibleAttribute?:IpamExtensibleAttribute[]):boolean{
letobjIpamFixedAddressManager:IpamFixedAddressManager=objIpamConnection.getFixedAddressManager();

letobjIpamFixedAddress:IpamFixedAddress=newIpamFixedAddress(strIpAddress,astrMacAddress,strNetworkView);
objIpamFixedAddress.name=strName;
objIpamFixedAddress.msServerIpAddress=strMicrosoftDhcpServerIpAddress;
objIpamFixedAddress.comment=strComment;
objIpamFixedAddress.restartIfNeeded=blnRestartIfNeeded;
if (arrIpamExtensibleAttribute){
objIpamFixedAddress.extensibleAttributes=arrIpamExtensibleAttribute;
}

try{
objIpamFixedAddressManager.addFixedAddressInNetwork(objIpamFixedAddress,objIpamNetwork);

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

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like