Obtaining Parameter Templates
Function
This API is used to obtain parameter templates, including all default and custom parameter templates.
Constraints
None
URI
- URL format
GET /v3/{project_id}/configurations
- Parameter description
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID of a tenant in a region To obtain this value, see Obtaining a Project ID. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| offset | No | Integer | Index offset. The query starts from the next piece of data indexed by this parameter. The value is 0 by default. The value must be a non-negative number. |
| limit | No | Integer | Maximum records to be queried. Value range: 1 to 128. If the parameter value is not specified, 10 records are obtained by default. |
Request Parameters
None
Example Request
Obtaining parameter templates
GET https://{endpoint}/v3/project_id/configurations?offset=0&limit=10 Response
- Normal response
| Parameter | Type | Description |
|---|---|---|
| configurations | Array of ConfigurationInfo objects | Information of available engines |
| offset | Integer | Which page the server starts returning items |
| limit | Integer | Number of records displayed on each page |
| total | Integer | Number of engine versions |
| Parameter | Type | Description |
|---|---|---|
| id | String | Parameter template ID |
| name | String | Parameter template name |
| description | String | Parameter template description |
| datastore_name | String | Database type |
| created | String | Creation time. The format is 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 offset is +0800. |
| updated | String | Update time. The format is 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 offset is +0800. |
| user_defined | Boolean | Whether the parameter template is a custom template. The value can be: false: The parameter template is a default template. true: The parameter template is a custom template. |
- Normal response example
{
"configurations": [
{
"id": "2aa71dc81e2c47699229b7aa26038f9dpr09",
"name": "ddm-param1724812533",
"description": "",
"datastore_name": "ddm",
"created": "2021-12-14T07:46:22+0000",
"updated": "2021-12-14T07:46:22+0000",
"user_defined": false
}
],
"offset": 0,
"limit": 10,
"total": 1
} - Abnormal response
For details, see Abnormal Request Results.
Status Codes
- Normal
- Abnormal
For details, see Status Codes.
Error Codes
For details, see Error Codes.
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