THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

DNS zones seen by "csv_export/zone_auth" API call, but not by "allrecords" API call

New Member
Posts: 5
60     0

Hi, I am on the webserver infoblox.mycorp.net exporting all the authoritative zone objects for a view, using the API call

 

/wapi/v2.12/fileop?_function=csv_export { "_object":"zone_auth","view":"default"}

Here are two records returned:

header-authzone : authzone
fqdn* : mycorp.net
zone_format* : FORWARD
allow_update : Any/ALLOW
create_underscore_zones : TRUE
disable_forwarding : FALSE
disabled : FALSE
enable_fixed_rrset_order : FALSE
is_multimaster : FALSE
zone_type : Authoritative
header-authzone : authzone
fqdn* : subnet.mycorp.net
zone_format* : FORWARD
allow_update : DDNS
create_underscore_zones : FALSE
disable_forwarding : TRUE
disabled : FALSE
enable_fixed_rrset_order : FALSE
is_multimaster : FALSE
zone_type : Authoritative

However, when I issue the API calls

/wapi/v2.12/allrecords?zone=mycorp.net
/wapi/v2.12/allrecords?zone=subnet.mycorp.net

I get the response

{
   "Error": "AdmConDataNotFoundError: Zone [subnet.]mycorp.net not found",
   "code": "Client.Ibap.Data.NotFound",
   "text": "Zone [subnet.]mycorp.net not found"
}

I see DNS entries through the UI (Infoblox Grid Manager 9.0.4), why won't the API reveal them?

Re: DNS zones seen by "csv_export/zone_auth" API call, but not by "allrecords" A

New Member
Posts: 5
60     0

I had to add "&view=default" to the URLs.

 

This was frustrating because on another Infoblox appliance, the "view" parameter was optional and here it's required.

 

I hope this helps someone else.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You