cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3138
Views
0
Helpful
4
Replies

Wake On Lan Api

Bon_clay
Community Member

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

4 Replies 4

Philip D'Ath
Meraki Community All-Star
Meraki Community All-Star

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
Community Member

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
Community Member

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

lukasz-buchla
Frequent Visitor
Frequent Visitor

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