Consulta o status de execução e as informações de tempo de execução de uma tarefa de upload de arquivo pelo ID da tarefa.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| SiteId |
integer |
Não |
O ID do site, que pode ser obtido ao chamar a operação ListSites.\n Importante Este parâmetro é obrigatório ao consultar uma tarefa de upload. |
123456**** |
| UploadId |
integer |
Não |
O ID da tarefa de upload de arquivo, que é atribuído ao chamar a operação UploadFile.\n Importante Este parâmetro é obrigatório e deve ser um ID de tarefa válido retornado pela operação UploadFile. Se este parâmetro não for fornecido ou o ID especificado não existir, o erro InvalidParameters (400) será retornado. |
159253299357**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Esquema da resposta. |
||
| RequestId |
string |
O ID da solicitação. |
ET5BF670-09D5-4D0B-BEBY-D96A2A52**** |
| Status |
string |
O status da tarefa. Valores válidos:\n\n- init: A tarefa está sendo inicializada.\n- activacted: A tarefa está ativada.\n- running: A tarefa está em execução.\n- success: A tarefa foi bem-sucedida.\n- partial: A tarefa foi parcialmente bem-sucedida.\n- fail: A tarefa falhou. |
running |
| Description |
string |
A mensagem de erro retornada quando a tarefa de upload de arquivo falha. |
invalid url |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "ET5BF670-09D5-4D0B-BEBY-D96A2A52****",
"Status": "running",
"Description": "invalid url"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | MissingTimeParameter | The StartTime and EndTime must be both specified. | Please provide both a start time and an end time. |
| 400 | InvalidEndTime.Mismatch | The specified EndTime is earlier than the StartTime. | The end time you entered is earlier than the start time. Please check and try again. |
| 400 | DomainNameOverLimit | A maximum of 500 domains are supported for each request. | Only 500 domain names are supported at a time. Please reduce the number of domain names to request again. |
| 400 | InvalidTime | The query time cannot exceed the last 3 days. | The query time cannot exceed the last 3 days. |
| 400 | MissingParameter.ObjectType | The ObjectType parameter is required if DomainName or ObjectType is specified. | Specify the ObjectType parameter. |
| 400 | InvalidStationParameter | The specified Station is invalid. | The specified node parameter is invalid. |
| 400 | TooManyRequests | Too many requests.Please try again later. | Requests are too frequent, please try again later. |
| 400 | InvalidTaskId.Malformed | The specified taskId is invalid. | The specified task ID is invalid. |
| 400 | InvalidParameters.InvalidUrls | The specified urls are invalid. | The requested URL parameter is invalid. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.