Via API, I need to find out the name of the switches that the access points are connected to.

joedelapaz
Conversationalist

Via API, I need to find out the name of the switches that the access points are connected to.

I can generate a list of access point names and serial numbers via the API.

However, I need to programmatically find out the name of the switch that the access points are connected to.

 

The Dashboard can generate this info via the Ethernet 1 LLDP column.

 

Access Points - Meraki Dashboard.png

 

 

Is there a way to access that information via the API?

 

Any help would be greatly appreciated.

2 Replies 2
rhbirkelund
Kind of a big deal
Kind of a big deal

You can use the getLldpCdp endpoint. 🙂

 

https://developer.cisco.com/meraki/api-v1/get-device-lldp-cdp/

LinkedIn ::: https://blog.rhbirkelund.dk/

Like what you see? - Give a Kudo ## Did it answer your question? - Mark it as a Solution 🙂

All code examples are provided as is. Responsibility for Code execution lies solely your own.
RaphaelL
Kind of a big deal
Kind of a big deal

I would use : https://developer.cisco.com/meraki/api-v1/get-organization-switch-ports-statuses-by-switch/ ( Beta ). One call to return all the info will be more efficient than getLldpCdp 

Get notified when there are additional replies to this discussion.