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 a PTR record using the Infoblox plugin
Function: AddRecordPtr
public AddRecordPtr(objIpamConnection: IpamConnection, strDomainName: string, strIpAddress: string, strDnsView: string = "default", strNetworkView: string = "default"): void {
let objIpamPtrRecord: IpamPtrRecord = new IpamPtrRecord(strDomainName, strDnsView, strIpAddress);
try {
objIpamConnection.reconnect();
objIpamConnection.configDefaultNetworkView = strNetworkView;
objIpamConnection.configDefaultDnsView = strDnsView;
let objIpamDnsRecordManager: IpamDnsRecordManager = objIpamConnection.getDnsRecordManager();
objIpamDnsRecordManager.addPtrRecord(objIpamPtrRecord);
}
catch (objException) {
this.objLogger.info(objException);
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
