- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
Solved! Go to solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
https://developer.cisco.com/meraki/api/get-device/ can be used for a single device by serial
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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}
