UpgradeDBInstanceEngineVersion
Upgrades the database version of a MongoDB instance.
Operation description
When you invoke this operation, the instance status must be Running.
The storage DPI engine of the instance imposes constraints on the selection of database versions. For details, see MongoDB database version upgrade instructions. You can also invoke the DescribeAvailableEngineVersion operation to query the versions to which the instance can be upgraded.
After you upgrade the database version, you cannot downgrade it.
During the upgrade procedure, the instance is automatically restarted two or three times. Make sure that you execute the upgrade during off-peak hours.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:UpgradeDBInstanceEngineVersion |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-bpxxxxxxxx |
| EngineVersion |
string |
Yes |
The target database version for the upgrade. Note
The storage engine of the instance imposes constraints on the selection of database versions. For more information, see MongoDB database version upgrade instructions. You can also call the DescribeAvailableEngineVersion operation to query the versions to which the instance can be upgraded. Valid values:
|
4.0 |
| SwitchMode |
integer |
No |
The upgrade mode for the instance version. Valid values:
Valid values:
|
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
C4907B00-A208-4E0C-A636-AA85140E406C |
Examples
Success response
JSON format
{
"RequestId": "C4907B00-A208-4E0C-A636-AA85140E406C"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EngineVersion.ERROR | Target engineVersion must be greater than the current one. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.