06-03-2022 02:44 PM
It seems no matter what script I run or what Python interpreter I run it I am getting no attributes for the specific parameter it is looking for. Below is the most simple request I can find -
Script -
import meraki
# Defining your API key as a variable in source code is not recommended
API_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
# Instead, use an environment variable as shown under the Usage section
# @ https://github.com/meraki/dashboard-api-python/
dashboard = meraki.DashboardAPI(API_KEY)
organization_id = 'XXXXXX'
response = dashboard.networks.getOrganizationNetworks(
organization_id
)
print(response)
Error -
Message='Networks' object has no attribute 'getOrganizationNetworks'
response = dashboard.networks.getOrganizationNetworks(
I've confirmed the meraki module is installed and upgraded. The file it is looking within does exist as well.
Solved! Go to Solution.
06-03-2022 02:55 PM
The correct command:
response = dashboard.organizations.getOrganizationNetworks( organization_id, total_pages='all')
https://developer.cisco.com/meraki/api-latest/#!get-organization-networks
06-03-2022 02:55 PM
The correct command:
response = dashboard.organizations.getOrganizationNetworks( organization_id, total_pages='all')
https://developer.cisco.com/meraki/api-latest/#!get-organization-networks
06-07-2022 07:01 AM
@Andy Mikulas, that was it! much appreciated!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide