Obtaining Parameters of a Specified DB Instance
Description
This API is used to obtain information about parameters of a specified DB instance.
Restrictions
This API applies only to DDS Community Edition.
URI
Requests
Parameter description
Name |
Type |
IN |
Mandatory |
Description |
---|---|---|---|---|
X-Auth-Token |
string |
header |
Yes |
User token obtained from IAM. For details, see Authentication. |
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 |
Project ID of a tenant in a region. To obtain the project ID, see Obtaining a Project ID. |
instance_id |
string |
path |
Yes |
Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
entity_id |
String |
Yes |
|
Responses
- Parameter description
Table 3 Response body parameters Name
Type
Description
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.
Table 4 Data structure description of the parameters field 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.
- If the value is true, restart is required.
- If the value is false, restart is not required.
readonly
Boolean
Whether the parameter group is read-only.
- If the value false, the parameter is not read-only.
- If the value is true, the parameter is read-only.
type
String
The parameter type. The value can be integer, string, boolean, float, or list.
description
String
The parameter description.
- Response example
{ "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" } ] }
SDK
Click Document Database Service DDS SDK to download the SDK or view the SDK document. To learn how to install and authenticate an SDK, read the Usage section.
Status Code
For more information, see Status Code.
Error Code
For more information, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank 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