Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API & Integration, DevOps,NetOps,SecOps

Reply

Get devices connected to switches using Infoblox API (Network Insight appliance)

Member
Posts: 1
2360     0

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

Re: Get devices connected to switches using Infoblox API (Network Insight appliance)

[ Edited ]
Moderator
Moderator
Posts: 246
2361     0

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"
		}
	]
} 

 

Showing results for 
Search instead for 
Did you mean: 

Recommended for You