Last Updated on : 2024-06-29 02:32:45download
Query the task progress of the specified group based on the group ID and task ID.
GET: /v2.1/cloud/thing/group/task/{group_id}/{task_id}
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
group_id | Long | path | true | The group ID. |
task_id | Long | path | true | The task ID. |
Parameter name | Type | Description |
---|---|---|
result | JsonObject | The returned result of the specified group. |
success | Boolean | Indicates whether the API is called successfully. Valid values:
|
t | Long | The timestamp. |
tid | String | The link ID. |
Description of result
Parameter name | Type | Description |
---|---|---|
group_id | Long | The group ID. |
task_id | String | The task ID. |
task_type | Integer | The type of tasks. Valid values:
|
success_devices | List | The list of devices that have successfully joined or been removed from the specified group. |
failed_devices | List | The list of devices that failed to join a group, failed to remove from a group, do not support group functionality, and are offline. |
operating_devices | List | The list of devices that are not being operated or are still being operated. |
Description of operating_devices
Parameter name | Type | Description |
---|---|---|
device_id | String | The device ID. |
action | Integer | The type of operation. Valid values:
|
operate_status | Integer | The operation status. Valid values:
|
Description of failed_devices
Parameter name | Type | Description |
---|---|---|
device_id | String | The device ID. |
action | Integer | The type of operation. Valid values:
|
operate_status | Integer | The operation status. Valid values:
|
Description of success_devices
Parameter name | Type | Description |
---|---|---|
device_id | String | The device ID. |
action | Integer | The type of operation. Valid values:
|
operate_status | Integer | The operation status.
|
GET: /v2.1/cloud/thing/group/task/1393****/178304019638051****
{
"tid": "b0d2f182022211efbe7a366d87620758",
"result": {
"operating_devices": [
],
"failed_devices": [
],
"task_id": "1783040196380512***",
"success_devices": [
{
"device_id": "vdevo17059963185****",
"operate_status": 0,
"action": 0
},
{
"device_id": "vdevo17059963113****",
"operate_status": 0,
"action": 0
}
],
"group_id": 13931111,
"task_type": 1
},
"t": 1713953349341,
"success": true
}
For more information, see error code.
For more information, see Limits on API Request Frequency.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback