Upgrading the Database Patch
Function
This API is used to upgrade the database patch version.
Constraints
- This API is not available to frozen or abnormal instances.
- This API is not available if there are abnormal instance nodes.
- View field patch_available in the result returned by the API for querying instance details and check whether a minor version upgrade is supported.
- Perform an upgrade during off-peak hours.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
dds:instance:upgradeDatabaseVersion
write
instance
-
-
URI
- URI format
- URI example
https://dds.cn-north-1.myhuaweicloud.com/v3/054e292c9880d4992f02c0196d3ea468/instances/054e292c9880d4992f02c0196d3ein02/db-upgrade
Table 1 URI parameters Name
Mandatory
Type
Description
project_id
Yes
String
Definition
Project ID of a tenant in a region. To obtain the project ID, see Obtaining a Project ID.
Constraints
N/A
Range
N/A
Default Value
N/A
instance_id
Yes
String
Definition
Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one.
Constraints
N/A
Range
N/A
Default Value
N/A
Request Parameters
|
Name |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Definition User token obtained from IAM. For details, see Authentication. Constraints N/A Range N/A Default Value N/A |
|
Name |
Mandatory |
Type |
Description |
|---|---|---|---|
|
upgrade_mode |
No |
String |
Definition Upgrade mode. Constraints N/A Range
Default Value minimized_interrupt_time |
|
is_delayed |
No |
Boolean |
Definition Whether the instance is automatically upgraded during the maintenance window. Constraints N/A Range
Default Value false |
Response Parameters
|
Name |
Type |
Description |
|---|---|---|
|
job_id |
String |
Definition Task ID. Range N/A |
Example Request
- Upgrading the database patch version of a replica set instance
{ "upgrade_mode" : "minimized_interrupt_time" } - Upgrading the database patch version during the maintenance window for a DB instance
{ "is_delayed" : true }
Example Response
{
"job_id" : "55e166d2-83ad-425f-b887-3503de03dc9b"
}
Status Code
For details, see Status Code.
Error Code
For details, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot