获取参数模板列表
调试
您可以在API Explorer中调试该接口。
URI
GET https://{Endpoint}/v3.1/{project_id}/configurations?offset={offset}&limit={limit}
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
租户在某一Region下的项目ID。 获取方法请参见获取项目ID。 |
offset |
否 |
Integer |
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。例如:该参数指定为0,limit指定为10,则只展示第1~10条数据。 |
limit |
否 |
Integer |
查询记录数。默认为100,不能为负数,最小值为1,最大值为100。例如该参数设定为10,则查询结果最多只显示10条记录。 |
请求参数
无。
响应参数
参数 |
参数类型 |
描述 |
---|---|---|
configurations |
Array of objects |
参数模板信息,具体参数请参考表3。 |
count |
Integer |
总记录数。 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
参数组ID。 |
name |
String |
参数组名称。 |
description |
String |
参数组描述。 |
datastore_version |
String |
引擎版本。 |
datastore_name |
String |
引擎名称。 |
ha_mode |
String |
实例类型。 |
created |
String |
创建时间,格式为"yyyy-MM-dd HH:mm:ss"。 |
updated |
String |
更新时间,格式为"yyyy-MM-dd HH:mm:ss"。 |
user_defined |
Boolean |
是否是用户自定义参数模板:
|
请求示例
获取参数模板列表。
GET https://gaussdb-opengauss.cn-north-4.myhuaweicloud.com/v3.1/054b61972980d4552f0bc00ac8d3f5cd/configurations?offset=1&limit=3
响应示例
获取参数模板列表成功。
{ "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 } ] }
状态码
- 正常
- 异常
请参见状态码。
错误码
请参见错误码。