Function: Add an Ipam Network View using the Infoblox Plugin

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 Network View using the Infoblox Plugin

Function: IpamNetworkViewAdd

public IpamNetworkViewAdd(objIpamConnection: IpamConnection, strNetworkViewName: string, strNetworkViewComment: string, arrIpamExtensibleAttribute?: IpamExtensibleAttribute[]): boolean {

    let objIpamNetworkView: IpamNetworkView = new IpamNetworkView(strNetworkViewName);
    objIpamNetworkView.defaultNetworkView = false;
    objIpamNetworkView.comment = strNetworkViewComment;
    if (arrIpamExtensibleAttribute) {
        objIpamNetworkView.extensibleAttributes = arrIpamExtensibleAttribute;
    }

    let objIpamViewManager: IpamViewManager = objIpamConnection.getViewManager();

    try {
        objIpamViewManager.addNetworkView(objIpamNetworkView);

        return true;
    }
    catch (objException) {
        return false;
    }
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like