Query Device of Custom Dimension Node

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

Query the custom statistical dimension tree, and query the child nodes based on the parent node.

API address

GET: /v1.0/iot-03/statistical-dimensions/{dimension_code}/nodes/{node_id}/devices

Request parameter

Parameter name Type IN Required Description
dimension_code String uri true The dimension code.
node_id String uri true The ID of a specified dimension node.
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 items.
datas List The list of dimension nodes.
has_more Boolean Specifies whether to return the next page.

Request example

GET: /v1.0/iot-03/statistical-dimensions/usage/nodes/123456/devices

Return example

{ "result": { "datas": [ "aaa***", "bbb***" ], "hasMore": false, "total": 10 }, "t": 1629253994726, "success": true }

Error code

For more information, see error code.