Skip to main content

Python library for scraping your meraki dashboard of the data necessary to automate functions not available in the public API.

Project description

meraki_dashboard (module for easier access to hidden apis such as delete umbrella)

This module is specifically for gathering relevant data from the meraki dashboard UI that is necessary for automating configurations that are not available via the public Meraki API. There is a lot more data necessary for some of these calls, the simplest I have used this module for is removing an umbrella integration on an SSID which only requires a couple parameters to execute, example here

Quick Start

  1. Install via preferred method
  2. Import into your script
  3. Create and instance of the MerakiDashboardAPI() class dashboard = meraki_dashboard.MerakiDashboardAPI(username=xxxx,password=xxxx)
  4. Get your dashboard data via one of the 2 available methods dashboard.get_org_data() or dashboard.get_orgs_data()
  5. Parse the data received dashboard.parse_values()
  6. Gather the locale or node_group or organization you need for your calls e.g. `[local for locale in dashboard.locales if locale.name in ['networkname1','networkname2']]
  7. Start making API calls.
  8. Watch your token expiration, this is not automatic yet, but a call to dashboard.refresh_token(shard_id) will refresh the values you need for subsequent calls
  9. If you want to store your dashboard data for importing later, make a call to dashboard.use_sqlite(db_filename) and next time you instantiate your object, you can call use.sqlite(db_filename) before get_orgs_data() and it will import all of the previous data, you will still need to perform a meraki_login() to get the necessary dash_auth cookie for authentication to shard(s) and refresh_token() to get the relevant token(s) for your shard(s)

Note: I recommend using the dashboard.session object for calls as it will maintain the session_id cookie and dash_auth cookie as needed for you. It is up to you to ensure you pass in the shard specific headers for your calls.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meraki_dashboard-0.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meraki_dashboard-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file meraki_dashboard-0.1.0.tar.gz.

File metadata

  • Download URL: meraki_dashboard-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.2

File hashes

Hashes for meraki_dashboard-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d1f8e18e6ceb0cdadfeca474432245e3b58e035255041e26688ce582f339c02b
MD5 12939bf1e2923e81a6a5f9150e0a3265
BLAKE2b-256 f3db96d598658cbc3a3948a3b82373749f0805e589fc797c17f11eb9f6891ee3

See more details on using hashes here.

File details

Details for the file meraki_dashboard-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for meraki_dashboard-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5aff60aca545fcddcfee677f481e8eb20d84fa77515374b76fc0e17eac43bce
MD5 14777a2f87a2c94dd5092eec388aa5be
BLAKE2b-256 30bad358df47c0f0a62b86f9636828c2c45eb14fb8d005eafa3433f3f85a134e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page