Obtaining Parameters of a Specified DB Instance
Function
This API is used to obtain information about parameters of a specified DB instance.
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
datastore_version_name
String
Indicates the database version name.
datastore_name
String
Indicates the database name.
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 value range. For example, the value of the Integer type ranges from 0 to 1, and the value of the Boolean type 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
{ "datastore_version_name": "3.11", "datastore_name": "cassandra", "created": "2020-03-21 11:40:44", "updated": "2020-03-21 11:40:44", "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: Modifying Parameters of a Specified DB Instance
Next Article: Obtaining Parameters of a Specified Parameter Template
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.