This API is used to obtain parameter templates, including all databases' default parameter templates and user-created parameter templates.
This API applies only to DDS Community Edition.
Name |
Type |
Mandatory |
Description |
---|---|---|---|
x-auth-token |
String |
Yes |
User token. |
project_id |
String |
Yes |
Specifies the project ID of a tenant in a region. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
offset |
Integer |
No |
The index position. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value cannot be a negative number. |
limit |
Integer |
No |
Number of records displayed on each page. The default value is 100. |
None
Name |
Type |
Description |
---|---|---|
total_count |
Integer |
The total number of queried records. |
quota |
Integer |
Maximum number of custom parameter templates that can be created. |
configurations |
Array of objects |
The parameter template list. For details, see Table 4. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Parameter template ID. |
name |
String |
Parameter template name. |
description |
String |
Parameter template description. |
datastore_version |
String |
Database version. |
datastore_name |
String |
Database type. |
node_type |
String |
Node type of the parameter template.
|
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. |
user_defined |
Boolean |
Indicates whether the parameter template is created by users.
|
{ "total_count" : 1, "quota" : 100, "configurations" : [ { "id" : "07fc12a8e0e94df7a3fcf53d0b5e1605pr01", "name" : "test1", "description" : "", "datastore_name" : "mongos", "node_type":"shard", "datastore_version" : "4.0", "created" : "2017-01-01T10:00:00", "updated" : "2017-01-01T10:00:00", "user_defined" : true } ] }
For more information, see Error Code.