10-25-2018 08:16 AM
I would like to have your help regarding a specific use case.
The idea is to automate the copy of all the hosts records from one zone in one view, to the same zone which belongs to another view.
The AXFR doesn't works on Infoblox between views for the moment.
1/ Get all the hosts records from a specific zone & view (default)
curl -k -u login -X GET "https://server/wapi/v1.4/allrecords?view=default&zone=name"
- Currently, i reach to retrieve something with WAPI, but i don't have the A Record in the result.
- It works also by changing the view name.
Do you have any idea to retrieve the host record with the associated IP address ?
2/ How to copy these hosts in another view/zone ?
I seen some people perform it with export/import file, but i would know if there exist a better way.
Thanks in advance.
Solved! Go to Solution.
10-29-2018 12:03 AM
Exporting/Importing the records as CSV file will be faster in comparison with updating or creating each object with a separate API call.
You can refer to sections Export a CSV file and Import a CSV file in the document here for examples on how to do it.
You would first have to download the CSV file, change the network view field and then upload it back.
11-02-2018 02:43 AM
Thanks a lot for answering.
I think you're right, i'll try to done it with the documentation
Have a nice day,