searchSiteDiscoveredSwitches
Search Discovered Switches
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
uuidQuery Parameters
Filter results by whether the device is adopted
Filter discovered switch results by system name
Filter results by hostname
Filter results by vendor
Filter results by device model
Filter results by software version
Maximum number of results to return per page
0 <= value100Lower bound of the time range, as an epoch timestamp in seconds or a relative value such as -1d or -1w
Upper bound of the time range, as an epoch timestamp in seconds or a relative value such as -1d, -2h, or now
Time range duration for the query, using relative units such as 10m, 7d, or 2w
"1d"On which field the list should be sorted, -prefix represents DESC order
"timestamp"Pagination cursor for retrieving subsequent pages of results. This value is automatically populated by Mist in the next URL from the previous response and should not be manually constructed.
Response Body
curl -X GET "https://example.com/api/v1/sites/000000ab-00ab-00ab-00ab-0000000000ab/stats/discovered_switches/search"{ "end": 1604496474.8978634, "limit": 1000, "results": [ { "aps": [ { "hostname": "ap41nearlab", "inactive_wired_vlans": [], "mac": "5c5b352e2001", "poe_status": true, "when": "2019-06-13T19:53:16.870+0000" } ], "mgmt_addr": "10.1.1.1", "model": "EX2300-C-12P", "org_id": "6748cfa6-4e12-11e6-9188-0242ac110007", "site_id": "67970e46-4e12-11e6-9188-0242ac110007", "system_desc": "Juniper Networks, Inc. ex2300-c-12p Ethernet Switch, kernel JUNOS 18.2R2.6, Build date: 2018-12-07 13:19:04 UTC Copyright (c) 1996-2018 Juniper Networks, Inc.", "system_name": "mist-lab-ex2300c", "timestamp": 1560457177.037, "vendor": "Juniper Networks", "version": "18.2R2.6" } ], "start": 1604410074.8978484, "total": 1}