Skip to content
Export guide · Firewalls and network

How to export your Cisco Meraki configuration, and what we check in it

Where you run it: Meraki Dashboard (to create and later revoke your API key), then the Dashboard API (application programming interface) with curl and jq in bash.

In short

Cisco Meraki configuration export: the file Cisco Meraki writes of its own settings, which a configuration review reads setting by setting without connecting to Cisco Meraki.

How to export the Cisco Meraki configuration, step by step, what the review checks in the file (52 checks run), and what it does not read.

The fileJSON, one meraki.json per network: your organization id and that network's l3FirewallRules and l7FirewallRules
Checks run on it52
Highest grade its findings reachOBSERVED
Feeds attack pathsYes
Not read from this export3 areas, listed below

Sources: Cisco Meraki documentation (1); Cisco Meraki documentation (2); Cisco Meraki documentation (3); the vendor table.

How to export it

Who can pull it
A Dashboard administrator with Organization access "Read-only" (named "Observer" on the updated Administrators page), using their own API key. Meraki: "Read-only: User able to access most aspects of network and organization-wide settings, but unable to make any changes." The key inherits the permissions of the account that generates it, and the four calls in this guide are GET requests, the kind Meraki allows for such a key ("Read-only administrators can only make GET requests."). An administrator with Full access adds you under Organization → Configure → Administrators → Add admin.
Time
About 10 minutes for one network (most of it creating the API key); about 2 minutes for each further network.
The file
JSON, one meraki.json per network: your organization id and that network's l3FirewallRules and l7FirewallRules

No console export: The Dashboard shows these rules under Security & SD-WAN → Configure → Firewall. Meraki’s documentation for that page names no export of the rules, so the file comes from the Dashboard API steps; the Dashboard is used to create and later revoke your API key.

From the command line

  1. Create your API key: sign in at dashboard.meraki.com with an account that does not use SAML single sign-on (Meraki: "SAML/SSO administrators cannot view or generate API keys.") → the avatar icon in the top right-hand corner → My Profile → API Access section → generate the key. Organization administrators can also use Organization → Configure → API & Webhooks → API keys and access → Generate API Key. Copy the key straight away: the Dashboard does not show it again

    The vendor's page, checked 2026-11-11
  2. Keep the key for this terminal session (paste your own key in place of <your-api-key>): export MERAKI_API_KEY=<your-api-key>

    The vendor's page, checked 2026-11-11
  3. Find your <org-id>, the id printed next to your organization's name: curl -sL -H "Authorization: Bearer $MERAKI_API_KEY" "https://api.meraki.com/api/v1/organizations" | jq -r '.[] | "\(.id)\t\(.name)"'

    The vendor's page, checked 2026-11-11
  4. Find your <network-id> (the list shows the networks whose productTypes include appliance: the ones with an MX security appliance, which have these firewall rules): curl -sL -H "Authorization: Bearer $MERAKI_API_KEY" "https://api.meraki.com/api/v1/organizations/<org-id>/networks" | jq -r '.[] | select(.productTypes | index("appliance")) | "\(.id)\t\(.name)"'

    The vendor's page, checked 2026-11-11
  5. For one network, save its L3 rules: curl -sL -H "Authorization: Bearer $MERAKI_API_KEY" "https://api.meraki.com/api/v1/networks/<network-id>/appliance/firewall/l3FirewallRules" > l3.json

    The vendor's page, checked 2026-11-11
  6. and its L7 rules: curl -sL -H "Authorization: Bearer $MERAKI_API_KEY" "https://api.meraki.com/api/v1/networks/<network-id>/appliance/firewall/l7FirewallRules" > l7.json

    The vendor's page, checked 2026-11-11
  7. jq -n --arg org <org-id> --arg net <network-id> --slurpfile l3 l3.json --slurpfile l7 l7.json '{organizationId: $org, networks: [{id: $net, l3FirewallRules: $l3[0].rules, l7FirewallRules: $l7[0].rules}]}' > meraki.json

    The vendor's page, checked 2026-10-15
  8. After the upload has gone through, revoke the API key in the Dashboard, where you created it: My Profile (API Access section), or Organization → API & Webhooks → API keys and access. Meraki says of that page: "This page lists your personal API keys, if any. You have the option to revoke your own or generate yourself a new one."

    The vendor's page, checked 2026-11-11

What the file looks like

JSON, one meraki.json per network: your organization id and that network's l3FirewallRules and l7FirewallRules. It varies with the network: the file grows with the number of L3 and L7 rules. The upload takes files up to 10 MB.

What it holds: The L3 and L7 firewall rules of one network, in one meraki.json.

Upload meraki.json: l3.json and l7.json on their own are not read. One network per file: for each further network, repeat the L3, L7 and jq steps and upload that meraki.json too, then revoke the key. Run these commands in bash (macOS, Linux or WSL): in Windows PowerShell 5.1, > writes UTF-16, which jq and the upload refuse.

Afterwards

Revoke the API key where you created it: My Profile (API Access section), or Organization → API & Webhooks → API keys and access. Then run unset MERAKI_API_KEY , remove the export line from your shell history, and delete l3.json, l7.json and meraki.json once the upload has gone through.

If the export goes wrong

What you seeThe fix
The organization list prints a jq error that starts with Cannot index array, or a saved file holds an "errors" list instead of your dataThe key did not reach the API, or it is wrong: Meraki answers 401 (Invalid API key), or 404 for a missing or incorrect key. Run the export MERAKI_API_KEY=… line again in the same terminal window with the whole key (no spaces or quotes around it), or generate a new key and use that. If the message is Missing API key, replace -sL with -s --location-trusted in the curl lines: Meraki names that flag for cURL, because curl can drop the Authorization header when it follows a redirect.
l3.json or l7.json holds an "errors" list instead of "rules" (Meraki answers 404 Not found for an address it does not know)Use a <network-id> from the networks step, copied in full: Meraki treats identifiers as opaque strings. That list shows the networks with an MX security appliance, the ones that have these rules.
The upload says "We don’t recognise this as a Cisco Meraki export"Upload meraki.json, the file the jq step writes. l3.json and l7.json on their own are not read.

What we read from it

Checks run
52 + 2 guidance items, not counted
Formats read
Dashboard API JSON export
Releases
2024.1 to current

Checks run is the number of checks that reached a result on this system's own export in our tests, as the vendor table shows it.

The areas checked

  • L3 firewall rules: an allow rule from any source to any destination, and whether a deny rule to any destination ends the list. When none does, the finding names Meraki’s default rule, which allows outbound connections and is not in the file
  • L7 firewall rules: whether any are set

The grade its findings reach

Observed Findings from this file are OBSERVED: read from the system's own export and cited to the setting.

Its findings feed attack paths: each one can be a step on a path an attacker could take to your crown jewels.

Attack paths, the one change and dollar figures are MODELED. How each grade is worked out is on the method page.

What we do not read from this export

  • Port forwards and 1:1 NAT: not in this export (separate Dashboard API calls)
  • IPS, content filtering, AMP and Umbrella: not in this export (separate Dashboard API calls)
  • SSIDs (open networks, WPA versions, guest isolation, RADIUS): not in this export (separate Dashboard API calls)
  • Client VPN and site-to-site VPN: not in this export
  • Org admins and two-factor, API keys, SNMP, syslog, alerts and firmware: not in this export (separate Dashboard API calls)
  • Hit counts, so unused rules are not found
  • L7 rule bodies in depth (just whether L7 rules exist)
  • More than one network per file: a single network is assumed

Limits of the reader

  • Findings name the setting they come from, not its line number.
  • If your export leaves a section out, the review does not flag it as partial.
  • Some checks of this system are in the code and not counted: no test shows them firing on a file in the layout the vendor documents.

A finding never comes from what the file does not hold: live traffic, running hosts and logs are not in a configuration export.

Questions

Who can export the Cisco Meraki configuration?

A Dashboard administrator with Organization access "Read-only" (named "Observer" on the updated Administrators page), using their own API key. Meraki: "Read-only: User able to access most aspects of network and organization-wide settings, but unable to make any changes." The key inherits the permissions of the account that generates it, and the four calls in this guide are GET requests, the kind Meraki allows for such a key ("Read-only administrators can only make GET requests."). An administrator with Full access adds you under Organization → Configure → Administrators → Add admin.

Does the export change anything?

It creates one API key on your Dashboard profile. Meraki: "API keys do not expire." and "API keys can access all organizations the administrator has access to.", so the key works until you revoke it. The four GET calls read the settings and change nothing in your networks.

Does the file hold passwords or keys?

meraki.json holds no credentials: an L3 rule has a comment, a policy, a protocol, ports and addresses, an L7 rule a policy, a type and a value. Still sensitive: your internal addresses, rule comments and organization id. The API key is the secret here; it sits in your terminal session and its history, not in the file. Meraki: "Treat your API key like a password." With redaction on (the default), the passwords, keys and tokens the review recognises are replaced with a placeholder before anything is stored; the check before upload shows how many it found.