Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API & Integration, DevOps,NetOps,SecOps

Reply

Add just the DNS Host record through API

Member
Posts: 2
2072     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

Community Manager
Community Manager
Posts: 182
2073     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 
Did you mean: 

Recommended for You