Help Center> GeminiDB> API Reference> API Description> DB Instance Management> Adding Nodes for a Cluster Instance

Adding Nodes for a Cluster Instance

Function

This API is used to add nodes for a specified cluster instance.

Constraints

This API supports GaussDB(for Cassandra) instances.

  • 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}/enlarge-node

  • 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

    Name

    Mandatory

    Type

    Description

    num

    Yes

    Integer

    Specifies the number of new nodes.

    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}/enlarge-node
  • Example request

    Adding mongos nodes:

    {  
        "num": 1 
    }

Responses

  • Parameter description
    Table 2 Parameter description

    Name

    Type

    Description

    job_id

    String

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

    order_id

    String

    Specifies 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.