Upgrades the minor version of a PolarDB cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:UpgradeDBClusterVersionZonal |
update |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
pc-a************ |
| UpgradePolicy |
string |
No |
The upgrade policy for the kernel version. Valid values:
|
HOT |
| UpgradeLabel |
string |
No |
The label for the kernel version upgrade. Set the value to INNOVATE. Note
|
INNOVATE |
| PlannedStartTime |
string |
No |
The earliest time to start the scheduled kernel upgrade. Specify the time in the Note
|
2022-04-28T14:00:00Z |
| PlannedEndTime |
string |
No |
The latest time to start the scheduled task. Specify the time in the Note
|
2021-01-14T09:30:00Z |
| FromTimeService |
boolean |
No |
Specifies whether to immediately perform or schedule the kernel upgrade. Valid values:
Note
You do not need to specify this parameter when you call this operation. |
false |
| UpgradeType |
string |
No |
The upgrade type. Valid values:
|
PROXY |
| TargetDBRevisionVersionCode |
string |
No |
The version code of the target DB version. You can obtain this value by calling the DescribeDBClusterVersion operation. |
20230707 |
| TargetProxyRevisionVersionCode |
string |
No |
The version code of the target proxy version. You can obtain this value by calling the DescribeDBClusterVersion operation. |
20240702 |
| ClientToken |
string |
No |
A unique, case-sensitive token that you provide to ensure the idempotence of the request. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
6000170000591aed949d0f54a343f1a4233c1e7d1c5c****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
CAE6755F-B79A-4861-B227-801FE8****** |
Examples
Success response
JSON format
{
"RequestId": "CAE6755F-B79A-4861-B227-801FE8******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ScheduleTaskExist | The specified dbCluster already has a scheduled task. | The specified cluster already has a scheduled task. |
| 400 | InvalidUpgradeLabel.Malformed | The specified parameter UpgradeLabel is not valid. | The specified UpgradeLabel parameter is invalid. |
| 400 | InvalidEngine.Unsupported | The specified Engine does not support this feature. | This feature is not supported by the specified engine. |
| 400 | InvalidEngineMinorVersion.Malformed | The specified parameter MinorVersion is not valid. | The specified MinorVersion parameter is invalid. |
| 400 | InvalidEngineVersion.Unsupported | The specified engineVersion is not supported. | The specified engineVersion parameter is not supported. |
| 400 | InvalidUpgradePolicy.Malformed | The specified parameter UpgradePolicy is not valid. | The specified UpgradePolicy parameter is invalid. |
| 400 | InvalidSwitchTimeMode.Malformed | The specified parameter SwitchTimeMode is not valid. | The specified SwitchTimeMode parameter is invalid. |
| 403 | OperationDenied.UpgradeType | The operation is not permitted due to gdn limit | The current upgrade is not supported due to GDN limits. |
| 403 | IncorrectGdnStandbyDBVersion | Current gdn standby cluster is not the latest db version. | The current secondary cluster of the GDN does not run the latest database version. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.