Queries the status of a batch task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeBatchTask |
none |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BatchId |
string |
No |
The ID of the batch task. |
pcb-xxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
25C70FF3-D49B-594D-BECE-0DE2BA1D8BBB |
| BatchId |
string |
The ID of the batch task. |
pcb-xxx |
| TaskName |
string |
The name of the task. |
batch_task_test |
| TaskType |
string |
The type of the task. |
polarclaw_install_skills |
| Status |
string |
The task status. Valid values:
|
RUNNING |
| TotalCount |
integer |
The total number of subtasks. |
10 |
| SuccessCount |
integer |
The number of successful subtasks. |
8 |
| TaskBegin |
string |
The time when the task started. |
2026/05/28T16:38:20Z |
| TaskEnd |
string |
The time when the task ended. |
2026/05/28T15:23:47Z |
| SubTasks |
array<object> |
A list of subtasks. |
|
|
object |
A subtask. |
||
| TaskId |
string |
The ID of the subtask. |
629271331 |
| InstanceId |
string |
The instance ID. |
pc-pz5f6mvi1p84t35d7 |
| Status |
string |
The status of the subtask. Valid values:
|
COMPLETED |
| TaskBegin |
string |
The time when the subtask started. |
2026/05/28T17:38:20Z |
| TaskEnd |
string |
The time when the subtask ended. |
2026/05/28T20:38:20Z |
| ErrorMsg |
string |
The error message. |
aliuid:1422133474238823 assumeOssRole not exist,serviceName:aliyunesarealtimelogpushossrole |
| ApplicationType |
string |
Examples
Success response
JSON format
{
"RequestId": "25C70FF3-D49B-594D-BECE-0DE2BA1D8BBB",
"BatchId": "pcb-xxx",
"TaskName": "batch_task_test",
"TaskType": "polarclaw_install_skills",
"Status": "RUNNING ",
"TotalCount": 10,
"SuccessCount": 8,
"TaskBegin": "2026/05/28T16:38:20Z",
"TaskEnd": "2026/05/28T15:23:47Z",
"SubTasks": [
{
"TaskId": "629271331",
"InstanceId": "pc-pz5f6mvi1p84t35d7",
"Status": "COMPLETED",
"TaskBegin": "2026/05/28T17:38:20Z",
"TaskEnd": "2026/05/28T20:38:20Z",
"ErrorMsg": "aliuid:1422133474238823 assumeOssRole not exist,serviceName:aliyunesarealtimelogpushossrole"
}
],
"ApplicationType": ""
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.