Updates the kernel version of a PolarDB-X 1.0 instance.

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

Parameter Type Required Example Description
Action String Yes UpgradeDBInstanceKernelVersion

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

RegionId String Yes cn-hangzhou

The region ID of the instance.

DBInstanceName String Yes pxc-hzjasd****

The name of the instance.

SwitchMode String No 0

The mode of switching the roles of the primary and secondary nodes. Valid values:

  • 0: The roles of the primary and secondary nodes are immediately switched.
  • 1: The roles of the primary and secondary nodes are switched during the O&M time period.
MinorVersion String No polarx-kernel_5.4.12-16349923_xcluster-20210926

The kernel version.

Response parameters

Parameter Type Example Description
DBInstanceName String pxc-hzjasd****

The name of the instance.

TargetMinorVersion String polarx-kernel_5.4.7-16001481_xcluster-20200910

The kernel version after the update.

RequestId String FEA5DC20-6D8A-5979-97AA-FC57546ADC20

The request ID.

TaskId String 422922413

The ID of the backend task.

Examples

Sample requests

http(s)://[Endpoint]/?Action=UpgradeDBInstanceKernelVersion
&RegionId=cn-hangzhou
&DBInstanceName=pxc-hzjasd****
&SwitchMode=0
&MinorVersion=polarx-kernel_5.4.12-16349923_xcluster-20210926
&Common request parameters

Sample success responses

XML format

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

<UpgradeDBInstanceKernelVersionResponse>
    <DBInstanceName>pxc-hzjasd****</DBInstanceName>
    <TargetMinorVersion>polarx-kernel_5.4.7-16001481_xcluster-20200910</TargetMinorVersion>
    <RequestId>FEA5DC20-6D8A-5979-97AA-FC57546ADC20</RequestId>
    <TaskId>422922413</TaskId>
</UpgradeDBInstanceKernelVersionResponse>

JSON format

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

{
  "DBInstanceName" : "pxc-hzjasd****",
  "TargetMinorVersion" : "polarx-kernel_5.4.7-16001481_xcluster-20200910",
  "RequestId" : "FEA5DC20-6D8A-5979-97AA-FC57546ADC20",
  "TaskId" : "422922413"
}

Error codes

For a list of error codes, see Service error codes.