Mengkueri informasi tentang event yang tertunda.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribePendingMaintenanceAction |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
ID Wilayah event yang tertunda. Anda dapat memanggil operasi DescribeRegions untuk mengkueri wilayah dan zona yang didukung oleh PolarDB Basis Data Relasional Cloud-Native. Catatan
|
all |
| TaskType |
string |
Yes |
Tipe Tugas event yang tertunda. Nilai valid:
Catatan
Jika parameter |
all |
| IsHistory |
integer |
No |
Apakah akan mengembalikan Tugas historis. Nilai valid:
Nilai default: 0. |
0 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai valid: 30, 50, dan 100. Nilai default: 30. |
30 |
| PageNumber |
integer |
No |
Nomor halaman. Tentukan parameter sebagai bilangan bulat positif yang tidak melebihi nilai maksimum tipe data INTEGER. Nilai default: 1. |
1 |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-************ |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalRecordCount |
integer |
The total number of returned entries. |
1 |
| RequestId |
string |
The ID of the request. |
2F029645-FED9-4FE8-A6D3-488954****** |
| PageSize |
integer |
The number of entries per page. |
30 |
| PageNumber |
integer |
The page number. |
1 |
| Items |
array<object> |
Details about tasks. |
|
|
object |
|||
| Status |
integer |
The status of the pending task.
|
3 |
| PrepareInterval |
string |
The preparation time that is required before the pending event is switched. The time follows the |
04:00:00 |
| Deadline |
string |
The deadline before which the task can be executed. The time is in the |
2020-06-11T15:59:59Z |
| DBType |
string |
The type of the database engine. Valid values:
|
MySQL |
| TaskType |
string |
The type of the pending event. |
DatabaseSoftwareUpgrading |
| StartTime |
string |
The time when the task was executed in the background. The time is in the |
2020-06-09T18:00:00Z |
| DBVersion |
string |
The version of the database engine.
|
8.0 |
| ModifiedTime |
string |
The time when the parameter was modified. The time is in the |
2020-06-09T22:00:42Z |
| DBClusterId |
string |
The ID of the cluster. |
pc-************ |
| Region |
string |
The region ID of the pending event. |
cn-hangzhou |
| ResultInfo |
string |
The execution result of the task. Valid values:
Catatan
This parameter is returned only when the value of the |
manualCancel |
| CreatedTime |
string |
The time when the task was created. The time is in the |
2020-06-09T22:00:42Z |
| Id |
integer |
The ID of the task. |
111111 |
| SwitchTime |
string |
The time when the pending event was switched. The time is in the |
2020-06-09T22:00:00Z |
Contoh
Respons sukses
JSONformat
{
"TotalRecordCount": 1,
"RequestId": "2F029645-FED9-4FE8-A6D3-488954******",
"PageSize": 30,
"PageNumber": 1,
"Items": [
{
"Status": 3,
"PrepareInterval": "04:00:00",
"Deadline": "2020-06-11T15:59:59Z",
"DBType": "MySQL",
"TaskType": "DatabaseSoftwareUpgrading",
"StartTime": "2020-06-09T18:00:00Z",
"DBVersion": "8.0",
"ModifiedTime": "2020-06-09T22:00:42Z",
"DBClusterId": "pc-************",
"Region": "cn-hangzhou",
"ResultInfo": "manualCancel",
"CreatedTime": "2020-06-09T22:00:42Z",
"Id": 111111,
"SwitchTime": "2020-06-09T22:00:00Z"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | RequiredParam.NotFound | Required input param is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.