- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
CSV EXPORT - _object types and difference between WAPI and GUI
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 07:36 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 05:56 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 05:59 AM
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.