searchSiteWiredClients
Search wired clients for a site with filters for device MAC address, client MAC address, IP address, switch port, VLAN, manufacturer, DHCP attributes, NAC rule, and time range. Use Search Org Wired Clients to search wired clients across the organization.
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 device MAC address
Filter results by MAC address
Filter results by IP address
Filter results by port identifier
Filter results by client learning source. enum: lldp, mac
Value in
- "lldp"
- "mac"
Filter results by VLAN ID
Filter results by manufacturer
Single entry of hostname/mac
Filter results by NAC rule identifier
Filter results by DHCP hostname
Filter results by DHCP FQDN
Filter results by DHCP client identifier
DHCP Vendor Class Identifier
Filter results by DHCP request parameters
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/wired_clients/search"{ "end": 1648529800.8221116, "limit": 1000, "results": [ { "auth_method": "mac_auth", "auth_state": "authenticated", "device_mac": [ "001122334455" ], "dhcp_client_identifier": "MAC address 00155df6d500", "dhcp_client_options": [ { "code": "DHO_DHCP_MESSAGE_TYPE(53)", "data": "DHCPREQUEST" }, { "code": "DHO_DHCP_CLIENT_IDENTIFIER(61)", "data": "MAC address 00155df6d500" }, { "code": "DHO_DHCP_REQUESTED_ADDRESS(50)", "data": "172.17.10.255" }, { "code": "DHO_DHCP_SERVER_IDENTIFIER(54)", "data": "172.17.8.1" }, { "code": "DHO_DHCP_MAX_MESSAGE_SIZE(57)", "data": "1280" }, { "code": "DHO_DHCP_PARAMETER_REQUEST_LIST(55)", "data": " 1 3 6 12 15 28 43 180" }, { "code": "DHO_VENDOR_CLASS_IDENTIFIER(60)", "data": "MSFT 5.0" }, { "code": "DHO_HOST_NAME(12)", "data": "ITS-VMMT0-D1N02" } ], "dhcp_fqdn": "ITS-VMMT0-D1N02.mgthub.local", "dhcp_hostname": "ITS-VMMT0-D1N02", "dhcp_request_params": "1 3 6 15 31 33 43 44 46 47 119 121 249 252", "dhcp_vendor_class_identifier": "MSFT 5.0", "mac": "112233445566", "org_id": "c168ddee-c14c-11e5-8e81-1258369c38a9", "port_id": [ "et-0/0/1" ], "site_id": "c168ddee-c14c-11e5-8e81-1258369c38a9", "timestamp": 1571174567.807, "vlan": [ 0, 1001 ] } ], "start": 1648443400.8221116, "total": 1}countSiteWiredClients GET
Count wired clients for a site, optionally grouped by the `distinct` field and filtered by MAC address, switch port, VLAN, and time range. Use [Count Org Wired Clients](/api/mist/orgs/orgs-clients/orgs-clients---wired/countOrgWiredClients) to count wired clients across the organization.
countSiteWirelessClientEvents GET
Count wireless client events for a site, optionally grouped by the `distinct` field and filtered by event attributes and time range. Use [Count Org Wireless Client Events](/api/mist/orgs/orgs-clients/orgs-clients---wireless/countOrgWirelessClientEvents) to count wireless client events across the organization.