Files
doc-exports/docs/geminidb/api-ref/nosql_instance_specification.html
wangdengke2 59805c5073 GeminiDB_API
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: wangdengke2 <wangdengke2@huawei.com>
Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
2026-03-12 09:56:41 +00:00

21 KiB

Querying Instance Specifications

Function

This API is used to query all instance specifications under a specified condition.

Constraints

This API can be used for GeminiDB Cassandra and GeminiDB Influx instances.

URI

GET https://{Endpoint}/v3.1/{project_id}/flavors

Table 1 URI parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

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

Table 2 Query parameters

Parameter

Mandatory

Type

Description

engine_name

No

String

Database type.

  • cassandra: GeminiDB Cassandra instance specifications are queried.
  • influxdb: GeminiDB Influx instance specifications are queried.
  • If this parameter is not transferred, the default value is cassandra.

mode

No

String

Instance type

  • CloudNativeCluster: Specifications of instances with cloud native storage are queried.
  • If this parameter is not transferred, the specifications of all instances with classic storage are queried.

offset

No

Integer

Index offset.

  • If offset is set to N, the query starts from the N+1 piece of data. The default value is 0, which indicates that the query starts from the first piece of data.
  • The value must be a non-negative number.

limit

No

Integer

Maximum of specifications that can be queried

  • The value ranges from 1 to 100.
  • If this parameter is not transferred, the first 100 pieces of specification information can be queried by default.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

total_count

Integer

Total number of records

flavors

Array of Flavors objects

Instance specifications

Table 5 Flavors

Parameter

Type

Description

engine_name

String

API name.

engine_version

String

API version.

vcpus

String

CPU cores

ram

String

Memory size (MB)

spec_code

String

Resource specification code.

Example: geminidb.cassandra.8xlarge.4

NOTE:
  • geminidb.cassandra indicates the instance is a GeminiDB Cassandra instance.

availability_zone

Array of strings

ID of the AZ that supports the specifications

NOTE:

This parameter has been discarded. Do not use it.

az_status

Object

The status of specifications in an AZ. The value can be:

  • normal, indicating that the specifications are on sale.
  • unsupported, indicating that the specifications are not supported.
  • sellout, indicating that the specifications are sold out.

Example Requests

URI example
GET https://{Endpoint}/v3.1/375d8d8fad1f43039e23d3b6c0f60a19/flavors?engine_name=cassandra&offset=0&limit=10

Example Responses

Status code: 200

Success

{
  "total_count" : 4,
  "flavors" : [ {
    "engine_name" : "cassandra",
    "engine_version" : "3.11",
    "vcpus" : "4",
    "ram" : "16",
    "spec_code" : "geminidb.cassandra.xlarge.4",
    "availability_zone" : [ "az1", "az2" ],
    "az_status" : {
      "az1" : "normal",
      "az2" : "unsupported"
    }
  }, {
    "engine_name" : "cassandra",
    "engine_version" : "3.11",
    "vcpus" : "8",
    "ram" : "32",
    "spec_code" : "geminidb.cassandra.2xlarge.4",
    "availability_zone" : [ "az1", "az2" ],
    "az_status" : {
      "az1" : "unsupported",
      "az2" : "normal"
    }
  }, {
    "engine_name" : "cassandra",
    "engine_version" : "3.11",
    "vcpus" : "16",
    "ram" : "64",
    "spec_code" : "geminidb.cassandra.4xlarge.4",
    "availability_zone" : [ "az1", "az2" ],
    "az_status" : {
      "az1" : "normal",
      "az2" : "sellout"
    }
  }, {
    "engine_name" : "cassandra",
    "engine_version" : "3.11",
    "vcpus" : "32",
    "ram" : "128",
    "spec_code" : "geminidb.cassandra.8xlarge.4",
    "availability_zone" : [ "az1", "az2" ],
    "az_status" : {
      "az1" : "normal",
      "az2" : "normal"
    }
  } ]
}

Status Codes

See Status Codes.

Error Codes

See Error Codes.