Obtaining Parameter Templates
Function
This API is used to obtain parameter templates, including default and custom parameter templates of all instances.
This API will be unavailable. You are advised to use the new API (Obtaining Parameter Templates) before then.
Constraints
This API supports the following instances:
- GeminiDB Cassandra
- GeminiDB Mongo
- GeminiDB Influx
- GeminiDB Redis
Authorization Information
Each account has permissions to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
gaussdbfornosql:configuration:list
List
-
-
nosql:param:list
-
URI
- URI format
- URI example
https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com/v3/375d8d8fad1f43039e23d3b6c0f60a19/configurations
- Required parameters
Table 1 URI parameters Parameter
Mandatory
Type
Description
project_id
Yes
String
Definition
Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID.
Constraints
N/A
Range
The value contains 32 characters. Only letters and digits are allowed.
Default Value
N/A
Table 2 Query parameters Parameter
Mandatory
Type
Description
datastore_name
No
String
Definition
Database name
Constraints
N/A
Range
cassandra: GeminiDB Cassandra instances are supported.
redis: GeminiDB Redis instances are supported.
influxdb: GeminiDB Influx instances are supported.
mongodb: GeminiDB Mongo instances are supported.
Default Value
If this parameter is not transferred, all database types are queried.
mode
No
String
Definition
DB instance type
Constraints
N/A
Range
- CloudNativeCluster: The parameter template of a GeminiDB Cassandra instance with cloud native storage is queried.
- Cluster: The parameter template of a cluster GeminiDB Cassandra instance with classic storage, a cluster GeminiDB Influx instance with classic storage, or a proxy cluster GeminiDB Redis instance with classic storage is queried.
- InfluxdbSingle: The parameter template of a single-node GeminiDB Influx instance with classic storage is queried.
- ReplicaSet: The parameter group of GeminiDB Mongo instances in a replica set is queried.
- All: Parameter templates of instance with all storage types are queried.
Default Value
If this parameter is not transferred, the parameter group of instances with classic storage is queried.
Request Parameters
None
Response Parameters
- Normal response
Table 3 Parameter description Parameter
Type
Description
count
Integer
Definition
Total number of records.
Range
N/A
configurations
Array of Table 4 objects
Definition
Parameter template list.
Table 4 Data structure description of parameter configurations Parameter
Type
Description
id
String
Definition
Parameter template ID.
Range
N/A
name
String
Definition
Parameter template name.
Range
N/A
description
String
Definition
Parameter template description.
Range
N/A
datastore_version_name
String
Definition
Database version name.
Range
N/A
datastore_name
String
Definition
Database name.
Range
N/A
created
String
Definition
Creation time in the yyyy-MM-ddTHH:mm:ssZ format.
T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset.
Range
N/A
updated
String
Definition
Update time in the yyyy-MM-ddTHH:mm:ssZ format.
T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset.
Range
N/A
user_defined
Boolean
Definition
Whether the parameter template is a custom template.
Range
- false: The parameter template is a default template.
- true: The parameter template is a custom template.
- Example normal response
{ "count": 2, "configurations": [{ "id": "887ea0d1bb0843c49e8d8e5a09a95652pr06", "name": "configuration_test", "description": "configuration_test", "datastore_version_name": "3.11", "datastore_name": "cassandra", "created": "2019-05-15T11:53:34+0000", "updated": "2019-05-15T11:53:34+0000", "user_defined": true }, { "id": "3bc1e9cc0d34404b9225ed7a58fb284epr06", "name": "Default-Cassandra-3.11", "description": "Default parameter group for cassandra 3.11", "datastore_version_name": "3.11", "datastore_name": "cassandra", "created": "2020-03-21T03:38:51+0000", "updated": "2019-03-21T03:38:51+0000", "user_defined": false } ] }
- Abnormal response
For details, see Abnormal Request Results.
Status Codes
For more information, see Status Codes.
Error Codes
For more information, see Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot