Skip to content

Instantly share code, notes, and snippets.

@afaqk9394
Created November 3, 2019 07:07
Show Gist options
  • Select an option

  • Save afaqk9394/6b5a6318edc78a3865c121bbd089be6e to your computer and use it in GitHub Desktop.

Select an option

Save afaqk9394/6b5a6318edc78a3865c121bbd089be6e to your computer and use it in GitHub Desktop.
Obtain the List of Devices using Meraki API
from meraki import meraki
apikey = "448e00b44c40d9b3087b5b20f78cb7c12772ea37"
myOrgs = meraki.myorgaccess(apikey)
#print (myOrgs)
orgid = "641762946900403561"
myNetworks = meraki.getnetworklist(apikey, orgid)
#print (myNetworks)
networkid = "N_641762946900876741"
deviceList = meraki.getnetworkdevices(apikey, networkid)
print(deviceList)
serialnum = "VRT-2207619790753"
clientList = meraki.getclients(apikey,serialnum)
#print (clientList)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment