- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Get devices connected to switches using Infoblox API (Network Insight appliance)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2020 12:37 PM
I'd like to get a list of devices connected to each switch in Infoblox. Our Infoblox has discovery devices available in the grid and discovers networks devices. I have read the NGIOS API documentation (https://www.infoblox.com/wp-content/uploads/infoblox-deployment-infoblox-rest-api.pdf) but didn't find how to do it. Could someone help? Many thanks
Solved! Go to Solution.
Re: Get devices connected to switches using Infoblox API (Network Insight appliance)
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2020 09:16 AM - edited 07-21-2020 09:16 AM
Try the discovery:deviceneighbor object, and include the reference to the device for which you want to get the connected devices. These are what's displayed in the "Assets" tab in the GUI, for that device.
I did this:
https://192.168.1.2/wapi/v2.9/discovery:deviceneighbor?device=discovery:device/Li5kZXZpY2UkODI2MjY4NzYzNDUxORI1NDM0LzEwLjkuETYuMjcvMC9jaXNjby5yaWNoY7JkLm5ldHdvcms:switch.example.org/default&_return_fields=address,interface,mac,name,vlan_infos
and got a long list of results like this.:
{ "_ref": "discovery:deviceneighbor/Li5uZWlnaGJvcl9kZXZpY2UkNzQwODk:pdu.example.org", "address": "192.168.1.23", "interface": { "_ref": "discovery:deviceinterface/Li5pbnRlcmZhY2UkNzk4NTkyMTQ4NzQ2MDg3NDA0NQ:Fa0%2F10" }, "mac": "00:C0:B7:4F:12:34", "name": "pdu.example.org", "vlan_infos": [ { "id": 1, "name": "default" } ] }