Upgrades the minor version of an ApsaraDB for MongoDB instance.
Usage
When you call the UpgradeDBInstanceKernelVersion operation, the instance must be in the Running state.
- The UpgradeDBInstanceKernelVersion operation is applicable to replica set and sharded cluster instances, but not to standalone instances.
- The instance will be restarted once during the upgrade. Call this operation during off-peak hours.
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 | No | cn-hangzhou |
The region ID of the instance. You can call the DescribeRegions operation to query the region ID. |
| DBInstanceId | String | Yes | dds-bp2235**** |
The ID of the instance. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 27B9A130-7C4B-40D9-84E8-2FC081097AAC |
The ID of the request. |
Examples
Sample requests
http(s)://mongodb.aliyuncs.com/?Action=UpgradeDBInstanceKernelVersion
&DBInstanceId=dds-bp2235****
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpgradeDBInstanceKernelVersionResponse>
<RequestId>27B9A130-7C4B-40D9-84E8-2FC081097AAC</RequestId>
</UpgradeDBInstanceKernelVersionResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "27B9A130-7C4B-40D9-84E8-2FC081097AAC"
}
Error codes
For a list of error codes, visit the API Error Center.