Consulta informações sobre tarefas agendadas.
Descrição da operação
Descrição da operação
Você pode consultar tarefas agendadas pelo ID da tarefa agendada, nome da tarefa agendada ou regra de escalonamento associada à tarefa agendada.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
ess:DescribeScheduledTasks |
get |
*ScalingGroup
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Sim |
O ID da região do grupo de escalonamento ao qual a tarefa agendada pertence. |
cn-qingdao |
| PageNumber |
integer |
Não |
O número da página da lista de tarefas agendadas. Valor mínimo: 1. Valor padrão: 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas por página para uma consulta paginada. Valor máximo: 50. Valor padrão: 10. |
50 |
| ScalingGroupId |
string |
Não |
O ID do grupo de escalonamento que executa a tarefa agendada. |
asg-bp1bo5tca4m56nap**** |
| ScheduledAction |
array |
Não |
A regra de escalonamento usada quando a tarefa agendada é acionada. Este parâmetro é retornado apenas quando a tarefa agendada especifica uma regra de escalonamento. |
ari:acs:ess:cn-hangzhou:1406926474****:scalingrule/asr-bp1id5rhu8edp7kd**** |
|
string |
Não |
A regra de escalonamento usada quando a tarefa agendada é acionada. Este parâmetro é retornado apenas quando a tarefa agendada especifica uma regra de escalonamento. Valores válidos de N: 0 a 20. O valor é o identificador exclusivo da regra de escalonamento (ScalingRuleAri). |
ari:acs:ess:cn-hangzhou:1406926474****:scalingrule/asr-bp1id5rhu8edp7kd**** |
|
| ScheduledTaskId |
array |
Não |
O ID da tarefa agendada a ser consultada. |
edRtShc57WGXdt8TlPbr**** |
|
string |
Não |
O ID da tarefa agendada a ser consultada. Valores válidos de N: 1 a 20. |
edRtShc57WGXdt8TlPbr**** |
|
| ScheduledTaskName |
array |
Não |
O nome da tarefa agendada a ser consultada. |
scheduled**** |
|
string |
Não |
O nome da tarefa agendada a ser consultada. Valores válidos de N: 1 a 20. |
scheduled**** |
|
| TaskName |
string |
Não |
O nome da tarefa. Há suporte para correspondência aproximada por palavra-chave. |
scheduled**** |
| RecurrenceType |
string |
Não |
O tipo de recorrência da tarefa agendada. Valores válidos:
|
Weekly |
| RecurrenceValue |
string |
Não |
O valor de recorrência da tarefa agendada. Este parâmetro é suportado apenas quando RecurrenceType está definido como Weekly. Você pode especificar vários valores separados por vírgulas (,). Por exemplo, os valores para domingo, segunda-feira, terça-feira, quarta-feira, quinta-feira, sexta-feira e sábado são 0, 1, 2, 3, 4, 5 e 6. |
1,2,3 |
| TaskEnabled |
boolean |
Não |
Especifica se a tarefa agendada está ativada.
|
true |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| PageNumber |
integer |
O número da página atual. |
1 |
| PageSize |
integer |
O número de entradas por página. |
50 |
| TotalCount |
integer |
O número total de tarefas agendadas. |
1 |
| ScheduledTasks |
object |
||
| ScheduledTask |
array<object> |
A coleção de informações de tarefas agendadas. |
|
|
object |
A coleção de informações de tarefas agendadas. |
||
| TaskEnabled |
boolean |
Indicates whether the scheduled task is enabled.
Default value: true. |
true |
| RecurrenceValue |
string |
The recurrence value of the scheduled task. |
1 |
| RecurrenceType |
string |
The recurrence type of the scheduled task. |
Daily |
| MaxValue |
integer |
The maximum number of instances in the scaling group. This parameter is returned when the scaling method of the scheduled task is set to configure the number of instances in the scaling group. |
10 |
| ScheduledTaskName |
string |
The name of the scheduled task. |
scheduled**** |
| RecurrenceEndTime |
string |
The end time of the recurrence of the scheduled task. |
2014-08-20T16:55Z |
| DesiredCapacity |
integer |
The expected number of instances in the scaling group. This parameter is returned when the scaling method of the scheduled task is set to configure the number of instances in the scaling group. |
10 |
| ScheduledTaskId |
string |
The ID of the scheduled task. |
edRtShc57WGXdt8TlPbr**** |
| MinValue |
integer |
The minimum number of instances in the scaling group. This parameter is returned when the scaling method of the scheduled task is set to configure the number of instances in the scaling group. |
0 |
| ScalingGroupId |
string |
The ID of the scaling group that executes the scheduled task. |
asg-bp1bo5tca4m56nap**** |
| LaunchExpirationTime |
integer |
The time period during which a retry is performed after the scheduled task fails to be triggered. Unit: seconds. Valid values: 0 to 21600. |
600 |
| Description |
string |
The description of the scheduled task. |
Test scheduled task. |
| ScheduledAction |
string |
The scaling rule used when the scheduled task is executed. This parameter is returned only when the scheduled task specifies a scaling rule. |
ari:acs:ess:cn-hangzhou:1406926474****:scalingrule/asr-bp1id5rhu8edp7kd**** |
| LaunchTime |
string |
The point in time at which the scheduled task is triggered. |
2014-08-18T10:52Z |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"PageNumber": 1,
"PageSize": 50,
"TotalCount": 1,
"ScheduledTasks": {
"ScheduledTask": [
{
"TaskEnabled": true,
"RecurrenceValue": "1",
"RecurrenceType": "Daily",
"MaxValue": 10,
"ScheduledTaskName": "scheduled****",
"RecurrenceEndTime": "2014-08-20T16:55Z",
"DesiredCapacity": 10,
"ScheduledTaskId": "edRtShc57WGXdt8TlPbr****",
"MinValue": 0,
"ScalingGroupId": "asg-bp1bo5tca4m56nap****",
"LaunchExpirationTime": 600,
"Description": "Test scheduled task.",
"ScheduledAction": "ari:acs:ess:cn-hangzhou:1406926474****:scalingrule/asr-bp1id5rhu8edp7kd****",
"LaunchTime": "2014-08-18T10:52Z"
}
]
}
}
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.