Query Devices Bound with Monitor

Last Updated on : 2023-06-21 07:13:02download

Query the list of devices bound with the monitors based on the monitor ID.

API address

GET: /v1.0/iot-03/statistical-indicators/monitors/{monitor_id}/devices

Request parameter

Parameter name Type IN Required Description
monitor_id String uri true The monitor ID.
page_no Integer query true The current page number.
page_size Integer query true The number of items returned on each page. Valid values: 1 to 200.

Return parameter

Parameter name Type Description
result PageRsp

Description of result

Parameter name Type Description
total Long The total number of devices.
datas List The device list.
has_more Boolean Specifies whether to return the next page.

Request example

GET: /v1.0/iot-03/statistical-indicators/monitors/xxx/devices?pageNo=1&pageSize=10

Return example

{ "result": { "datas": [ "xxx" ], "total": 1, "has_more": false }, "t": 1632468010835, "success": true }

Error code

For more information, see error code.