Obtaining Parameters of a Specified Parameter Template
Function
This API is used to obtain information about parameters of a specified parameter template.
Constraints
This API supports the following DB instances:
- GaussDB(for Cassandra)
- GaussDB(for Mongo) cluster 3.4 and replica set 4.0
- GaussDB(for Influx)
URI
Requests
Responses
- Parameter description
Table 2 Parameter description Name
Type
Description
id
String
Indicates the parameter template ID.
name
String
Indicates the parameter template name.
datastore_version_name
String
Indicates the database version name.
datastore_name
String
Indicates the database name.
description
String
Indicates the parameter template description.
created
String
Indicates the creation time in the following format: yyyy-MM-ddTHH:mm:ssZ.
T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, in the Beijing time zone, the time zone offset is shown as +0800.
updated
String
Indicates the update time in the following format: yyyy-MM-ddTHH:mm:ssZ.
T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, in the Beijing time zone, the time zone offset is shown as +0800.
configuration_parameters
Array of objects
Indicates the parameters defined by users based on the default parameter templates.
For details, see Table 3.
Table 3 configuration_parameters field data structure description Name
Type
Description
name
String
Indicates the parameter name.
value
String
Indicates the parameter value.
restart_required
Boolean
Indicates whether the instance needs to be restarted.
- If the value is false, restart is not required.
- If the value is true, restart is required.
readonly
Boolean
Indicates whether the parameter is read-only.
- If the value false, the parameter is not read-only.
- If the value is true, the parameter is read-only.
value_range
String
Indicates the parameter value range. If the type is integer, the value is 0 or 1. If the type is Boolean, the value is true or false.
type
String
Indicates the parameter type. The value can be string, integer, boolean, list, or float.
description
String
Indicates parameter description.
- Response example
{ "id": "07fc12a8e0e94df7a3fcf53d0b5e1605pr06", "name": "default-cassandra-3.11", "datastore_version_name": "3.11", "datastore_name": "cassandra", "description": "Default parameter group for cassandra 3.11", "created": "2020-03-21T04:40:51+0800", "updated": "2020-03-21T04:40:51+0800", "configuration_parameters": [ { "name": "concurrent_reads", "value": "64", "restart_required": true, "readonly": true, "value_range": "4-512", "type": "integer", "description": "Number of concurrent read threads." } ] }
Status Code
For more information, see Status Code.
Error Code
For more information, see Error Code.
Last Article: Obtaining Parameters of a Specified DB Instance
Next Article: Deleting a Parameter Template
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.