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 an IpamNetwork.
Function: IpamNetworkGet
publicIpamNetworkGet(objIpamConnection:IpamConnection,strIpAddress:string,intCIDR:number,strDnsView:string="default",strNetworkView:string="default"):IpamNetwork{
try{
objIpamConnection.reconnect();
objIpamConnection.configDefaultNetworkView=strNetworkView;
objIpamConnection.configDefaultDnsView=strDnsView;
letobjIpamNetworkManager:IpamNetworkManager=objIpamConnection.getNetworkManager();
letobjIpamNetwork:IpamNetwork=objIpamNetworkManager.getNetwork(strIpAddress,intCIDR,strNetworkView);
returnobjIpamNetwork;
}
catch (objException){
this.objLogger.info(objException);
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
