查看 PolarDB MySQL 集群当前内核版本的详细信息。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
polardb:DescribeDBClusterVersion |
get |
*dbcluster
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
DBClusterId |
string |
是 |
集群 ID。 说明
您可以通过 DescribeDBClusters 接口查看账号下所有集群的详细信息(如集群 ID)。 |
pc-**************** |
DescribeType |
string |
否 |
指定返回最新版本信息或者可升级版本列表。取值范围如下:
|
LATEST_VERSION |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
IsLatestVersion |
string |
当前数据库内核引擎版本是否为最新版本,取值范围如下:
|
true |
IsProxyLatestVersion |
string |
当前数据库代理版本是否为最新版本,取值范围如下:
|
true |
DBVersion |
string |
数据库引擎的大版本号,取值范围如下:
|
8.0 |
DBRevisionVersion |
string |
数据库引擎的修订版本号。 说明
针对 PolarDB MySQL 版 5.6 版本的集群,仅发布日期在 20200831 之后的 |
8.0.1.1.7 |
RequestId |
string |
请求 ID。 |
47921222-0D37-4133-8C0D-017DC3****** |
DBVersionStatus |
string |
当前数据库小版本状态,取值范围如下:
说明
关于如何升级数据库小版本,请参见版本升级。 |
Stable |
DBClusterId |
string |
集群 ID。 |
pc-**************** |
DBMinorVersion |
string |
数据库引擎小版本号。
|
8.0.1 |
ProxyRevisionVersion |
string |
数据库代理的版本。 |
2.4.15 |
ProxyVersionStatus |
string |
数据库代理的版本状态。取值范围如下:
说明
关于如何升级数据库代理版本,请参见版本升级。 |
Stable |
ProxyLatestVersion |
string |
数据库代理的最新版本。 |
2.4.17 |
DBLatestVersion |
string |
数据库内核引擎的最新版本。 |
8.0.1.1.16 |
DBRevisionVersionList |
array<object> |
可升级的版本信息列表。 |
|
object |
|||
ReleaseType |
string |
数据库版本发布状态。取值范围如下:
|
Stable |
RevisionVersionCode |
string |
数据库引擎的修订版本 Code,用于指定升级到该目标版本。 |
20230707 |
RevisionVersionName |
string |
数据库引擎的修订版本号。 |
8.0.1.1.35.1 |
ReleaseNote |
string |
版本发布说明。 |
ReleaseNote |
ProxyRevisionVersionList |
array<object> |
数据库 Proxy 版本发布状态。取值范围如下:
|
|
object |
|||
ReleaseType |
string |
发布类型。返回值:
|
LTS |
RevisionVersionCode |
string |
数据库 Proxy 引擎的修订版本 Code,用于指定升级到该目标版本。 |
20230707 |
RevisionVersionName |
string |
数据库 Proxy 引擎的修订版本号。 |
2.8.24 |
ReleaseNote |
string |
版本发布说明。 |
ReleaseNote |
示例
正常返回示例
JSON
格式
{
"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"
}
]
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | |
400 | InvalidDBVersion.Malformed | The Specified DBVersion is not valid. | 指定的DBVersion无效 |
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. | 当前的记录中不存在提供的 DBClusterId。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。