Reply
Highlighted

Add just the DNS Host record through API

gputhota
Techie
Posts: 2
187     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

 

Re: Add just the DNS Host record through API

MRichard Community Manager
Community Manager
Posts: 101
188     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