Last Updated on : 2023-06-20 15:22:52download
Get the sub-node assets under a specified asset. You can sort them by asset name or creation time.
GET: /v1.1/iot-02/assets/{asset_id}/sub-assets
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| asset_id | String | uri | true | The asset ID. |
| page_no | Integer | query | true | The current page number. |
| page_size | Integer | query | true | The number of entries returned on each page. |
| sort_rule | String | query | true | The supported sorting rules are as follows:
|
| Parameter name | Type | Description |
|---|---|---|
| result | AssetsPageListResponse | The returned result about assets. |
Description of result
| Parameter name | Type | Description |
|---|---|---|
| list | List | The list of asset results. |
| has_next | Boolean | Specifies whether there is a next page. |
Description of list
| Parameter name | Type | Description |
|---|---|---|
| asset_id | String | The asset ID. |
| parent_asset_id | String | The ID of the parent asset. The top-level ID is set to -1. |
| asset_name | String | The name of a specified asset. |
| asset_full_name | String | The full name of a specified asset. |
| level | Integer | The hierarchical level of a specified asset. The root node is set to 0. |
GET: /v1.1/iot-02/assets/abcd/sub-assets?page_no=1&page_size=20&sort_rule=assetNameAsc
{
"list": [
{
"level": 0,
"asset_id": "123",
"asset_full_name": "123",
"asset_name": "123",
"parent_asset_id": "-1"
}
],
"has_next": false
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback