Last Updated on : 2023-06-15 04:49:33
Query the authorized assets by user ID (UID).
GET: /v1.0/iot-03/users/{uid}/assets
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
uid | String | uri | true | The user ID (UID). |
page_no | Integer | uri | false | The page number. Default value: 1 that means the first page. |
page_size | Integer | uri | false | The number of rows per page. Default value: 10 . |
Parameter name | Type | Description |
---|---|---|
result | BasePageRes |
Description of result
Parameter name | Type | Description |
---|---|---|
has_more | Boolean | Whether there is a next page of results. |
total | Long | The total entries of data that meets the criteria. |
list | List | The list of data. |
Description of list
Parameter name | Type | Description |
---|---|---|
asset_id | String | The ID of a specified asset. |
parent_asset_id | String | The ID of the parent asset. The top-level ID is set to -1 . |
asset_name | String | The name of the asset. |
level | Integer | The tree level. |
GET: /v1.0/iot-03/users/bay16257459716***/assets?pageNo=1&pageSize=100
{
"result": {
"list": [
{
"level": 0,
"asset_id": "14307747***",
"asset_name": "Iuiz***",
"parent_asset_id": "-1"
},
{
"level": 0,
"asset_id": "14307744***",
"asset_name": "JKJK***",
"parent_asset_id": "-1"
}
],
"total": 2,
"has_more": false
},
"t": 1629968103761,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback