Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

API & Integration

Reply
Highlighted

Add just the DNS Host record through API

Techie
Posts: 3
379     0

Hi,

 

I am trying to add a new DNS Host record directly through the API. I am not bothered from the IPAM side of it, but only concerned with the record created in DNS. The reason I need to do this is that I am getting the AWS Public IPs for a given host and adding it into my Infoblox DNS Record DB.

 

I have tried using the API URL https://myddi.testdomain.com/wapi/v2.10/record:host with the body as below:

{
  "ipv4addrs": [
    {
      "ipv4addr": "10.10.10.10"
    }
  ],
  "name": "myhost.testdomain.com",
  "view": "testview"
}

 

However I am getting the below error:

 

{
    "Error": "AdmConProtoError: Result set too large (> 1000)",
    "code": "Client.Ibap.Proto",
    "text": "Result set too large (> 1000)"
}

 

 

Is this allowed by Infoblox API? 

 

Thanks,
Greg

 

Highlighted

Re: Add just the DNS Host record through API

Community Manager
Community Manager
Posts: 152
380     0

It's trying to give you a large number of results, over 1000 which is the default limit.  I suspect the body is not being applied to the request properly.

 

You can also specify the parameters in the URL, instead of in the body.  It would look something like this:

 

https://192.168.1.2/wapi/v2.9/record:host?name=myhome.testdomain.com&view=testview
Showing results for 
Search instead for 
Do you mean 

Recommended for You