Function: Remove a PTR Record using the Infoblox Plugin

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 remove a PTR record using the Infoblox plugin

Function: RemoveRecordPtr

public RemoveRecordPtr(objIpamConnection: IpamConnection, strDomainName: string, strIpAddress: string, strDnsView: string = "default", strNetworkView: string = "default"): void {

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

        let objIpamDnsRecordManager: IpamDnsRecordManager = objIpamConnection.getDnsRecordManager();

        objIpamDnsRecordManager.removePtrRecord(strDomainName, strIpAddress, strDnsView);
    }
    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