doc-exports/docs/opengauss/api-ref/opengauss_newapi_0031.html
Ru, Li Yi d97aea4dd2 opengauss_api
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
2024-09-06 09:04:21 +00:00

12 KiB

Changing vCPUs and Memory of a DB Instance

Function

This API is used to change the vCPUs and memory of a DB instance. Before calling this API:

Constraints

  • Currently, the instance specifications can only be scaled out. The new vCPUs and memory of an instance must be greater than the old vCPUs and memory.
  • The OS architecture of the new specifications must be the same as that of the old specifications.

URI

Request

  • Parameter description
    Table 2 Parameter description

    Name

    Mandatory

    Type

    Description

    flavor_ref

    Yes

    String

    New specification code. For details on how to obtain the specification code, see Table 1.

Example Request

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" 
 }

Response

  • Normal response
    Table 3 Parameter description

    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.

  • Example normal response
    {
    	"job_id": "2b414788a6004883a02390e2eb0ea227"
    }
  • Abnormal response

    For details, see Abnormal Request Results.

Status Code

Error Code

For details, see Error Codes.