Reply

Import all used Static IP with records within a Network

New Member
Posts: 1
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

Moderator
Moderator
Posts: 321
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"
        ]
    }, 
Showing results for 
Search instead for 
Did you mean: 

Recommended for You