This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function process( /*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) { | |
// Parse Meraki Alerts Webhook Data | |
var requestBody = request.body; | |
var requestString = requestBody.dataString; | |
var requestParsed = {}; | |
requestParsed = JSON.parse(requestString); | |
var merakiAlert = requestParsed; | |
// Create SNOW Incident |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "6b02c4a0.a0d1ac", | |
"type": "tab", | |
"label": "Alerts", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "def605c1.7fb328", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "fc8601c3.25e5b", | |
"type": "tab", | |
"label": "MV MQTT", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "8a8e0f9e.ea00c", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copy this function over the existing Code.gs file in a Google Sheet | |
Save the Sheet/Script | |
Publish App | |
- Execute as You | |
- Avaiable to Anyone (including anonymous) | |
Authorize App when prompted | |
The URL will act as the Webhook URL for Meraki to send alerts | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This Firebase Function will provide a `/splashAuth` route to authenticate a wireless client on a Meraki Network. | |
* Example | |
* [POST] https://merakicaptiveportal-vuejs.firebaseapp.com/splashAuth/ | |
* Body: | |
{"clientMac":"24:18:1d:ae:4c:71","nodeMac": "88:15:44:60:1c:1a"} | |
* Returns: | |
{ | |
"ssids": { | |
"4": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Settings - Modify this with your values | |
// ************************* | |
// User Defined in the Script | |
var API_KEY = ''; | |
var ORG_ID = ''; | |
var NET_ID = ''; | |
var TIMESPAN = ''; | |
// User Defined in a Sheet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Meraki Dashboard API endpoint service for VueJS | |
A collection of functions to interact with the Meraki API. | |
This version is designed to work with a VueJS project. | |
It is easy to duplicate any of the methods to and modify them for new API endpoints. | |
The service will leverage an event HUB to broadcast messages while scripts are running. This is helfpul |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Meraki Clients on a Network | |
Traverse the Meraki Dashboard API to display the Clients and Group Policies for each device in a network. | |
npm install axios json-bigint --save | |
Run: | |
$ API_KEY=2f30UseYourOwnAPIkEyd170f NET=L_12345678 node listClients-Network.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Meraki Group Policy Tool | |
Traverse the Meraki Dashboard API to display IDs for Organizations, Networks and Group Policies | |
npm install axios json-bigint --save | |
Run: | |
$ API_KEY=2f30UseYourOwnAPIkEyd170f node listGroupPolicies-allOrgs.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Handles Meraki API requests. Has additional logic to follow the HTTP redirects properly and handle OrgID being converted to INTs | |
var request = require("request"); | |
var JSONbig = require("json-bigint")({ storeAsString: true }); | |
// Recursive function to follow Meraki API redirects | |
var requestMeraki = function(options, callback) { | |
request(options, function(error, res, data) { | |
//console.log('RESPONSE [ ' + res.statusCode + ' ]'); | |
if (error) { |