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 Network View using the Infoblox Plugin
Function: IpamNetworkViewAdd
publicIpamNetworkViewAdd(objIpamConnection:IpamConnection,strNetworkViewName:string,strNetworkViewComment:string,arrIpamExtensibleAttribute?:IpamExtensibleAttribute[]):boolean{
letobjIpamNetworkView:IpamNetworkView=newIpamNetworkView(strNetworkViewName);
objIpamNetworkView.defaultNetworkView=false;
objIpamNetworkView.comment=strNetworkViewComment;
if (arrIpamExtensibleAttribute){
objIpamNetworkView.extensibleAttributes=arrIpamExtensibleAttribute;
}
letobjIpamViewManager:IpamViewManager=objIpamConnection.getViewManager();
try{
objIpamViewManager.addNetworkView(objIpamNetworkView);
returntrue;
}
catch (objException){
returnfalse;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
