Updates the kernel version of an ApsaraDB PolarDB MySQL-compatible edition cluster.
- You can update the kernel version of an ApsaraDB PolarDB MySQL-compatible edition cluster only to a revision version. For example, you can update the kernel version of a cluster from V8.0.1.1.3 to V8.0.1.1.4.
- You must use the credentials of your Alibaba Cloud account to update the kernel version of an ApsaraDB PolarDB MySQL-compatible edition cluster. RAM users are not authorized to create scheduled tasks that are used to update kernel versions for ApsaraDB PolarDB MySQL-compatible edition clusters.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpgradeDBClusterVersion |
The operation that you want to perform. Set the value to UpgradeDBClusterVersion. |
DBClusterId | String | Yes | pc-**************** |
The ID of the ApsaraDB PolarDB MySQL-compatible edition 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.
|
PlannedStartTime | String | No | 2021-01-14T09:00:00Z |
The earliest start time to run the task to update the kernel version of the specified
cluster. The task runs within a specified period of time. The value of this parameter
must be in the Note
|
PlannedEndTime | String | No | 2021-01-14T09:30:00Z |
The latest start time to run the task. The value of this parameter must be in the
Note
|
FromTimeService | Boolean | No | false |
A hidden parameter. You do not need to specify this parameter. |
UpgradeType | String | No | PROXY |
The update type. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | CAE6755F-B79A-4861-B227-801FE8****** |
The ID of the request. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/?Action=UpgradeDBClusterVersion
&DBClusterId=pc-****************
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpgradeDBClusterVersionResponse>
<RequestId>CAE6755F-B79A-4861-B227-801FE8******</RequestId>
</UpgradeDBClusterVersionResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "CAE6755F-B79A-4861-B227-801FE8******"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | ScheduleTaskExist | The specified dbCluster already has a scheduled task. | The error code returned because a different task is scheduled to run on the specified cluster. |
For a list of error codes, visit the API Error Center.