Files
doc-exports/docs/geminidb/api-ref/nosql_database_version.html
wangdengke2 8d0926f0e5 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>
2025-09-04 07:22:35 +00:00

8.3 KiB

Querying Version Information

Function

This API is used to query version information of a specified type of instances.

Constraints

This API can be used for GeminiDB Cassandra instances.

URI

GET https://{Endpoint}/v3/{project_id}/datastores/{datastore_name}/versions

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.

datastore_name

Yes

String

Database type. The value can be:

  • cassandra, indicating that the instances are of the GeminiDB Cassandra type.

Request Parameters

Table 2 Request header parameter

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token

Response Parameters

Status code: 200

Table 3 Response body parameter

Parameter

Type

Description

versions

Array of strings

Database version. The supported versions are:

  • GeminiDB Cassandra instance 3.11

Example Request

URI example
GET https://{Endpoint}/v3/375d8d8fad1f43039e23d3b6c0f60a19/datastores/cassandra/versions

Example Response

Status code: 200

Success

{
  "versions" : [ "3.11" ]
}

Status Codes

See Status Codes.

Error Codes

See Error Codes.