Mengkueri informasi tentang tugas terjadwal.
Deskripsi operasi
Deskripsi operasi
Anda dapat mengkueri tugas terjadwal berdasarkan ID tugas terjadwal, nama tugas terjadwal, atau aturan penskalaan yang terkait dengan tugas terjadwal.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:DescribeScheduledTasks |
get |
*ScalingGroup
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah grup penskalaan tempat tugas terjadwal berada. |
cn-qingdao |
| PageNumber |
integer |
No |
Nomor halaman daftar tugas terjadwal. Nilai minimum: 1. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman untuk kueri berhalaman. Nilai maksimum: 50. Nilai default: 10. |
50 |
| ScalingGroupId |
string |
No |
ID grup penskalaan yang menjalankan tugas terjadwal. |
asg-bp1bo5tca4m56nap**** |
| ScheduledAction |
array |
No |
Aturan penskalaan yang digunakan saat tugas terjadwal dipicu. Parameter ini hanya dikembalikan saat tugas terjadwal menentukan aturan penskalaan. |
ari:acs:ess:cn-hangzhou:1406926474****:scalingrule/asr-bp1id5rhu8edp7kd**** |
|
string |
No |
Aturan penskalaan yang digunakan saat tugas terjadwal dipicu. Parameter ini hanya dikembalikan saat tugas terjadwal menentukan aturan penskalaan. Nilai valid untuk N: 0 hingga 20. Nilainya adalah pengenal unik aturan penskalaan (ScalingRuleAri). |
ari:acs:ess:cn-hangzhou:1406926474****:scalingrule/asr-bp1id5rhu8edp7kd**** |
|
| ScheduledTaskId |
array |
No |
ID tugas terjadwal yang akan dikueri. |
edRtShc57WGXdt8TlPbr**** |
|
string |
No |
ID tugas terjadwal yang akan dikueri. Nilai valid untuk N: 1 hingga 20. |
edRtShc57WGXdt8TlPbr**** |
|
| ScheduledTaskName |
array |
No |
Nama tugas terjadwal yang akan dikueri. |
scheduled**** |
|
string |
No |
Nama tugas terjadwal yang akan dikueri. Nilai valid untuk N: 1 hingga 20. |
scheduled**** |
|
| TaskName |
string |
No |
Nama tugas. Pencocokan kabur berdasarkan kata kunci didukung. |
scheduled**** |
| RecurrenceType |
string |
No |
Tipe pengulangan tugas terjadwal. Nilai valid:
|
Weekly |
| RecurrenceValue |
string |
No |
Nilai pengulangan tugas terjadwal. Parameter ini hanya didukung saat RecurrenceType diatur ke Weekly. Anda dapat menentukan beberapa nilai yang dipisahkan oleh koma (,). Misalnya, nilai untuk Minggu, Senin, Selasa, Rabu, Kamis, Jumat, dan Sabtu adalah 0, 1, 2, 3, 4, 5, dan 6. |
1,2,3 |
| TaskEnabled |
boolean |
No |
Apakah akan mengaktifkan tugas terjadwal.
|
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| PageNumber |
integer |
Nomor halaman saat ini. |
1 |
| PageSize |
integer |
Jumlah entri per halaman. |
50 |
| TotalCount |
integer |
Jumlah total tugas terjadwal. |
1 |
| ScheduledTasks |
object |
||
| ScheduledTask |
array<object> |
Kumpulan informasi tugas terjadwal. |
|
|
object |
Kumpulan informasi tugas terjadwal. |
||
| 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 |
Contoh
Respons sukses
JSONformat
{
"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"
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.