MS Uplink Port Via API

Here to help

MS Uplink Port Via API

Hi All, 


It looks like the v0 API endpoint for uplinks have been depreciated. I've combed through documentation on this but can't seem to find anything on this. 


How do you know which switch port is the uplink for the MS switch via the API now? I've checked the port calls, and can't seem to find that in their either. 


Thank you!

Kind of a big deal

@ClusterNet : Check the v1 documents now!get-organization-uplinks-statuses


Cisco IT Blogs awarded in 2020 & 2021
Building a reputation

All API calls for management interface are referring to MX, even the one you said, from v0.

Therefore, I don't think there is a way to determine the Uplink for a MS switch, unless you prepare it yourself. 


For instance, you can tag the uplink ports so later you can identify them via tag.

Or, another way would be to check the CDP/LLDP neighbour and try to compute it yourself, if your network IP address scheme permits.

Get notified when there are additional replies to this discussion.