The “Get All Device Stats” API returns current Access Point statistics for the specified site.
The following API URL is used:
| API Name | URL | Documentation |
|---|---|---|
| Get All Device Stats | https://api.mist.com/api/v1/sites/:site_id/stats/devices | https://api.mist.com/api/v1/docs/Site#device-stats |
Steps:
Navigate to the Access Points page to see the list of Access Points assigned to the current site:
“Unassigned APs” are Access Points which are not yet assigned to a site.
Click on any Access Point in the list to see more detailed information:
Run the following exercise to fetch and display stats for all APs on the site:
Open the “Files” submenu and inspect the config.py file below. It contains the Mist configuration variables used for this exercise.