Queries the kernel details of a PolarDB for MySQL cluster.

Note For more information, see Engine versions and PolarDB for MySQL.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesDescribeDBClusterVersion

The operation that you want to perform. Set the value to DescribeDBClusterVersion.

DBClusterIdStringYespc-****************

The ID of the cluster.

Note You can call the DescribeDBClusters operation to query the information about each cluster that belongs to your Alibaba Cloud account. The returned information includes the ID of each cluster.

Response parameters

ParameterTypeExampleDescription
IsLatestVersionStringtrue

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

  • true
  • false
IsProxyLatestVersionStringtrue

Indicates whether PolarProxy is the latest version. Valid values:

  • true
  • false
DBVersionString8.0

The major version of the database engine. Valid values:

  • 8.0
  • 5.7
  • 5.6
DBRevisionVersionString8.0.1.1.7

The revision version of the database engine.

Note For a cluster of the PolarDB for MySQL 5.6, the DBRevisionVersion parameter returns the revision version information only if the revision version is released later than August 31, 2020. Otherwise, this parameter returns an empty value. For more information about the kernel version of a cluster that runs the PolarDB for MySQL, see Release notes for the PolarDB kernel.
RequestIdString47921222-0D37-4133-8C0D-017DC3******

The ID of the request.

DBVersionStatusStringStable

The status of the minor version. Valid values:

  • Stable: The minor version is stable.
  • Old: The minor version is outdated. We recommend that you upgrade the cluster to the latest version.
  • HighRisk: The minor version has critical defects. We recommend that you immediately upgrade the cluster to the latest version.
Note For more information about how to upgrade the minor version, see Upgrade versions.
DBClusterIdStringpc-****************

The ID of the cluster.

DBMinorVersionString8.0.1

The minor version of the database engine.

  • If DBVersion is 8.0, the valid values of this parameter are:
    • 8.0.2
    • 8.0.1
  • If DBVersion is 5.7, set the value of this parameter to 5.7.28.
  • If DBVersion is 5.6, the value of this parameter is 5.6.16.
ProxyRevisionVersionString2.4.15

The version of PolarProxy.

ProxyVersionStatusStringStable

The status of PolarProxy. Valid values:

  • Stable: The minor version is stable.
  • Old: The minor version is outdated. We recommend that you upgrade the cluster to the latest version.
  • HighRisk: The minor version has critical defects. We recommend that you immediately upgrade the cluster to the latest version.
Note For more information about how to upgrade the PolarProxy version, see Upgrade versions.
ProxyLatestVersionString2.4.17

The latest version of PolarProxy.

DBLatestVersionString8.0.1.1.16

The latest version of the database engine.

Examples

Sample requests

http(s)://polardb.aliyuncs.com/?Action=DescribeDBClusterVersion
&DBClusterId=pc-****************
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeDBClusterVersionResponse>
    <IsLatestVersion>true</IsLatestVersion>
    <IsProxyLatestVersion>true</IsProxyLatestVersion>
    <DBVersion>8.0</DBVersion>
    <DBRevisionVersion>8.0.1.1.7</DBRevisionVersion>
    <RequestId>47921222-0D37-4133-8C0D-017DC3******</RequestId>
    <DBVersionStatus>Stable</DBVersionStatus>
    <DBClusterId>pc-****************</DBClusterId>
    <DBMinorVersion>8.0.1</DBMinorVersion>
    <ProxyRevisionVersion>2.4.15</ProxyRevisionVersion>
    <ProxyVersionStatus>Stable</ProxyVersionStatus>
    <ProxyLatestVersion>2.4.17</ProxyLatestVersion>
    <DBLatestVersion>8.0.1.1.16</DBLatestVersion>
</DescribeDBClusterVersionResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/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"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidDBClusterId.MalformedThe specified parameter DBClusterId is not valid.The error message returned because the specified DBClusterId parameter is invalid.

For a list of error codes, visit the API Error Center.