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
publicAddRecordPtr(objIpamConnection:IpamConnection,strDomainName:string,strIpAddress:string,strDnsView:string="default",strNetworkView:string="default"):void{
letobjIpamPtrRecord:IpamPtrRecord=newIpamPtrRecord(strDomainName,strDnsView,strIpAddress);
try{
objIpamConnection.reconnect();
objIpamConnection.configDefaultNetworkView=strNetworkView;
objIpamConnection.configDefaultDnsView=strDnsView;
letobjIpamDnsRecordManager: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.
