Changing DB Instance Specifications
Function
This API is used to change DB instance specifications.
- Learn how to authenticate this API before using it.
- Before calling this API, obtain the required region and endpoint.
URI
- URI format
POST https://{Endpoint}/mysql/v3/{project_id}/instances/{instance_id}/action
- Example
POST https://{Endpoint}/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/43e4feaab48f11e89039fa163ebaa7e4br01/action
- Parameter description
Table 1 Parameter description Name
Type
Mandatory
Description
project_id
String
Yes
Project ID of a tenant in a region.
To obtain this value, see Obtaining a Project ID.
instance_id
String
No
DB instance ID.
Request
|
Name |
Type |
Mandatory |
Description |
|---|---|---|---|
|
resize_flavor |
Object |
Yes |
For details, see Table 3. |
|
is_auto_pay |
String |
No |
Whether the order will be automatically paid after yearly/monthly DB instances are changed.
|
|
Name |
Type |
Mandatory |
Description |
|---|---|---|---|
|
spec_code |
String |
Yes |
Specification code. |
- Request example
{ "resize_flavor": { "spec_code":"taurus.large.4" } }
Response
- Normal response
Table 4 Parameter description Name
Type
Description
job_id
String
Job ID for changing DB instance specifications. This parameter is returned only when you change the specifications of a pay-per-use DB instance.
order_id
String
Order ID for changing DB instance specifications. This parameter is returned only when you change the specification of a yearly/monthly DB instance.
- Example normal response
"job_id": "0f6b6a9e-bd39-4e95-9374-e4d134e5a3d1"
}
Status Code
For details, see Status Codes.
Error Code
For details, see Error Codes.
Last Article: Resetting a Database Password
Next Article: Backup Management
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.