Get Extended Properties

Last Updated on : 2023-06-20 15:22:10download

Get the extended properties of a specified device by device ID.

API address

GET: /v1.0/iot-03/devices/{device_id}/properties

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe device ID.
codeStringqueryfalseThe code of a specified extended property.

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
valueStringThe value of a specified extended property.
dev_idStringThe device ID.
codeStringThe code of a specified extended property.

Request example

GET: /v1.0/iot-03/devices/6ce****/properties?code=installLocation

Return example

[
    {
        "devId": "dev1****",
        "code": "cid",
        "value": "cid****"
    },
    {
        "devId": "dev2****",
        "code": "vendorCode",
        "value": "vendorCode****"
    }
]

Error code

For more information, see error code.