Mengambil detail semua Tugas terjadwal.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeScheduleTasks |
get |
*DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Status |
string |
No |
Status Tugas. Nilai valid:
Catatan
Jika parameter ini dihilangkan, Tugas terjadwal di semua status akan dikueri. |
finish |
| DBClusterId |
string |
No |
ID Kluster. Catatan
|
pc-************** |
| RegionId |
string |
No |
ID Wilayah. Catatan
|
cn-hangzhou |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan. Nilai harus berupa bilangan bulat yang lebih besar dari 0. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang akan dikembalikan pada setiap halaman. Nilai valid: 30 (default), 50, dan 100. |
30 |
| TaskAction |
string |
No |
Aksi Tugas terjadwal. Nilai valid:
Catatan
|
CreateDBNodes |
| DBClusterDescription |
string |
No |
Deskripsi Kluster. |
testdb |
| OrderId |
string |
No |
ID Pesanan. Catatan
ID Pesanan hanya boleh berisi angka. |
20951253014**** |
| PlannedStartTime |
string |
No |
Waktu mulai paling awal dari Tugas. Pengatur waktu dalam UTC. |
2021-01-28T12:00Z |
| PlannedEndTime |
string |
No |
Waktu mulai paling akhir dari Tugas. Pengatur waktu dalam UTC. Jika Tugas tidak dimulai pada pengatur waktu ini, maka akan kedaluwarsa. |
2021-01-28T12:30Z |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-************ |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
object |
The result set. |
|
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
30 |
| TimerInfos |
array<object> |
Details of scheduled tasks. |
|
|
object |
|||
| Action |
string |
The task type. |
CreateDBNodes |
| CrontabJobId |
string |
The ID of the scheduled O&M task. |
86293c29-a03d-4872-b625-*********** |
| DBClusterId |
string |
The cluster ID. |
pc-************** |
| DbClusterDescription |
string |
The cluster description. |
test_cluster |
| DbClusterStatus |
string |
The cluster status. |
Running |
| OrderId |
string |
The order ID. Catatan
This parameter is returned only when |
208161753****** |
| PlannedEndTime |
string |
The latest start time of the task. The time is in UTC. |
2021-01-28T12:30Z |
| PlannedFlashingOffTime |
string |
2021-01-28T12:30Z |
|
| PlannedStartTime |
string |
The earliest start time of the task. The time is in UTC. |
2021-01-28T12:00Z |
| PlannedTime |
string |
The expected start time of the task. The time is in UTC. |
2021-01-28T12:16Z |
| Region |
string |
The region ID of the scheduled task. |
cn-hangzhou |
| Status |
string |
The status of the task. |
finish |
| TaskCancel |
boolean |
Indicates whether the scheduled task can be canceled. Valid values:
|
true |
| TaskId |
string |
The task ID. |
53879cdb-9a00-428e-acaf-ff4cff****** |
| TotalRecordCount |
integer |
The total number of entries. |
1 |
| Message |
string |
The response message. Catatan
If the request is successful, Successful is returned. Otherwise, an error message is returned. |
Successful |
| RequestId |
string |
The request ID. |
936C7025-27A5-4CB1-BB31-540E1F0CCA12 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Contoh
Respons sukses
JSONformat
{
"Data": {
"PageNumber": 1,
"PageSize": 30,
"TimerInfos": [
{
"Action": "CreateDBNodes",
"CrontabJobId": "86293c29-a03d-4872-b625-***********",
"DBClusterId": "pc-**************",
"DbClusterDescription": "test_cluster",
"DbClusterStatus": "Running",
"OrderId": "208161753******",
"PlannedEndTime": "2021-01-28T12:30Z",
"PlannedFlashingOffTime": "2021-01-28T12:30Z",
"PlannedStartTime": "2021-01-28T12:00Z",
"PlannedTime": "2021-01-28T12:16Z",
"Region": "cn-hangzhou",
"Status": "finish",
"TaskCancel": true,
"TaskId": "53879cdb-9a00-428e-acaf-ff4cff******"
}
],
"TotalRecordCount": 1
},
"Message": "Successful",
"RequestId": "936C7025-27A5-4CB1-BB31-540E1F0CCA12",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidOrderId.Malformed | The specified parameter OrderId is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.