Wake On Lan Api

Bon_clay
Just browsing

Wake On Lan Api

Can you use the Wake On Lan API without using a webhook callback?

4 Replies 4
PhilipDAth
Kind of a big deal
Kind of a big deal

In the docs, there is only an * next to vlanId and mac, so I think it might be optional.

https://developer.cisco.com/meraki/api-v1/create-device-live-tools-wake-on-lan/ 

Bon_clay
Just browsing

Trying in Postman with the following JSON

{
  "vlanId": "20",
  "mac": "00:00:00:39:26:a9"
}
Comes up with:
"JSONError: No data, empty input at 1:1 ^"

 

If I try with this JSON 
{
  "vlanId": "20",
  "mac": "00:00:00:39:26:a9",
  "callback": {
    "url": "",
    "sharedSecret": "",
    "httpServer": {
      "id": ""
    },
    "payloadTemplate": {
      "id": ""
    }
  }
}

I get the error 
"'url' must be a valid URL"
 
Not sure what needs to be in the JSON for it to work without a webhook server
 
 
Bon_clay
Just browsing

Figured it out. Was using a read only API key. Needed to use a Full Access API Key.
Is there a reason why it needs a Full Access API key. Read only users can already send wake on lan commands on the dashboard

Enduro
Here to help

We are waiting when it will be possible to send WoL via API from MX/Z devices (not only from switches)...

Get notified when there are additional replies to this discussion.