Query Sub-assets

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

Query the information about sub-assets.

API address

GET: /v1.0/iot-03/assets/{asset_id}/sub-assets

Request parameter

Parameter name Type IN Required Description
asset_id String uri true The asset ID.
req PageReq query false

Description of req

Parameter name Type IN Required Description
page_size Integer false The number of entries returned on each page.
last_row_key String false The cursor of the asset ID.

Return parameter

Parameter name Type Description
result CursorPage

Description of result

Parameter name Type Description
has_more Boolean Specifies whether to return the next page.
list List
last_row_key String The row key of the last entry.

Description of list

Parameter name Type Description
asset_id String The asset ID.
asset_name String The asset name.
asset_full_name String The full name of the specified asset.
parent_asset_id String The ID of the parent asset.
asset_image String The asset image.
asset_type String The asset type.

Request example

GET: /v1.0/iot-03/assets/1398477051266162688/sub-assets

Return example

{ "result": { "last_row_key": "1398529147554340864", "list": [ { "asset_image": "image01", "asset_id": "1398529147554340***", "asset_full_name": "Level-1 Asset zichan02", "asset_name": "zichan02", "parent_asset_id": "1398477051266162***", "asset_type": "floor" } ], "has_more": false }, "t": 1624504525900, "success": true }

Error code

For more information, see error code.