Retrieving All IP Addresses via WAPI v2

Is there a more efficient way to retrieve a list of all networks and their used IP addresses other than the scripted approach below?

  1. Call /network endpoint to get a list of all networks
  2. For each network, call /ipv4address?network=…&network_view=…&status=USED

If the 1st call returns tens of thousands of networks, this whole process will take hours to complete.

Tagged:

Answers

  • nic w
    nic w Infoblox Technical Expert

    Depends on the type of analysis you're looking to do. May as well CLI export the DB (one big API call) and do local processing, IMO. Depends how much dynamic data your org uses. But if you're looking for a snapshot once a day of utilized IPs in each network… that's how I'd do it. If it's something on demand that needs to be run multiple times per hour… you'd be better to sort the call based off EAs. So if a specific person/role/area of function needs to know something about the IPs, best to organize from there.