Loop through Devices & App Data Storage Size

Jason_beginner
New here

Loop through Devices & App Data Storage Size

New to API's. How do I loop through devices (all iPhone's) in an organization and find data storage size an app takes in each of the devices? Could anyone provide links on API docs? Thanks!

2 Replies 2
Inderdeep
Kind of a big deal
Kind of a big deal

@Jason_beginner : Meraki API calls are below 

https://developer.cisco.com/meraki/api-v1/ 

Regards/Inder
Cisco IT Blogs awarded in 2020 & 2021
www.thenetworkdna.com
sungod
Kind of a big deal

This looks like the only call that returns app data, you'd need to try it against a test device to see if the return data gives what you are looking for...

https://developer.cisco.com/meraki/api-v1/#!get-network-sm-device-softwares

 

You will need to find your organization ID, you can find it with...

https://developer.cisco.com/meraki/api-v1/#!get-organizations

 

Also you need the network ID of a system manager network, use this to find all networks and choose an SM one...

https://developer.cisco.com/meraki/api-v1/#!get-organization-networks

 

To create a script to automate things, the loop would be...

 

get all networks in the org with...

https://developer.cisco.com/meraki/api-v1/#!get-organization-networks

 

iterate through that list, testing the productTypes element

for each network that is a system manager network, run the get-network-sm-device-softwares call to get the device data

 

I recommend using the Python API library as it does a lot of the low level stuff for you...

https://pypi.org/project/meraki/

 

Get notified when there are additional replies to this discussion.