Infoblox’s global team of threat hunters uncovers a DNS operation with the ability to bypass traditional security measures and control the Great Firewall of China. Read about “Muddling Meerkat” and the many other threat actors discovered by Infoblox Threat Intel here.

API Examples

Reply

Network Container Utilization API

New Member
Posts: 2
5025     1

I am successfully using the following curl command to determine the utilization of a network in Infbolox:

curl -k -u userSmiley Tongueass -H 'content-type: application/json' -X GET "example.com/wapi/v2.12/network?network=x.x.x.x/24&_return_fields=utilization"

I want to tweak it to show me the utilization of a network container instead but am struggling to find anything within the documentation, does anyone know how to do thi?

Thanks

Re: Network Container Utilization API

Moderator
Moderator
Posts: 298
5025     1

The networkcontainer object also has a utilization field availalble.  Try this:

 

curl -k -u admin:infoblox -H 'content-type: application/json' -X GET "https://192.168.1.2/wapi/v2.12/networkcontainer?network=192.168.0.0/16&_return_fields=utilization"

which returns:

 

[
    {
        "_ref": "networkcontainer/ZG5zLm5ldHdvcmtfY29udGFpbmVyJDE5Mi4xNjguMC4wLzE2LzA:192.168.0.0/16/default",
        "utilization": 90
    }
]

Re: Network Container Utilization API

New Member
Posts: 2
5025     1

Hi Matt

 

Absolutely kicking myself!! Thought it must have been straightforward enough but all my attempts had network_container instead of being one word...

 

I don't suppose you know if there is any thorough documentation online anywhere?

 

Thanks very much!

Gav

Re: Network Container Utilization API

Moderator
Moderator
Posts: 298
5025     1

Yes, the most thorough API documentation is online on the grid manager.  You can get to it from the right hand side of the GUI, expand the little triangle, open the Documentation section, and click on the "WAPI Documentation" link.

 

Or type in the url manually, for example "https://gm.example.org/wapidoc/"

 

Or visit the Univ of Illinois who makes theirs available online: https://ipam.illinois.edu/wapidoc/

Showing results for 
Search instead for 
Did you mean: 

Recommended for You