The Meraki Dashboard API allows developers to handle tedious tasks quickly and simply. The API uses familiar REST conventions over HTTP with JSON data.
What can Dashboard API be used for?
Add new organizations, admins, networks, devices, VLANs, and more
Configure thousands of networks in minutes
On-board and off-board new employees’ teleworker setup automatically
Build your own dashboard for store managers, field techs, or unique use cases
Import the library and set your API key for authorization
In order to use the Cisco Meraki API, you have to enable the API for your organization first. After having enabled API access, you can generate an API key. You can follow the following instructions on how to enable API access and how to generate an API key:
Log in to the Cisco Meraki dashboard
In the left-hand menu, go to Organization > Settings > Dasbhoard API access
Click on Enable access to the Cisco Meraki Dashboard API
Go to Profile > API access
Under API access
, click on Generate API key
Save the API key in a safe place. Please note that the API key will be shown only once for security purposes. In case you lose the key, then you have to revoke the key and regenerate a new key. Moreover, there is a limit of only two API keys per profile.
The Webex APIs give you easy access to the Webex Platform to build Bots, Integrations, or Guest Issuer apps.
The Webex APIs provide your applications with direct access to the Cisco Webex Platform, giving you the ability to:
Navigate to 'Webex for Developers' site in the browser.
Log in using your Webex credentials.
If you don’t have a Webex account, get one by clicking Sign up.
Once logged in, you can get a temporary developer access token for your account by navigating to the Accounts and Authentication section of the Getting Started page.
Copy your developer access token and place it in a safe place, as you are using it in future sections of this Lab:
This is the list of the credentials required to run the script. The credentials should not be hardcoded into the script but imported as enviroment variables.
The following commands are executed in the terminal.
Create and activate a virtual environment for the project:
#WINDOWS:
$ py -3 -m venv [add_name_of_virtual_environment_here]
$ [add_name_of_virtual_environment_here]/Scripts/activate.bat
#MAC:
$ python3 -m venv [add_name_of_virtual_environment_here]
$ source [add_name_of_virtual_environment_here]/bin/activate
For more information about virtual environments, please click here
Access the created virtual environment folder
$ cd [add_name_of_virtual_environment_here]
Clone this repository
$ git clone [add_link_to_repository_here]
Access the folder MerakiWebexAlerts
$ cd MerakiWebexAlerts
Install the dependencies:
$ pip install -r requirements.txt
Simply run the following command in terminal
$ python merakiWebexAlert.py
And head over to your webex platform. If any of the uplinks in the meraki platform are down, there will be a new message in the selected meraki room:
Provided under Cisco Sample Code License, for details see LICENSE
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community