Get Inspection Devices

Last Updated on : 2023-06-15 05:55:26

Get the list of inspection devices linked with a specified asset based on the entered asset ID.

API address

GET: /v1.0/iot-03/video-inspection/assets/{asset_id}/assigned-devices

Request parameter

Parameter name Type IN Required Description
asset_id String uri true The asset ID.
device_id String query false The ID of a specified inspection device.
device_type Integer query false The type of a specified inspection device.
  • 2: video inspection.
page_size Integer query false The number of items returned on each page.
page_no Integer query false The page number.

Return parameter

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.
gateway_id String The gateway ID.
node_id String The node ID of a specified device that is connected through a gateway.
device_type Integer The type of a specified inspection device. Set the value to 2 to represent video inspection.

Request example

GET: /v1.0/iot-03/video-inspection/assets/142324705862568****/assigned-devices?device_id=vdevo16281640933****&device_type=2

Return example

{ "result": { "list": [ { "category_name": "Smart Camera", "device_type": 2, "gateway_id": "6c45cbb37e1c5****0hv65", "name": "Smart Camera 4", "online": true, "id": "6c800207371d290c80sa4x", "category": "sp", "node_id": "tuya2a2aad6da9****52a004" }, { "category_name": "Smart Camera", "device_type": 2, "gateway_id": "6c45cbb37e1c****e0hv65", "name": "Smart Camera 1", "online": true, "id": "6cdcdb35078****986sogk", "category": "sp", "node_id": "tuya2a2aad****98152a001" }, { "category_name": "Smart Camera", "device_type": 2, "gateway_id": "6c45cbb37e1****ae0hv65", "name": "Smart Camera 2", "online": true, "id": "6c2fc848faad****8ayuel", "category": "sp", "node_id": "tuya2a2aa****298152a002" }, { "category_name": "Smart Camera", "device_type": 2, "gateway_id": "6c45cbb37****bae0hv65", "name": "Smart Camera 3", "online": true, "id": "6c87a51831b****160a6kx", "category": "sp", "node_id": "tuya2a2aad****98152a003" }, { "category_name": "Smart Camera", "device_type": 2, "gateway_id": "6cfcd243c01****b6ndhs", "name": "Smart Camera 3", "online": true, "id": "6cf59c939c****16c42yca", "category": "sp", "node_id": "tuyadb451****02eec4ba003" }, { "category_name": "Smart Camera", "device_type": 2, "gateway_id": "6cfcd24****64376b6ndhs", "name": "Smart Camera 1", "online": true, "id": "6c81ea93d****931f0up2v", "category": "sp", "node_id": "tuyadb45****c02eec4ba001" }, { "category_name": "Smart Camera", "device_type": 2, "gateway_id": "6cfcd243****4376b6ndhs", "name": "Smart Camera 2", "online": true, "id": "6ce1454a956f****edypj8", "category": "sp", "node_id": "tuyadb4512****2eec4ba002" }, { "category_name": "Smart Camera", "device_type": 2, "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 }

Error code

For more information, see error code.