- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Python Script for getting All in One.
Hi ,
I have a requirement for fetching the details of all the Organizations, Under the organization all the Network details, Under Network all the SSID details, Under SSID all the Radius server details as a single output file from Meraki Dashboard. This will help me to understand which Radius server is configured in which SSID -Network-Organization.
Could you please help me to find the script.
Solved! Go to solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are not familiar with Python, I advise you to look for an expert to help you.
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much for your prompt reply.
As per my understanding I need to manually apply the following variables only. Rest of the variables will be fetched from the output of the relevant requests. Please confirm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just this one.
apikey = os.getenv('MERAKI_DASHBOARD_API_KEY')
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just a headsup,
apikey = os.getenv('MERAKI_DASHBOARD_API_KEY')
assumes that you have a System Environment Variable created called MERAKI_DASHBOARD_API_KEY, which contains your Meraki API Key.
If you don't have such an environment variable configured, you may set apiKey directly, by replacing the former with
apiKey = "your-api-key"
dashboard = meraki.DashboardAPI(apiKey)
or enter it directly in the dashboard instantiation,
dashboard = meraki.DashboardAPI("your-api-key")
Like what you see? - Give a Kudo ## Did it answer your question? - Mark it as a Solution 🙂
All code examples are provided as is. Responsibility for Code execution lies solely your own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Additionally, the "apikey" assignment in the example below is is redundant,
apikey = os.getenv('MERAKI_DASHBOARD_API_KEY')
dashboard = meraki.DashboardAPI(apikey)
If you specify "dashboard = meraki.DashboardAPI()" without any parameters, it will automatically search your system for the MERAKI_DASHBOARD_API_KEY environment variable, and pull it from there.
Specifying the key allows to to distinguish between different API keys, so forth you have so.
Like what you see? - Give a Kudo ## Did it answer your question? - Mark it as a Solution 🙂
All code examples are provided as is. Responsibility for Code execution lies solely your own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
