All Products
Search
Document Center

PolarDB:DescribePendingMaintenanceAction

Last Updated:Jun 10, 2026

Mengkueri informasi tentang event yang tertunda.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

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
  • Anda dapat mengatur parameter ini ke all untuk Tampilan semua event yang tertunda di akun Anda.

  • Jika Anda mengatur Region ke all, Anda harus mengatur TaskType ke all.

all

TaskType

string

Yes

Tipe Tugas event yang tertunda. Nilai valid:

  • DatabaseSoftwareUpgrading: peningkatan perangkat lunak database

  • DatabaseHardwareMaintenance: pemeliharaan dan peningkatan perangkat keras

  • DatabaseStorageUpgrading: peningkatan penyimpanan database

  • DatabaseProxyUpgrading: peningkatan versi minor proxy

  • all: mengembalikan event yang tertunda dari semua tipe sebelumnya.

Catatan

Jika parameter Region diatur ke all, parameter TaskType harus diatur ke all.

all

IsHistory

integer

No

Apakah akan mengembalikan Tugas historis. Nilai valid:

  • 0: mengembalikan Tugas saat ini.

  • 1: mengembalikan Tugas historis.

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.

  • If you set the IsHistory parameter to 0, the status of the pending task is returned. Valid values:

    • 2: The start time of the task is to be specified.

    • 3: The task is pending.

    • 4: The task is running. In this case, you cannot modify the execution time.

  • If you set the IsHistory parameter to 1, the details of the historical tasks are returned. Valid values:

    • 5: The task is completed and executed.

    • 6: The task is completed but fails to be executed.

    • 7: The task is canceled.

3

PrepareInterval

string

The preparation time that is required before the pending event is switched. The time follows the HH:mm:ss format.

04:00:00

Deadline

string

The deadline before which the task can be executed. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2020-06-11T15:59:59Z

DBType

string

The type of the database engine. Valid values:

  • MySQL

  • PostgreSQL

  • Oracle

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 yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2020-06-09T18:00:00Z

DBVersion

string

The version of the database engine.

  • Valid values for the MySQL database engine:

    • 5.6

    • 5.7

    • 8.0

  • Valid values for the PostgreSQL database engine:

    • 11

    • 14

  • Valid value for the Oracle database engine: 11

8.0

ModifiedTime

string

The time when the parameter was modified. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

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:

  • manualCancel: The task is manually canceled.

  • paramCheckNotPass: The task fails to pass the parameter check.

Catatan

This parameter is returned only when the value of the Status parameter is 6 or 7. The value 6 indicates that the task is completed but fails to be executed. The value 7 indicates that the task is canceled.

manualCancel

CreatedTime

string

The time when the task was created. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

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 yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

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.