Help Center/ GeminiDB/ API Reference/ APIs v3 (Recommended)/ Instances/ Querying Instance Specifications That Can Be Changed
Updated on 2025-09-04 GMT+08:00

Querying Instance Specifications That Can Be Changed

Function

This API is used to query instance specifications that can be changed.

Constraints

This API supports the following instance types:

  • GeminiDB Cassandra
  • GeminiDB Mongo
  • GeminiDB Influx
  • GeminiDB Redis

URI

GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/available-flavors

Table 1 URI parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Explanation:

Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID.

Constraints:

N/A

Values:

N/A

Default value:

N/A

instance_id

Yes

String

Explanation:

Instance ID

Constraints:

N/A

Values:

N/A

Default value:

N/A

Table 2 Query parameters

Parameter

Mandatory

Type

Description

offset

No

Integer

Explanation:

Index position. The query starts from the next piece of data indexed by this parameter.

Constraints:

N/A

Values:

The value must be greater than or equal to 0.

Default value:

0

limit

No

Integer

Explanation:

Maximum records to be queried

Constraints:

N/A

Values:

  • The value ranges from 1 to 100.
  • If this parameter is not transferred, the first 100 records are queried by default.

Default value:

100

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Explanation:

User token

You can obtain the token by calling the IAM API by following Obtaining a User Token Through Password Authentication.

Constraints:

N/A

Values:

N/A

Default value:

N/A

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

instance_id

String

Explanation:

Instance ID

Values:

N/A

instance_name

String

Explanation:

Instance name

Values:

N/A

current_flavor

ComputeFlavor object

Explanation:

Instance specifications.

optional_flavors

OptionalFlavorsInfo object

Explanation:

Available specification options that the instance specifications can be changed to.

Table 5 ComputeFlavor

Parameter

Type

Description

vcpus

String

Explanation:

Number of CPUs

Values:

N/A

ram

String

Explanation:

Memory size in GB

Values:

N/A

spec_code

String

Explanation:

Specification code

Values:

N/A

az_status

Map<String,String>

Explanation:

AZ status

Values:

  • normal: available for general use
  • abandon: offline
  • sellout: sold-out

region_status

String

Explanation:

Region status

Values:

  • normal: available for general use
  • abandon: offline
  • sellout: sold-out
Table 6 OptionalFlavorsInfo

Parameter

Type

Description

list

Array of objects in ComputeFlavor

Explanation:

Available specification options

total_count

Integer

Explanation:

Total records

Values:

N/A

Example Request

  • URI example
    GET https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/094424666ef04f79a2dfbe9f5b8b31a5in06/available-flavors
  • Example request body

    None

Example Response

Status code: 200

Successful request
{ 
  "instance_id" : "094424666ef04f79a2dfbe9f5b8b31a5in06", 
  "instance_name" : "geminidb_instance_noreuse_0_ZKv2FSkxgoc3F8bGzsaxNg", 
  "current_flavor" : { 
    "vcpus" : "4", 
    "ram" : "16", 
    "spec_code" : "geminidb.cassandra.xlarge.4", 
    "az_status" : { 
      "az2***" : "unknown", 
      "az1***" : "normal", 
      "az3***" : "unknown" 
    }, 
    "region_status" : null 
  }, 
  "optional_flavors" : {
    "list" : [ { 
      "vcpus" : "2", 
      "ram" : "8", 
      "spec_code" : "geminidb.cassandra.large.4", 
      "az_status" : { 
        "az2***" : "unknown", 
        "az1***" : "normal", 
        "az4***" : "normal", 
        "az3***" : "unknown" 
      }, 
      "region_status" : "normal" 
    }, { 
      "vcpus" : "8", 
      "ram" : "32", 
      "spec_code" : "geminidb.cassandra.2xlarge.4", 
      "az_status" : { 
        "az2***" : "unknown", 
        "az1***" : "normal", 
        "az3***" : "unknown" 
      }, 
      "region_status" : "normal" 
    }, { 
      "vcpus" : "16", 
      "ram" : "64", 
      "spec_code" : "geminidb.cassandra.4xlarge.4", 
      "az_status" : { 
        "az2***" : "unknown", 
        "az1***" : "normal", 
        "az3***" : "unknown" 
      }, 
      "region_status" : "normal" 
    }, { 
      "vcpus" : "32", 
      "ram" : "128", 
      "spec_code" : "geminidb.cassandra.8xlarge.4", 
      "az_status" : { 
        "az2***" : "unknown", 
        "az1***" : "normal", 
        "az3***" : "unknown" 
      }, 
      "region_status" : "normal" 
    } ], 
    "total_count": 4
  }
}

Status Codes

For details, see Status Codes.

Error Codes

For details, see Error Codes.