Upgrades the kernel version of a PolarDB for MySQL cluster.
Operation description
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
polardb:UpgradeDBClusterVersion | WRITE |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBClusterId | string | Yes | The ID of cluster. | pc-**************** |
UpgradePolicy | string | No | Kernel version upgrade strategy. Value:
| HOT |
UpgradeLabel | string | No | Kernel version upgrade label. The value is fixed as INNOVATE. Note
this parameter is passed in, UpgradePolicy must pass COLD.
| INNOVATE |
PlannedStartTime | string | No | The earliest start time to run the task that updates the kernel version of the cluster. Specify the time in the Note
2021-01-14T09:00:00Z , you can specify a point in time between 2021-01-14T09:00:00Z and 2021-01-15T09:00:00Z . | 2021-01-14T09:00:00Z |
PlannedEndTime | string | No | The latest start time to run the task that updates the kernel version of the cluster. Specify the time in the Note
PlannedStartTime but do not specify PlannedEndTime, the latest start time of the task is PlannedEndTime + 30 minutes . For example, if you set PlannedStartTime to 2021-01-14T09:00:00Z and do not specify PlannedEndTime, the latest start time of the task is set to 2021-01-14T09:30:00Z . | 2021-01-14T09:30:00Z |
FromTimeService | boolean | No | Specifies whether to immediately run the task to modify parameters and restart the cluster. Valid values:
Note
No need to use this parameter when calling this interface
| false |
UpgradeType | string | No | There is no need to use this parameter to upgrade the type when calling this interface. Value:
| PROXY |
TargetDBRevisionVersionCode | string | No | The code of the version to which you want to upgrade the cluster. You can call the DescribeDBClusterVersion operation to query the version code. | 20230707 |
Response parameters
Examples
Sample success responses
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-09-12 | The Error code has changed | see changesets | ||||||||||||
| ||||||||||||||
2023-07-25 | The Error code has changed. The request parameters of the API has changed | see changesets | ||||||||||||
| ||||||||||||||
2022-07-14 | The Error code has changed | see changesets | ||||||||||||
| ||||||||||||||
2022-07-06 | The Error code has changed | see changesets | ||||||||||||
| ||||||||||||||
2022-07-04 | The Error code has changed. The request parameters of the API has changed | see changesets | ||||||||||||
|