- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Add just the DNS Host record through API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2019 10:42 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2019 04:31 AM
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