API & Integration

Reply
Highlighted
Accepted Solution

Copy Hosts records from zone view to another

Antoine5931
Techie
Posts: 4
723     0

Hello,

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.

Re: Copy Hosts records from zone view to another

Adviser
Posts: 60
724     0

Hi,

 

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.

 

Regards,

Krishna

Re: Copy Hosts records from zone view to another

Antoine5931
Techie
Posts: 4
724     0

Hi,

 

Thanks a lot for answering.

I think you're right, i'll try to done it with the documentation Smiley Happy

 

Have a nice day,

Antoine

Showing results for 
Search instead for 
Do you mean 

Recommended for You