获取群组支持的状态集

更新时间:2023-07-06 07:46:59下载pdf

本文介绍获取群组支持的状态集的 API。

接口描述

通过群组 ID 获取群组支持的状态集。

接口地址

GET: /v1.0/iot-03/device-groups/{group_id}/status-set

请求参数

参数名类型参数位置是否必填说明
group_idStringuritrue群组 ID

返回参数

参数名类型说明
resultGroupStatusRes群组状态集结果

result 说明

参数名类型说明
group_idString设备群组 ID
statusList设备群组状态集

status 说明

参数名类型说明
nameString状态名称
descString状态描述
codeString状态码
typeString状态类型
valuesString状态值

请求示例

GET: /v1.0/iot-03/device-groups/12kljskerexxxxd23w/status-set

返回示例

{
    "result": {
        "group_id": "1425638346989768773",
        "status": [
            {
                "code": "report_period_set",
                "values": "{\"range\":[\"1h\",\"2h\",\"3h\",\"4h\",\"6h\",\"8h\",\"12h\",\"24h\",\"48h\",\"72h\"]}",
                "type": "Enum",
                "name": "report period set"
            },
            {
                "code": "prepayment_switch",
                "values": "{}",
                "type": "Boolean",
                "name": "prepayment switch"
            },
            {
                "code": "auto_clean",
                "values": "{}",
                "type": "Boolean",
                "name": "auto clean"
            },
            {
                "code": "charge_money",
                "values": "{\"unit\":\"¥\",\"min\":0,\"max\":999999,\"scale\":2,\"step\":1}",
                "type": "Integer",
                "name": "charge money"
            },
            {
                "code": "balance",
                "values": "{\"unit\":\"¥\",\"min\":0,\"max\":999999,\"scale\":2,\"step\":1}",
                "type": "Integer",
                "name": "balance"
            },
            {
                "code": "temp_current",
                "values": "{\"unit\":\"℃\",\"min\":-100,\"max\":100,\"scale\":0,\"step\":1}",
                "type": "Integer",
                "name": "temp current"
            },
            {
                "code": "gas_use_data",
                "values": "{\"unit\":\"m3\",\"min\":0,\"max\":99999999,\"scale\":3,\"step\":1}",
                "type": "Integer",
                "name": "gas use data"
            },
            {
                "code": "cold_switch",
                "values": "{}",
                "type": "Boolean",
                "name": "cold switch"
            }
        ]
    },
    "t": 1629354647528,
    "success": true
}

错误码

参考 错误码