Switch portIDs inconsistent between API endpoints

DavidGood
Conversationalist

Switch portIDs inconsistent between API endpoints

We're working on using the v1 API to monitor our switches.  We have an MS390-48P switch with SFP modules, one of which is connected to the site's internet link.

 

When querying the API though, I see different portIDs depending on which call I make.

 

/switch/ports returns:

 

“portId”: “1_MA-MOD-4X10G_1”,

 

while /switch/ports/statuses returns:

 

“portId”: “1/4x10G/1”,

 

which I think is the same port based on the text.  In any case, "1_MA-MOD-4x10G_1" certainly does not show up in the /switch/ports/statuses return data nor does "1/4x10G/1" show up in the /switch/ports data.  That makes it hard to setup monitoring since I need to have a way to discover ports (/switch/ports) and then a way to collect data about those ports (/switch/port/statuses) but it won't work if the portIds don't match.

 

Am I missing something here?

2 Replies 2
PhilipDAth
Kind of a big deal
Kind of a big deal

That sounds like a typical MS390 oddity.

John-K
Meraki Employee
Meraki Employee

Hi David! This is a good question and doesn't necessarily look intended. I'd open a support case to get official clarification from the appropriate team.

Get notified when there are additional replies to this discussion.