Utiliza DescribeRefreshTaskById para verificar se as tarefas de atualização e pré-carregamento foram concluídas em toda a rede.
Descrição da operação
-
Você pode consultar dados de até três dias atrás.
-
A taxa de chamadas por usuário único é de 30 chamadas por segundo.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
cdn:DescribeRefreshTaskById |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| TaskId |
string |
Sim |
O ID da tarefa a ser consultada. Você pode obter o ID da tarefa a partir da resposta da API RefreshObjectCaches para consultar o status de uma tarefa de atualização ou pré-carregamento. Você pode especificar até 10 IDs de tarefa, separados por vírgulas. |
12345678 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| TotalCount |
integer |
O número total de tarefas. |
2 |
| RequestId |
string |
O ID da solicitação. |
E0C2EF95-B1EC-4C93-855E-2059A7DA2B7B |
| Tasks |
array<object> |
A lista de tarefas. |
|
|
object |
|||
| Status |
string |
O status da tarefa. Valores válidos:
|
Complete |
| CreationTime |
string |
O horário em que a tarefa foi criada. O horário está em UTC. |
2020-08-03T08:54:23Z |
| ObjectType |
string |
O tipo da tarefa. Valores válidos:
|
file |
| Process |
string |
O progresso da tarefa em porcentagem. |
100% |
| Description |
string |
A descrição do erro retornada se a tarefa de atualização ou pré-carregamento falhar. Valores válidos:
|
Internal Error |
| ObjectPath |
string |
O caminho do objeto que é atualizado. |
http://example.com/abc.jpg |
| TaskId |
string |
O ID da tarefa. |
24840 |
Exemplos
Resposta de sucesso
JSON formato
{
"TotalCount": 2,
"RequestId": "E0C2EF95-B1EC-4C93-855E-2059A7DA2B7B",
"Tasks": [
{
"Status": "Complete",
"CreationTime": "2020-08-03T08:54:23Z",
"ObjectType": "file",
"Process": "100%",
"Description": "Internal Error",
"ObjectPath": "http://example.com/abc.jpg",
"TaskId": "24840"
}
]
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidTaskId.Malformed | The specified TaskId is invalid. | |
| 400 | InvalidObjectPath.Malformed | The specified ObjectPath is invalid. | |
| 400 | MissingTimeParameter | The StartTime and EndTime must be both specified. | You must set both the start time and the end time. |
| 400 | MissingParameter.ObjectType | The ObjectType parameter is required if DomainName or ObjectType is specified. | |
| 400 | InvalidStartTime.Malformed | The specified StartTime is invalid. | The format of the start time is invalid. Specify a valid value. |
| 400 | InvalidEndTime.Malformed | The specified EndTime is invalid. | The EndTime parameter is set in an invalid format. For more information, see the API references. |
| 400 | InvalidEndTime.Mismatch | The specified EndTime is earlier than the StartTime. | EndTime is earlier than StartTime. |
| 400 | InvalidStartTime.ValueNotSupported | The specified StartTime is invalid. | The specified start time is invalid. For more information, see the API references. |
| 400 | InvalidEndTime.ValueNotSupported | The specified EndTime is invalid. | |
| 400 | InvalidObjectType.ValueNotSupported | The specified ObjectType is not supported. | |
| 400 | InvalidStatus.ValueNotSupported | The specified Status is not supported. | |
| 400 | DomainNameOverLimit | A maximum of 500 domains are supported for each request. | |
| 400 | InvalidParameters | The parameters you provided are invalid. | |
| 400 | InvalidTime | The query time cannot exceed the last 3 days. | |
| 429 | TooManyRequests | Too many requests, please try again later |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.