Upgrading a FlexusRDS for MySQL Instance to an RDS Instance
Function
This API is used to change DB instance specifications.
Workloads will be interrupted for 5 to 10 minutes when you change instance specifications. Exercise caution when performing this operation.
Constraints
- The new DB instance specifications must be different from the original DB instance specifications.
- The instance specifications can be modified only for DB instances in the Available status.
- The specifications of a DB instance can be changed only to the specifications of the same DB instance type. (For example, the specifications of a single-node instance cannot be changed to those of primary/standby instances.)
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 the required permissions in Permissions and Supported Actions.
- 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
rds:instance:modifySpec
write
-
-
-
-
URI
- URI format
- Parameter description
Table 1 Parameters Parameter
Mandatory
Type
Description
project_id
Yes
String
Definition
Project ID of a tenant in a region.
For details about how 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.
Constraints
N/A
Range
N/A
Default Value
N/A
Request
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
resize_flavor |
Yes |
Object |
Definition Specification information. For details, see Table 3. Constraints N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
spec_code |
Yes |
String |
Definition Resource specification code. Constraints N/A Range Example value: rds.mysql.y1.xlarge.2. rds indicates the RDS product, mysql indicates the DB engine, and y1.xlarge indicates the lightweight performance specifications. Default Value N/A |
|
is_auto_pay |
No |
Boolean |
Definition Whether the order will be automatically paid. Constraints N/A Range
Default Value false |
|
is_delay |
No |
Boolean |
Definition Whether to change the specifications at the scheduled time. Constraints N/A Range
Default Value false |
Example Request
POST https://{endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in01/action
{
"resize_flavor": {
"spec_code": "rds.mysql.m1.xlarge",
"is_auto_pay": true,
"is_delay": true
}
}
Response
- Normal response
Table 4 Parameters Parameter
Type
Description
order_id
String
Definition
Order ID.
Range
N/A
- Example normal response
{ "order_id": "CS2009151216NO2U1" } - Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
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