All Products
Search
Document Center

PolarDB:DescribeDBClusterVersion

Last Updated:Jun 10, 2026

Mengambil detail versi kernel saat ini untuk kluster PolarDB Basis Data Relasional Cloud-Native for MySQL.

Deskripsi operasi

Catatan

For more information about the kernel versions of PolarDB for MySQL clusters, see Kernel version guide and Kernel release notes.

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:DescribeDBClusterVersion

get

*dbcluster

acs:polardb:{#regionId}:{#accountId}:dbcluster/{#dbclusterId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

DBClusterId

string

Yes

ID Kluster.

Catatan

Panggil operasi DescribeDBClusters untuk Tampilan detail semua kluster di akun Anda, seperti ID kluster.

pc-****************

DescribeType

string

No

Apakah akan mengembalikan informasi tentang versi terbaru atau daftar versi yang dapat ditingkatkan. Nilai valid:

  • LATEST_VERSION: Mengkueri informasi tentang versi terbaru.

  • AVAILABLE_VERSION: Mengkueri daftar versi yang dapat ditingkatkan.

LATEST_VERSION

Elemen respons

Element

Type

Description

Example

object

IsLatestVersion

string

Indicates whether the current database kernel version is the latest version. Valid values:

  • true

  • false

true

IsProxyLatestVersion

string

Indicates whether the current database proxy version is the latest version. Valid values:

  • true

  • false

true

DBVersion

string

The major version of the database engine. Valid values:

  • 8.0

  • 5.7

  • 5.6

8.0

DBRevisionVersion

string

The revision version of the database engine.

Catatan

For a PolarDB for MySQL 5.6 cluster, this parameter is returned only when the release date of the revision version is later than 20200831. Otherwise, this parameter is empty. For more information about the kernel version of a PolarDB for MySQL cluster, see Kernel release notes.

8.0.1.1.7

RequestId

string

The request ID.

47921222-0D37-4133-8C0D-017DC3******

DBVersionStatus

string

The status of the current minor version of the database. Valid values:

  • Stable: The current version is stable.

  • Old: The current version is outdated. Upgrade to the latest version.

  • HighRisk: The current version has critical bugs. Upgrade to the latest version immediately.

  • Beta: The current version is a beta version.

Catatan

For more information about how to upgrade the minor version of a database, see Upgrade versions.

Stable

DBClusterId

string

The cluster ID.

pc-****************

DBMinorVersion

string

The minor version of the database engine.

  • If DBVersion is 8.0, valid values are:

    • 8.0.2

    • 8.0.1

  • If DBVersion is 5.7, the value is 5.7.28.

  • If DBVersion is 5.6, the value is 5.6.16.

8.0.1

ProxyRevisionVersion

string

The version of the database proxy.

2.4.15

ProxyVersionStatus

string

The status of the database proxy version. Valid values:

  • Stable: The current version is stable.

  • Old: The current version is outdated. Upgrade to the latest version.

  • HighRisk: The current version has critical bugs. Upgrade to the latest version immediately.

  • Beta: The current version is a beta version.

Catatan

For more information about how to upgrade the database proxy version, see Upgrade versions.

Stable

ProxyLatestVersion

string

The latest version of the database proxy.

2.4.17

DBLatestVersion

string

The latest version of the database kernel.

8.0.1.1.16

DBRevisionVersionList

array<object>

A list of upgradable versions.

object

ReleaseType

string

The release status of the database version. Valid values:

  • Stable: The current version is stable.

  • Old: The current version is outdated. Do not upgrade to this version.

  • HighRisk: The current version has critical bugs. Do not upgrade to this version.

  • Beta: The current version is a beta version.

Stable

RevisionVersionCode

string

The revision version code of the database engine. You can use this code to specify the target version for an upgrade.

20230707

RevisionVersionName

string

The revision version of the database engine.

8.0.1.1.35.1

ReleaseNote

string

The release notes of the version.

ReleaseNote

ProxyRevisionVersionList

array<object>

A list of upgradable proxy versions.

  • Stable: The current version is stable.

  • Old: This version is outdated and not recommended for upgrades.

  • HighRisk: This version has critical bugs and is not recommended for upgrades.

  • Beta: This is a beta version.

object

ReleaseType

string

The release type. Valid values:

  • LTS: long-term support version.

  • BETA: preview version.

LTS

RevisionVersionCode

string

The revision version code of the database proxy engine. You can use this code to specify the target version for an upgrade.

20230707

RevisionVersionName

string

The revision version of the database proxy engine.

2.8.24

ReleaseNote

string

The release notes of the version.

ReleaseNote

DBLatestStableVersion

string

2.0.16.13.14.0

IsLatestStableVersion

string

true

Contoh

Respons sukses

JSONformat

{
  "IsLatestVersion": "true",
  "IsProxyLatestVersion": "true",
  "DBVersion": "8.0",
  "DBRevisionVersion": "8.0.1.1.7",
  "RequestId": "47921222-0D37-4133-8C0D-017DC3******",
  "DBVersionStatus": "Stable",
  "DBClusterId": "pc-****************",
  "DBMinorVersion": "8.0.1",
  "ProxyRevisionVersion": "2.4.15",
  "ProxyVersionStatus": "Stable",
  "ProxyLatestVersion": "2.4.17",
  "DBLatestVersion": "8.0.1.1.16",
  "DBRevisionVersionList": [
    {
      "ReleaseType": "Stable",
      "RevisionVersionCode": "20230707",
      "RevisionVersionName": "8.0.1.1.35.1",
      "ReleaseNote": "ReleaseNote"
    }
  ],
  "ProxyRevisionVersionList": [
    {
      "ReleaseType": "LTS",
      "RevisionVersionCode": "20230707",
      "RevisionVersionName": "2.8.24",
      "ReleaseNote": "ReleaseNote"
    }
  ],
  "DBLatestStableVersion": "2.0.16.13.14.0",
  "IsLatestStableVersion": "true"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidDBClusterId.Malformed The specified parameter DBClusterId is not valid.
400 InvalidDBVersion.Malformed The Specified DBVersion is not valid.
400 InvalidEngineVersion.Older The primary cluster version is too old, please upgrade it.
404 InvalidDBClusterId.NotFound The DBClusterId provided does not exist in our records.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.