Community Record
32
Posts
14
Kudos
1
Solution
Badges
Jun 10 2021
6:53 AM
3 Kudos
Apologies for bumping an old thread, but Google points here -- is this really still the case? Is there no API endpoint to view uptime or ... anything?
... View more
Jul 22 2020
8:20 AM
I have a network that was converted, I believe, from MX only to combined. Apparently this changes the network ID. Is this working as intended or a bug? Why is the network ID not static? I noticed the old network ID still worked, and returned only the MX when I queried it for devices. Does a combined network actually have a 'combined' network ID then individual ones for each device type?
... View more
Labels:
- Labels:
-
Dashboard API
Jun 25 2020
7:04 AM
Not quite sure how to do this, I would like to specifiy "vrrp" and "dhcp" as the included event types. I would have thought that this is correct, but it returns nothing, as if it's interpreting it as the string literal 'vrrp,dhcp': {{API}}/networks/{{netID}}/events?includedEventTypes[]=vrrp,dhcp&productType=appliance If I try the following instead, it applies the last filter only (dhcp): {{API}}/networks/{{netID}}/events?includedEventTypes[]=vrrp&productType=appliance&includedEventTypes[]=dhcp I also tried moving the productType to the end, and including it after each event type, just in case it mattered. I have verified that both vrrp and dhcp return events when specified alone.
... View more
Labels:
- Labels:
-
Dashboard API
May 8 2020
1:44 PM
I want to be able to fetch switchport data via the API similar to how I would with SNMP, for the 'usual' metrics: Speed/Duplex Operational / Administrative Status Throughput Error packets / packet types. All of this is exposed via the API, but to the best of my knowledge, I have to make three separate calls per switch to retrieve all of this info. This isn't a problem, until the rate limiting kicks in. I do have backoff logic in place, but apparently it's not always cutting it. This is what I'm doing, does anyone know of a way to reduce the calls? // Retrieve interface packet counts for the switch.
query('/api/v0/devices/' + device.serial + '/switchPortStatuses/packets?timespan=' + TIMESPAN)
// Retrieve interface usage counts for the switch
query('/api/v0/devices/' + device.serial + '/switchPortStatuses?timespan=' + TIMESPAN)
// Retrieve interface statuses for the switch. Cannot use the above call because it blanks out 'status' values when a timespan is applied.
query('/api/v0/devices/' + device.serial + '/switchPortStatuses')
... View more
Labels:
- Labels:
-
Dashboard API
Mar 7 2020
8:15 AM
2 Kudos
Whoops I'm a baddie, didn't google enough first: https://developer.cisco.com/meraki/api/#/rest/api-endpoints/organizations/get-organization-device-statuses Though admittedly it's odd that it's not under some getDevice device call, and instead is under Organizations ...
... View more
Mar 7 2020
7:42 AM
Is there really no API call that includes the online/offline status of device? Looked everywhere I can think of and not seeing anything.
... View more
Labels:
- Labels:
-
Dashboard API
Feb 21 2020
3:00 AM
Thanks all! That makes sense and I can work with knowing that it's about 5 minutes.
... View more
Feb 18 2020
5:28 AM
2 Kudos
Think I figured it out, UpdateNetworkDeviceModel does not behave properly. name = dictionary.get('name')
tags = dictionary.get('tags')
lat = dictionary.get('lat')
lng = dictionary.get('lng')
address = dictionary.get('address')
notes = dictionary.get('notes')
move_map_marker = dictionary.get('moveMapMarker')
switch_profile_id = dictionary.get('switchProfileId')
floor_plan_id = dictionary.get('floorPlanId') All possible fields are always returned and sent in the PUT. For values you did not pass, like switch_profile_id, null is returned. The API rejects a null value for this key. Passing the parameters composed by the Python API to curl results in various errors: {"errors":["Device's network must be bound to a configuration template (that supports switches) to allow for switch profile binding"]}
{"errors":["'moveMapMarker' must be a boolean"]} So TL;DR the underlying UpdateNetworkDeviceModel has to be updated with additional logic to not send invalid values when they're not set.
... View more
Feb 18 2020
5:13 AM
Yea this isn't working for me either. Same result. Oddly, Postman receives a 200 but does not change anything. Tried changing device name, no change either. Postman raw body: {
"lat": XX.XXXXXX,
"lng": -YY.YYYYY,
}
... View more
Feb 16 2020
6:32 PM
2 Kudos
This is the endpoint I'm querying: (https://developer.cisco.com/meraki/api/#/rest/api-endpoints/switch-ports/get-device-switch-port-statuses-packets) I'm configuring monitoring to poll this every 3 minutes, and I set timespan=180. So every 3 minutes, I expect to get values back that indicate the packet count seen for the past 3 minutes. However, it looks like most of the time consecutive polls are duplicate values. This implies the actual data the API is retrieving isn't being updated as fast as I'm polling it. (Validated in Postman that successive queries are static.) Is there documentation as to how frequently data like this is updated? I suppose it's not a problem to just up the values to 5 minutes.
... View more
Labels:
- Labels:
-
Dashboard API
Dec 5 2018
2:18 AM
Hmm that might be exactly what I need. Found the link: https://documentation.meraki.com/zGeneral_Administration/Managing_Dashboard_Access/Configuring_SAML_Single_Sign-on_for_Dashboard . Thanks!
... View more
Dec 4 2018
3:56 PM
Is it possible to disable the email verification? I understand how to use the API to create the administrators, but with 60+ organizations, accepting 60+ verification emails is ... tedious. Any chance that when using the API to create it doesn't send these? I'm trying to get rid of having a single shared account.
... View more
Labels:
- Labels:
-
Dashboard API
My Accepted Solutions
Subject | Views | Posted |
---|---|---|
2060 | Mar 7 2020 8:15 AM |
My Top Kudoed Posts
Subject | Kudos | Views |
---|---|---|
3 | 54991 | |
2 | 2060 | |
2 | 6690 | |
2 | 3187 |