10-01-2024 02:56 AM
How reliable do you find getDeviceLiveToolsPing()?
I'm using it in a script. I request a ping with:
PingResponse = dashboard.devices.createDeviceLiveToolsPing(mxSerial,storeSubnet+"220",count=1)
And then I have a loop doing a time.sleep(1) until Response["status"]=="complete" calling:
Response = dashboard.devices.getDeviceLiveToolsPing(mxSerial,PingResponse["pingId"])
Some nights the scripts runs without issue. Tonight, the ping never gets out of the status "new". I don't get any errors. I won't be exceeding the special rate limit on this API call.
10-15-2024 09:04 AM
The loop to query the results can be avoided by using the webhook callback function. This would already reduce the API calls.
Also changes have been made to the API endpoint. "This endpoint has a sustained rate limit of one request every five seconds per device, with an allowed burst of five requests." In my opinion, these changes limit the endpoint enormously.
See also here: https://developer.cisco.com/meraki/api-v1/create-device-live-tools-ping/
10-15-2024 03:34 PM
>by using the webhook callback function
Not really possible when it's a script that could be run by several different people.
10-15-2024 11:05 PM
That's true, of course, but it would also be the easiest way to save API calls.
The actual problem in this case is probably the following:
"This endpoint has a sustained rate limit of one request every five seconds per device, with an allowed burst of five requests."
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide