Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Import all used Static IP with records within a Network
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 12:00 PM
1121     0
Is there a single api call that i can do to get all used Static IPs from a Network.
Re: Import all used Static IP with records within a Network
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 04:25 AM
1121     0
curl -k1 -u admin:infoblox -X GET 'gm.example.org/wapi/v2.12/ipv4address?network=192.168.1.0/24&status=USED'
will return results in a list, like this:
[ { "_ref": "ipv4address/Li5pcHY0X2FkZHJlc3MkMTAuOS4xNi4xLzA:192.168.1.1", "ip_address": "192.168.1.1", "is_conflict": false, "mac_address": "", "names": [ "router.example.org" ], "network": "192.168.1.0/24", "network_view": "default", "objects": [ "record:host/ZG5zLmhvc3QkLl9kZWZhdWx0Lm5ldHdvcmsucmljaGFyZC5yb3V0ZXI:router.example.org/Internal%20DNS", ], "status": "USED", "types": [ "HOST" ], "usage": [ "DNS" ] }, { "_ref": "ipv4address/Li5pcHY0X2FkZHJlc3MkMTAuOS4xNi40LzA:192.168.1.4", "ip_address": "192.168.1.4", "is_conflict": false, "mac_address": "", "names": [ "switch.example.org" ], "network": "192.168.1.0/24", "network_view": "default", "objects": [ "record:a/ZG5zLmJpbmRfYSQuX2RlZmF1bHQubmV0d29yay5yaWNoYXJkLHN3aXRjaCwxMC45LjE2LjQ:switch.example.org/Internal%20DNS" ], "status": "USED", "types": [ "A" ], "usage": [ "DNS" ] },