- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Network Container Utilization API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 01:51 AM
I am successfully using the following curl command to determine the utilization of a network in Infbolox:
curl -k -u userass -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
Solved! Go to Solution.
Re: Network Container Utilization API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 05:33 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 06:27 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 07:57 AM
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/