Changing DB Instance Specifications
Function
This API is used to change DB instance specifications. Before calling this API:
- Learn how to authenticate it.
- 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/c3ec2c6148ad4d71b1a8411a62df0d3cin07/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. |
| Name | Type | Mandatory | Description |
|---|---|---|---|
| spec_code | String | Yes | Specification code. |
- Request example
{ "resize_flavor": { "spec_code":"gaussdb.large.4" } }
Example Request
Changing instance specifications
{
"resize_flavor" : {
"spec_code" : "taurus.large.4"
}
} Example Response
None
Status Code
For details, see Status Codes.
Error Code
For details, see Error Codes.