Consulta o status de uma tarefa em lote.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
polardb:DescribeBatchTask |
none |
*All Resource
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
POST HTTP/1.1
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| BatchId |
string |
Não |
O ID da tarefa em lote. |
pcb-xxx |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O corpo da resposta. |
||
| RequestId |
string |
O ID da solicitação. |
25C70FF3-D49B-594D-BECE-0DE2BA1D8BBB |
| BatchId |
string |
O ID da tarefa em lote. |
pcb-xxx |
| TaskName |
string |
O nome da tarefa. |
batch_task_test |
| TaskType |
string |
O tipo da tarefa. |
polarclaw_install_skills |
| Status |
string |
O status da tarefa. Valores válidos:
|
RUNNING |
| TotalCount |
integer |
O número total de subtarefas. |
10 |
| SuccessCount |
integer |
O número de subtarefas bem-sucedidas. |
8 |
| TaskBegin |
string |
A hora em que a tarefa foi iniciada. |
2026/05/28T16:38:20Z |
| TaskEnd |
string |
A hora em que a tarefa foi encerrada. |
2026/05/28T15:23:47Z |
| SubTasks |
array<object> |
Uma lista de subtarefas. |
|
|
object |
Uma subtarefa. |
||
| TaskId |
string |
O ID da subtarefa. |
629271331 |
| InstanceId |
string |
O ID da instância. |
pc-pz5f6mvi1p84t35d7 |
| Status |
string |
O status da subtarefa. [_single.resp.200.props.SubTasks.items.Status.enum.COMPLETED ]A subtarefa foi concluída. [responses.200.schema.properties.SubTasks.items.properties.Status.enumValueTitles.COMPLETED ]A subtarefa foi concluída. Valores válidos:
|
COMPLETED |
| TaskBegin |
string |
A hora em que a subtarefa foi iniciada. |
2026/05/28T17:38:20Z |
| TaskEnd |
string |
A hora em que a subtarefa foi encerrada. |
2026/05/28T20:38:20Z |
| ErrorMsg |
string |
A mensagem de erro. |
aliuid:1422133474238823 assumeOssRole not exist,serviceName:aliyunesarealtimelogpushossrole |
| ApplicationType |
string |
Exemplos
Resposta de sucesso
JSON formato
{
"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": ""
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.