• Relational Database Service

rds
  1. Help Center
  2. Relational Database Service
  3. API Reference
  4. OpenStack trove API v1.0
  5. DB Instance Management
  6. Changing DB Instance Specifications

Changing DB Instance Specifications

Function

This API is used to change DB instance specifications.

Services will be interrupted for 5 to 10 minutes when you change DB instance specifications. Exercise caution when performing this operation.

URI

  • URI format

    PATH: /{versionId}/{project_id}/instances/{instanceId}/action

    Method: POST

  • Parameter description
    Table 1 Parameter description

    Name

    Mandatory

    Description

    versionId

    Yes

    Specifies the API version. It is case-sensitive and the value is v1.0.

    project_id

    Yes

    Specifies the project ID of a tenant in a region.

    instanceId

    Yes

    Specifies the DB instance ID.

  • Restrictions
    1. The new specifications cannot be the same as the original specifications.
    2. The instance class can be modified only for DB instances whose status is Available.
    3. Currently, only the DB engines MySQL and PostgreSQL are supported by the API.

Request

  • Parameter description
    Table 2 Parameter description

    Name

    Type

    Description

    resize

    Dictionary data structure. For details, see Table 3.

    Specifies the information about the returned parameter flavorRef.

    Table 3 resize field data structure description

    Name

    Type

    Description

    flavorRef

    String

    Specifies the specification ID (flavors.str_id in the response message in Obtaining All DB Instance Specifications).

  • Request example
    { 
        "resize":{ 
            "flavorRef":"0d922098-553c-4123-80df-e627a1d41a0d" 
        } 
    }

Normal Response

N/A

Abnormal Response

For details, see Abnormal Request Results.