GET - Uplink of a single network or device

Solved
Whoops
New here

GET - Uplink of a single network or device

I am working on an application for a support team and I would like to pull the Public IP for a single device. I realize I can pull the whole organization uplink, but would like a solution that takes less time to pull (as it will be pulled multiple times to view changes)

1 Accepted Solution
LearningIsFun
Getting noticed

You can still use the same call (below) but filter the call on the serial number of the unit in question.  However you need need to pass that serial in the call, which means you likely need to do another call to get that ahead of time.

 

You might be better off just running the over all Org call, say every hour, and then use your Application to just look up the data within the past results, without an API call.  This public IP information doesn't change all that often.

 

https://developer.cisco.com/meraki/api/get-organization-uplinks-statuses/

View solution in original post

4 Replies 4
Ryan_Miles
Meraki Employee
Meraki Employee

https://developer.cisco.com/meraki/api/get-device/ can be used for a single device by serial

Ryan

If you found this post helpful, please give it Kudos. If my answer solves your problem please click Accept as Solution so others can benefit from it.
Whoops
New here

I really appreciate your quick response!
https://api.meraki.com/api/v1/devices/{Serial}

Does give me the IP the MX device is on, but does not return the Public IP like in

https://api.meraki.com/api/v1/organizations/{Org ID}/uplinks/statuses

LearningIsFun
Getting noticed

You can still use the same call (below) but filter the call on the serial number of the unit in question.  However you need need to pass that serial in the call, which means you likely need to do another call to get that ahead of time.

 

You might be better off just running the over all Org call, say every hour, and then use your Application to just look up the data within the past results, without an API call.  This public IP information doesn't change all that often.

 

https://developer.cisco.com/meraki/api/get-organization-uplinks-statuses/

Whoops
New here

Thank you for the reply!
EDIT:
Works Perfectly, returning only 1 network! 
api.meraki.com/api/v1/organizations/{Org ID}/uplinks/statuses?networkIds[]={network ID}

Get notified when there are additional replies to this discussion.