Get Extended Properties in Bulk

Last Updated on : 2023-06-20 15:21:53download

Get the extended properties in bulk based on the list of device IDs and codes of extended properties.

API address

GET: /v1.0/iot-03/devices/properties

Request parameter

Parameter nameTypeINRequiredDescription
device_idsStringquerytrueThe list of up to 20 device IDs, separated by commas.
codeStringquerytrueThe 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/properties?device_ids=6cb****,6ce****&code=installLocation

Return example

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

Error code

For more information, see error code.