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.
If you are not familiar with Python, I advise you to look for an expert to help you.
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.
Just this one.
apikey = os.getenv('MERAKI_DASHBOARD_API_KEY')
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")
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.