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

CSV EXPORT - _object types and difference between WAPI and GUI

New Member
Posts: 1
2630     0

I'm trying to make a CSV export via the infoblox WAPI of all the record inside a zone.
When i follow this procedure:

Initiate a CSV export:
curl -k -u admin:infoblox -H 'content-type: application/json' -X POST
"https://grid-master/wapi/v2.12/fileop?_function=csv_export"  -d '{
    "_object": "allrecords",
    "view": "VIEW",
    "zone": "default.com"
}'

Sample output:
{
    "token": "eJytjrkKwjAAhl9FMmuuHmm6VaogSAURHENpYg3apibxQnx3zaCri+v38R8PoG6DtnfhdadAPiJp\nSiLKo4hBzlKeJHw8Amd7fCuw935wOUIEQ8JTSHECCUWBCqmtarzY6aMS2iCrTkLLSbnaVstVUU5w\nRmPMKCWMsxhnGaqUvxp7cLBxF/BekLWvheobI3Xfhq3povryzshwDZTFphDr2fwjAkPOG1u3Cvlu\n+M8VLUPvrxh4vgC5A11J\n",
    "url": "https://grid-master/http_direct_file_io/req_id-DOWNLOAD-0528140408608448/Zonechilds.csv"
}

Download the CSV file:
curl -k -u admin:infoblox -H 'content-type: application/force-download' "https://grid-master/http_direct_file_io/req_id-DOWNLOAD-0528140408608448/Zonechilds.csv"

 What i get is a file colled Zonechilds.csv wich does not contain a lot of useful information about the zone that i want to export (SOA Records, NS record ecc ecc):
When i download the csv from the webgui of my gridmaster from (DNS->Zones->MYZONE->MYAUTHZONE->Export visible data->Start->Download) the file that i get is called ResourceRecords.csv and it has all the info that i've listed before like NS records, SOA records and obviously all the other records (MX,TXT,A,HOST). 
SO:
1. How can i make a WAPI call that gives me all the info that i get from ResourceRecords.csv?
2. Which are all the possible _object and type that i can insert on the wapi call for a csv export?

Re: CSV EXPORT - _object types and difference between WAPI and GUI

Moderator
Moderator
Posts: 315
2630     0

The NS and SOA records are not objects that can be exported by CSV.  Instead they are synthesized for the zone based on nameserver groups, grid parameters, and zone parameters.

 

The allrecords search you are doing is the best method to return all the record objects within a zone.

Re: CSV EXPORT - _object types and difference between WAPI and GUI

Moderator
Moderator
Posts: 315
2630     0

The types of objects supported will be the same list you can see when creating a CSV export through the GUI.  This list could change with each version as new object types are added.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You