Network_Devices = dashboard.networks.getNetworkDevices('xxx')
I am working on GET Requests with the Cisco Meraki API and Module in Python. The function above accepts only one 'input' ('xxx') above. Also, it will not accept a list.
Is there any way to automate this request in a python script? I have 50+ inputs I would like to run through the function.
Simply use a for loop. You said you have 50+ input, so you have a couple of options in this case:
.pyfile that holds all the networkd IDs (Not recommended).I'll illustrate option 2:
The
network_ids.txtfile should be like: (eachidon a seperate line)To minimize the step of collecting network IDs and adding each ID on a seperate line in a file, you can get the IDs from an organization ID: