Query Group Properties

Last Updated on : 2023-11-23 06:23:27download

Query the properties that can be sent by the specified group.

API address

GET: /v2.0/cloud/thing/group/{group_id}/properties

Request parameter

Parameter nameTypeINRequiredDescription
group_idLongpathtrueThe ID of the specified group.

Return parameter

Parameter nameTypeDescription
resultListThe list of returned data.
successBooleanIndicates whether the operation is successful. Valid values:
  • true: The operation succeeded.
  • false: The operation failed.
tLongThe timestamp.
tidStringThe link ID.

Description of result

Parameter nameTypeDescription
codeStringThe code of the specified instruction.
valueStringThe value of the specified instruction.
g_idLongThe ID of the specified group.

Request example

GET: /v2.0/cloud/thing/group/12856***/properties

Return example

{
    "tid": "44e4561bb32011edaa2fba12a1143bd9",
    "result": [
        {
            "code": "switch_1",
            "g_id": "1285****7",
            "value": "false"
        },
        {
            "code": "countdown_1",
            "g_id": "128****",
            "value": "0"
        }
    ],
    "t": 1677118669636,
    "success": true
}

Error code

For more information, see error code.

Limits on API Request Frequency

For more information, see Limits on API Request Frequency.