04-09-2020 09:19 PM
I'm trying to get data from the dashboard on devices. The data I'm getting in Python doesn't match the Dashboard API Documentation or in Postman. Any help would be greatly appreciated.
This is what I'm using and the output I'm getting.
url = "https://api.meraki.com/api/v0/organizations/#################/devices"
payload = {}
headers = {
'Accept': '*/*',
'X-Cisco-Meraki-API-Key': '###################################'
}
{
'address': '',
'configurationUpdatedAt': '2020-03-22T22:30:45Z',
'firmware': 'wired-15-10',
'lat': ,
'lng': ,
'mac': 'e0:cb:bc:24:a3:ef',
'model': 'MX65W',
'name': 'MX65W',
'networkId': 'L_64739244',
'notes': '',
'serial': '####-####-####',
'tags': '',
'url': '',
'wan1Ip': '8.8.8.8',
'wan2Ip': None
}
This is what I'm looking for
{
"name": "USMDHAG-2210-DSA02",
"serial": "XXXX-XXXX-XXXX",
"mac": "34:56:fe:ad:2d:f1",
"networkId": "L_64739",
"model": "MS120-8",
"address": "",
"lat": ,
"lng": ,
"notes": "SAFETY OFFICE",
"tags": "",
"lanIp": "10.132.10.20",
"configurationUpdatedAt": "2020-03-15T01:38:37Z",
"firmware": "switch-11-22",
"url": "https://n150.meraki.com/097"
},
Solved! Go to Solution.
04-10-2020 05:40 AM
You do have a switch in the network ? Or only the mx65
04-10-2020 02:16 AM
If you share your code, I can take a look at it.
Edit out sensitive info of course.
04-10-2020 05:40 AM
You do have a switch in the network ? Or only the mx65
04-11-2020 05:15 PM
Thanks for answer. I realized that the MX doesn't have the same keys and switches do. Thanks.
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