SitesStatsDiscovered Switches

listSiteDiscoveredSwitchesMetrics

GET
/api/v1/sites/{site_id}/stats/discovered_switches/metrics

Discovered switches related metrics, lists related switch system names & details if not compliant

Authorization

Authorization<token>

Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.

Format: Authorization: Token {apitoken}

Notes:

  • An API token generated for a specific admin has the same privileges as that admin
  • An API token is automatically removed if it is not used for more than 90 days
  • SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.

In: header

Path Parameters

site_id*string
Formatuuid

Query Parameters

threshold?string

Configurable # ap per switch threshold, default 12

system_name?string

System name for switch level metrics, optional

Response Body

curl -X GET "https://example.com/api/v1/sites/000000ab-00ab-00ab-00ab-0000000000ab/stats/discovered_switches/metrics"
{  "inactive_wired_vlans": {    "details": {},    "score": 100  },  "poe_compliance": {    "details": {      "total_aps": 63,      "total_power": 981500    },    "score": 100  },  "switch_ap_affinity": {    "details": {      "system_name": [        "mist-lab-ex2300c",        "switch1"      ],      "threshold": 12    },    "score": 33.3333  },  "version_compliance": {    "details": {      "major_versions": [        {          "major_count": 2,          "model": "EX2300-C-12P",          "system_names": [            "switch1",            "mist-lab-ex2300c"          ]        },        {          "major_count": 1,          "model": "EX4300-48P",          "system_names": []        }      ],      "total_switch_count": 5    },    "score": 75  }}