Query Custom Dimension Node

Last Updated on : 2023-06-21 07:12:59download

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

Request parameter

Parameter name Type IN Required Description
dimension_code String uri true The dimension code.
parent_node_id String query true The ID of the parent node. If the value is empty, the list of root node will be obtained.
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.

Description of datas

Parameter name Type Description
node_id String The ID of a specified dimension node.
name String The name of a specified dimension node.

Request example

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

Return example

{ "result": { "datas": [ { "name": "xx", "nodeId": "xx" } ], "hasMore": false, "total": 10 }, "t": 1629253994726, "success": true }

Error code

For more information, see error code.