Updates the kernel version of a PolarDB-X instance.
Debugging
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. |
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 ID of the request. |
TaskId | String | 422922413 |
The ID of the backend task. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UpgradeDBInstanceKernelVersion
&RegionId=cn-hangzhou
&DBInstanceName=pxc-hzjasd****
&<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, visit the API Error Center.