Data doesn't match Dashboard API Documentation

SOLVED
VictorTJ
Here to help

Data doesn't match Dashboard API Documentation

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"
},

1 ACCEPTED SOLUTION
ww
Kind of a big deal
Kind of a big deal

You do have a switch  in the network ? Or only the mx65

View solution in original post

3 REPLIES 3
BrechtSchamp
Kind of a big deal

If you share your code, I can take a look at it.

 

Edit out sensitive info of course.

ww
Kind of a big deal
Kind of a big deal

You do have a switch  in the network ? Or only the mx65

Thanks for answer.  I realized that the MX doesn't have the same keys and switches do.  Thanks.

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.