Get Device List

Last Updated on : 2023-06-21 07:12:57download

Get a list of devices on pages, including basic information and extension information.

API address

GET: /v1.0/iot-02/lighting/devices

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
pagination.pageintbodytrueThe page number.
pagination.pageSizeintbodytrueThe number of items returned per page.
spaceIdStringbodytrueThe ID of a specified space.

Return parameter

Parameter nameTypeDescription
totalintThe total number of devices.
listDeviceSaasCVO[]The list of devices.

Request example

GET: /v1.0/iot-02/lighting/devices
{
  "spaceId": "14688692426811****",
  "pagination": {
    "page": 1,
    "pageSize": 12
  }
}

Return example

{
    "result": {
        "list": [
            {
                "thirdCategory": "zig_kg",
                "productId": "ehmh****",
                "secondCategory": "kg",
                "activeTime": 1640068718701,
                "icon": "smart/icon/bay1617940536153LBTd/****.png",
                "customName": "",
                "installTime": 1640068718701,
                "ownerId": "45360622",
                "deviceId": "vdevo16400687183****",
                "deviceName": "",
                "uuid": "vdevo16400687183****",
                "mac": "",
                "spaceId": "146886924268113****",
                "uid": "bay1633683638972****",
                "pointId": "",
                "topCategoryCode": "dgzm",
                "devicePower": 0
            },
            {
                "thirdCategory": "zig_kg",
                "productId": "eb3b****",
                "secondCategory": "kg",
                "activeTime": 1640068729237,
                "icon": "smart/icon/bay1617940536153LBTd/****.png",
                "customName": "",
                "installTime": 1640068729237,
                "ownerId": "4536****",
                "deviceId": "vdevo16400687288****",
                "deviceName": "",
                "uuid": "vdevo16400687288****",
                "mac": "",
                "spaceId": "146886924268113****",
                "uid": "bay1633683638972****",
                "pointId": "",
                "topCategoryCode": "dgzm",
                "devicePower": 0
            },
            {
                "thirdCategory": "wf_ble_kg",
                "productId": "rnfk5qvo5ayh****",
                "secondCategory": "kg",
                "activeTime": 1640068613147,
                "icon": "smart/icon/bay1617940536153LBTd/****.png",
                "customName": "",
                "installTime": 1640068613147,
                "ownerId": "45360622",
                "deviceId": "vdevo16400686128****",
                "deviceName": "",
                "uuid": "vdevo16400686128****",
                "mac": "",
                "spaceId": "146886924268113****",
                "uid": "bay1633683638972****",
                "pointId": "",
                "topCategoryCode": "dgzm",
                "devicePower": 0
            },
            {
                "thirdCategory": "wf_ble_xdd",
                "productId": "1uqqknvmyljd****",
                "secondCategory": "xdd",
                "activeTime": 1639378351108,
                "icon": "smart/icon/bay1591620233561etUp/****.png",
                "customName": "",
                "installTime": 1639378351108,
                "ownerId": "45360622",
                "deviceId": "vdevo16393783507****",
                "deviceName": "",
                "uuid": "vdevo16393783507****",
                "mac": "",
                "spaceId": "146886924268113****",
                "uid": "bay1633683638972****",
                "pointId": "147028651497700****",
                "topCategoryCode": "zm",
                "devicePower": 0
            },
            {
                "thirdCategory": "wf_ble_xdd",
                "productId": "sxa3tjzapeal****",
                "secondCategory": "xdd",
                "activeTime": 1639377489574,
                "icon": "smart/icon/bay1591620233561etUp/****.png",
                "customName": "",
                "installTime": 1639377489574,
                "ownerId": "4536****",
                "deviceId": "vdevo16393774893****",
                "deviceName": "",
                "uuid": "vdevo16393774893****",
                "mac": "",
                "spaceId": "146886924268113****",
                "uid": "bay1633683638972****",
                "pointId": "147028651497700****",
                "topCategoryCode": "zm",
                "devicePower": 0
            },
            {
                "thirdCategory": "wf_ble_xdd",
                "productId": "wobsckg5p6os****",
                "secondCategory": "xdd",
                "activeTime": 1639377505821,
                "icon": "smart/icon/bay1591620233561etUp/****.png",
                "customName": "",
                "installTime": 1639377505821,
                "ownerId": "45360622",
                "deviceId": "vdevo16393775054****",
                "deviceName": "",
                "uuid": "vdevo16393775054****",
                "mac": "",
                "spaceId": "146886924268113****",
                "uid": "bay1633683638972****",
                "pointId": "147028651497700****",
                "topCategoryCode": "zm",
                "devicePower": 0
            }
        ],
        "total": 6
    },
    "t": 1640598532221,
    "success": true
}

Error code

For more information, see error code.