This API is used to change the vCPUs and memory of a DB instance. Before calling this API:
PUT https://{Endpoint}/v3/{project_id}/instances/{instance_id}/flavor
https://gaussdb.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in14/flavor
Name |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID. |
instance_id |
Yes |
DB instance ID. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
flavor_ref |
Yes |
String |
New specification code. For details on how to obtain the specification code, see Table 1. |
Changing the specifications of a pay-per-use DB instance from 4 vCPUs and 32 GB to 8 vCPUs and 64 GB
{ "flavor_ref":"gaussdb.opengauss.ee.dn.m4.2xlarge.8.in" }
Name |
Type |
Description |
---|---|---|
job_id |
String |
Job ID for changing instance specifications. This parameter is returned only when you change the specifications of a pay-per-use instance. |
{ "job_id": "2b414788a6004883a02390e2eb0ea227" }
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.