List EMQX Clients
emqx_list_clientsList MQTT clients on an EMQX broker to answer device connectivity questions. Filter by client ID, username, or IP address, and paginate through large device fleets.
Instructions
List MQTT clients known to the broker.
Answers "which devices are online", "is device X connected", and
"who is connecting from this IP". Walk large fleets by raising
page rather than limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number. | |
| limit | No | Rows per page. | |
| clientid | No | Exact client id match. | |
| username | No | Exact username match. | |
| ip_address | No | Exact peer IP match. | |
| connected_only | No | Return only currently connected clients. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Total clients matching the filters. | |
| clients | Yes | ||
| has_more | Yes | True when further pages exist. |