This API is used to obtain information about parameters of a specified DB instance.
This API applies only to DDS Community Edition.
Parameter description
Name |
Type |
IN |
Mandatory |
Description |
---|---|---|---|---|
x-auth-token |
string |
header |
Yes |
User token. |
Content-Type |
string |
header |
Yes |
MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type. |
project_id |
string |
path |
Yes |
Specifies the project ID of a tenant in a region. |
instance_id |
string |
path |
Yes |
Specifies the instance ID, which can be obtained by calling the API for querying instances. If you do not have an instance, you can call the API used for creating an instance. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
entity_id |
String |
Yes |
|
Name |
Type |
Description |
---|---|---|
id |
String |
Instance parameter configuration ID. This parameter can be used only for parameter comparison. |
node_type |
String |
Node type of the parameter template.
|
datastore_version |
String |
Database version. |
datastore_name |
String |
Database type. |
created |
String |
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. |
updated |
String |
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. |
parameters |
Array of objects |
Indicates the parameters defined by users based on the default parameter templates. For details, see Table 4. |
Name |
Type |
Description |
---|---|---|
name |
String |
The parameter name. |
value |
String |
Parameter value. |
value_range |
String |
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. |
restart_required |
Boolean |
Whether the instance needs to be restarted.
|
readonly |
Boolean |
Whether the parameter group is read-only.
|
type |
String |
The parameter type. The value can be integer, string, boolean, float, or list. |
description |
String |
The parameter description. |
{ "id" : "5afa71df29ed4378bd7f6fef107daf6fin02", "node_type" : "replica", "datastore_version" : "4.0", "datastore_name" : "mongos", "created" : "2017-01-01T10:00:00", "updated" : "2017-01-01T10:00:00", "parameters" : [ { "name" : "cursorTimeoutMillis", "value" : "600000", "restart_required" : false, "readonly" : false, "description": "Specify the expiration time of idle cursors. DDS will delete idle cursors.", "value_range" : "600000-1000000" } ] }
For more information, see Error Code.