Last Updated on : 2023-06-21 07:13:05download
Get a list of inspection devices linked with a specified asset.
GET: /v1.0/iot-03/store-inspection/assets/{asset_id}/assigned-devices
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
asset_id | String | uri | true | The ID of a specified asset. |
device_id | String | query | false | The ID of a specified inspection device. |
device_type | Integer | query | false | The type of a specified inspection device. Set the value to 1 to represent AI inspection. |
page_size | Integer | query | false | The number of items returned on each page. Default value: 20 . Maximum value: 100 . The value must be a positive integer. |
page_no | Integer | query | false | The page number. Default value: 1 . The value must be a positive integer. |
Parameter name | Type | Description |
---|---|---|
result | Page | The list of inspection devices. |
Description of result
Parameter name | Type | Description |
---|---|---|
total | Long | The total entries of data that meets the criteria. |
list | List |
The list of linked inspection devices. |
has_more | Boolean | Specifies whether to return the next page. |
Description of list
Parameter name | Type | Description |
---|---|---|
id | String | The ID of a specified inspection device. |
name | String | The name of a specified inspection device. |
online | Boolean | The online status of a specified inspection device. |
category | String | The category code of a specified inspection device. |
category_name | String | The category name of a specified inspection device. |
device_type | Integer | The type of a specified inspection device. Set the value to 1 to represent AI inspection. |
node_id | String | The node ID of a specified device that is connected through a gateway. |
GET: /v1.0/iot-03/store-inspection/assets/142324705862568****/assigned-devices?device_id=vdevo16281640933****&device_type=1
{
"result": {
"list": [
{
"category_name": "Smart Camera",
"device_type": 1,
"gateway_id": "6c45cbb37e1c5abae0h***",
"name": "Smart Camera 4",
"online": true,
"id": "6c800207371d290c80s***",
"category": "sp",
"node_id": "tuya2a2aad6da9298152a***"
},
{
"category_name": "Smart Camera",
"device_type": 1,
"gateway_id": "6c45cbb37e1c5abae0h***",
"name": "Smart Camera 1",
"online": true,
"id": "6cdcdb350788958986s***",
"category": "sp",
"node_id": "tuya2a2aad6da9298152a***"
},
{
"category_name": "Smart Camera",
"device_type": 1,
"gateway_id": "6c45cbb37e1c5abae0h***",
"name": "Smart Camera 2",
"online": true,
"id": "6c2fc848faada0688ay***",
"category": "sp",
"node_id": "tuya2a2aad6da9298152a***"
},
{
"category_name": "Smart Camera",
"device_type": 1,
"gateway_id": "6c45cbb37e1c5abae0h***",
"name": "Smart Camera 3",
"online": true,
"id": "6c87a51831b37e1160a***",
"category": "sp",
"node_id": "tuya2a2aad6da9298152a***"
},
{
"category_name": "Smart Camera",
"device_type": 1,
"gateway_id": "6cfcd243c0164376b6n***",
"name": "Smart Camera 3",
"online": true,
"id": "6cf59c939c217916c42***",
"category": "sp",
"node_id": "tuyadb4512a8c02eec4ba***"
},
{
"category_name": "Smart Camera",
"device_type": 1,
"gateway_id": "6cfcd243c0164376b6n***",
"name": "Smart Camera 1",
"online": true,
"id": "6c81ea93d7476931f0u***",
"category": "sp",
"node_id": "tuyadb4512a8c02eec4ba***"
},
{
"category_name": "Smart Camera",
"device_type": 1,
"gateway_id": "6cfcd243c0164376b6n***",
"name": "Smart Camera 2",
"online": true,
"id": "6ce1454a956fc37aedy***",
"category": "sp",
"node_id": "tuyadb4512a8c02eec4ba***"
},
{
"category_name": "Smart Camera",
"device_type": 1,
"gateway_id": "6cfcd243c0164376b6****",
"name": "Smart Camera 4",
"online": true,
"id": "6c2769b9b180368e2d****",
"category": "sp",
"node_id": "tuyadb4512a8c02eec4b****"
}
],
"total": 8,
"has_more": false
},
"t": 1635401574148,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback