Consulta tarefas com base em parâmetros especificados.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
dm:QueryTaskByParam |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| PageNo |
integer |
Não |
O número da página. Valor padrão: 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas por página. Valor padrão: 10. |
10 |
| KeyWord |
string |
Não |
A palavra-chave para a consulta. Se você deixar em branco, todas as tarefas serão retornadas. |
mesh-notification-788717 |
| Status |
integer |
Não |
O status da tarefa. Se você deixar em branco, tarefas em todos os estados serão retornadas. |
0 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| PageSize |
integer |
O número de entradas por página. |
10 |
| RequestId |
string |
O ID da solicitação. |
10A1AD70-E48E-476D-98D9-39BD92193837 |
| PageNumber |
integer |
O número da página. |
3 |
| TotalCount |
integer |
O número total de entradas. |
15 |
| data |
object |
||
| task |
array<object> |
Os dados retornados. |
|
|
object |
|||
| ReceiversName |
string |
The recipient name. |
TKP000442-333 |
| TagName |
string |
The tag. |
202201 |
| TaskStatus |
string |
The task status. A value of 1 indicates that the email is sent. |
1 |
| CreateTime |
string |
The time when the task was created. |
2022-04-18T10:36Z |
| RequestCount |
string |
The number of requests. |
1 |
| AddressType |
string |
The address type. 1: sender address. 0: random address. |
0 |
| UtcCreateTime |
integer |
The time when the task was created, in UTC format. |
1569734892 |
| TemplateName |
string |
The template name. |
Short Simple |
| TaskId |
string |
The task ID. |
1054296 |
| IpPoolId |
string |
The ID of the dedicated IP address pool. |
xxx |
| IpPoolName |
string |
The name of the dedicated IP address pool. |
Test dedicated IP address pool 1 |
| ConfigSetId |
string |
The configuration set ID. |
xxx |
| ConfigSetName |
string |
The configuration set name. |
xxx |
Exemplos
Resposta de sucesso
JSON formato
{
"PageSize": 10,
"RequestId": "10A1AD70-E48E-476D-98D9-39BD92193837",
"PageNumber": 3,
"TotalCount": 15,
"data": {
"task": [
{
"ReceiversName": "TKP000442-333",
"TagName": "202201",
"TaskStatus": "1",
"CreateTime": "2022-04-18T10:36Z",
"RequestCount": "1",
"AddressType": "0",
"UtcCreateTime": 1569734892,
"TemplateName": "Short Simple",
"TaskId": "1054296",
"IpPoolId": "xxx",
"IpPoolName": "Test dedicated IP address pool 1",
"ConfigSetId": "xxx",
"ConfigSetName": "xxx"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidKeyword.Malformed | The specified keyword is wrongly formed. | |
| 400 | InvalidStatus.Malformed | The specified status is wrongly formed. | |
| 500 | InternalError | The request processing has failed due to some unknown error. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.