Scaling Up Storage Space

Function

This API is used to scale up the storage space of a DB instance.

Constraints

  • This API supports GaussDB(for Cassandra) instances.
  • This API supports both yearly/monthly and pay-per-use DB instances.

URI

  • URI format

    POST /v3/{project_id}/instances/{instance_id}/extend-volume

  • Parameter description
    Table 1 Parameter description

    Name

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID of a tenant in a region.

    instance_id

    Yes

    Specifies the DB instance ID.

Requests

  • Parameter description
    Table 2 Parameter description

    Name

    Mandatory

    Type

    Description

    size

    Yes

    Integer

    Specifies the requested disk capacity. The value must be an integer greater than the current disk capacity.

    The maximum disk capacity depends on the selected DB engine and specifications. For details, see DB Instance Specifications.

    is_auto_pay

    No

    String

    Specifies the payment method. When creating a yearly/monthly DB instance, you can specify whether to automatically pay with your account. This parameter does not affect the payment method of automatic renewal.

    • true: indicates that the fee is automatically paid from the account.
    • false: indicates that the fee is manually paid from the account. This payment method is used by default.
  • Request header
    POST https://GaussDB_NoSQL_Endpoint/v3/{project_id}/instances/{instance_id}/extend-volume
  • Example request
    { 
    "size":550 
    }

Responses

  • Parameter description
    Table 3 Parameter description

    Name

    Type

    Description

    job_id

    String

    Indicates the task ID. This parameter is returned only for pay-per-use DB instances.

    order_id

    String

    Indicates the order ID. This parameter is returned when a yearly/monthly instance is created.

  • Response example

    Pay-per-use instance

    {
        "job_id": "3711e2ad-5787-49bc-a47f-3f0b066af9f5"
    }

    Yearly/monthly DB instance

    {
        "order_id": "CS20070721568OVO9"
    }

Status Code

For more information, see Status Code.

Error Code

For more information, see Error Code.