Help Center/ GeminiDB/ API Reference/ APIs v3 (Recommended)/ Parameter Templates/ Querying API that Support Parameter Templates
Updated on 2024-08-08 GMT+08:00

Querying API that Support Parameter Templates

Function

This API is used to query API that support parameter templates.

URI

GET https://{Endpoint}/v3/{project_id}/configurations/datastores

Table 1 Path 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.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

datastores

Array of Table 4 objects

DB API information.

Table 4 DataStoreList

Parameter

Type

Description

datastore_name

String

DB API.

version

String

DB API version.

mode

String

Instance type. The value can be:

Cluster, indicating that the instance is a GeminiDB Cassandra, GeminiDB Influx, or GeminiDB Redis replica set instance.

InfluxdbSingle, indicating that the instance is a single-node GeminiDB Influx instance. ReplicaSet, indicating that the instance is a GeminiDB Mongo replica set instance.

Example Requests

  • URI example
    GET https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com/v3/375d8d8fad1f43039e23d3b6c0f60a19/configurations/datastores
  • Example request body

    None

Example Responses

Status code: 200

Success

{ 
  "datastores" : [ { 
    "datastore_name" : "mongodb", 
    "mode": "ReplicaSet",
    "version" : "4.0" 
  }, { 
    "datastore_name" : "influxdb", 
    "mode": "InfluxdbCluster",
    "version" : "1.7" 
  }, { 
    "datastore_name" : "cassandra", 
    "mode": "ReplicaCircle",
    "version" : "3.11" 
  } ] 
}

Status Codes

For details, see Status Codes.

Error Codes

For details, see Error Codes.