Obtaining Parameter Templates
Function
This API is used to obtain parameter templates, including all databases' default and custom parameter templates. Before calling this API:
- Learn how to authenticate this API.
- Obtain the required region and endpoint.
URI
GET https://{Endpoint}/v3.1/{project_id}/configurations?offset={offset}&limit={limit}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Explanation: Project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. Restrictions: None Value range: The value can contain 32 characters. Only letters and digits are allowed. Default value: None |
offset |
No |
Integer |
Explanation: Index offset. The query starts from the next piece of data indexed by this parameter. For example, if this parameter is set to 0 and limit is set to 10, only the 1st to 10th records are displayed. Restrictions: None Value range: [0, 2^31-1] Default value: 0 (indicating that the query starts from the first data record.) |
limit |
No |
Integer |
Explanation: Number of records to be queried. For example, if this parameter is set to 10, a maximum of 10 records can be displayed. Restrictions: None Value range: [1, 100] Default value: 100 |
Request Parameters
None
Response Parameters
Parameter |
Type |
Description |
---|---|---|
configurations |
Array of objects |
Explanation: Parameter template information. For details, see Table 3. |
count |
Integer |
Explanation: Total number of records. Value range: [0, 2^31 – 1] |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Explanation: Parameter template ID, which is the unique ID of a parameter template. Value range: The value can contain 36 characters. Only letters and digits are allowed. |
name |
String |
Explanation: Parameter template name. Value range: The value can contain 1 to 64 characters and is case-sensitive. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed |
description |
String |
Explanation: Parameter template description. Value range: The value can contain up to 256 characters but cannot contain carriage return characters. The following special characters are not allowed: !<"='>& |
datastore_version |
String |
Explanation: Engine version. Value range: None |
datastore_name |
String |
Explanation: Engine name. Value range: GaussDB |
ha_mode |
String |
Explanation: Instance type. Value range: The value is case-sensitive. The value Enterprise indicates the distributed instance (Enterprise Edition). |
created |
String |
Explanation: Creation time in the "yyyy-MM-dd HH:mm:ss" format, for example, 2024-07-03 14:18:55. Value range: None |
updated |
String |
Explanation: Update time in the "yyyy-MM-dd HH:mm:ss" format, for example, 2024-07-03 14:18:55. Value range: None |
user_defined |
Boolean |
Explanation: Whether the parameter template is a custom template. Value range:
|
Example Request
Obtaining parameter templates
GET https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3.1/0483b6b16e954cb88930a360d2c4e663/configurations?offset=1&limit=3
Example Response
Parameter templates queried.
{ "count": 3, "configurations": [ { "id": "b000d7c91f1749da87315700793a11d4pr14", "name": "Default-GaussDB-EE-1.0-Dist-Combined (4 replicas)", "description": "Default parameter template for GaussDB-Enterprise Edition-1.0-Distributed-combined (4 replicas)", "created": "2022-03-23 07:20:11", "updated": "2022-03-23 07:20:11", "datastore_version": "1.0", "datastore_name": "GaussDB", "ha_mode": "combined", "user_defined": false }, { "id": "8d99f260ea1b4493a1b349e7abce5c09pr14", "name": "Default-Finance-Edition-GaussDB-1.3-Combined", "description": "Default parameter template for Finance Edition GaussDB 1.3-Combined", "created": "2022-03-23 07:20:11", "updated": "2022-03-23 07:20:11", "datastore_version": "1.1", "datastore_name": "GaussDB", "ha_mode": "combined", "user_defined": false }, { "id": "0f44b65521a8414d8b8811df810d94ccpr14", "name": "Default-Finance-Disaster-GaussDB-1.3-Combined", "description": "Default parameter template for Finance Disaster GaussDB 1.3-Combined", "created": "2022-03-23 07:20:11", "updated": "2022-03-23 07:20:11", "datastore_version": "1.2", "datastore_name": "GaussDB", "ha_mode": "combined", "user_defined": false } ] }
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
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