获取参数模板列表
更新时间:2023-10-12
接口描述
- 本接口用于获取参数模板列表。
- 本接口为v1接口。
请求结构
GET /v{version}/instance/paraTemplate?pageNo=1&pageSize=10&type=system HTTP/1.1
Host: rds.bj.baidubce.com
Authorization: authorization string
Content-Type: application/json;charset=UTF-8
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
---|---|---|---|---|
version | Integer | 是 | URL参数 | API版本号。 |
pageNo | Integer | 是 | Query参数 | 页号。 |
pageSize | Integer | 是 | Query参数 | 页的大小。 |
type | String | 否 | Query参数 | 模板类型,支持user/system,不传默认为user。user:返回自定义参数列表;system:返回系统参数列表。 |
dbType | String | 否 | Query参数 | 数据库类型。 |
dbVersion | String | 否 | Query参数 | 数据库版本。 |
响应头域
除公共头域外,无其它特殊头域。
请求示例
GET http://rds.bj.baidubce.com/v1/instance/paraTemplate?pageNo=1&pageSize=10&type=user
Host: rds.bj.baidubce.com
Content-Type: application/json;charset=UTF-8
Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
响应示例
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Date: Wed, 08 Jul 2015 03:28:11 GMT
x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
Server: BWS
{
"list": [
{
"id": "345",
"name": "llllll",
"dbType": "MySQL",
"dbVersion": "8.0",
"count": 80,
"desc": "",
"dynamic": false,
"createTime": "2023-10-08 16:26:14",
"updateTime": "2023-10-08 16:27:34",
"idShow": "rpt-RtoUIZ",
"para": null,
"type": "user",
"property": "custom"
},
{
"id": "344",
"name": "llllll",
"dbType": "MySQL",
"dbVersion": "5.7",
"count": 86,
"desc": "",
"dynamic": false,
"createTime": "2023-10-08 16:21:46",
"updateTime": "2023-10-08 17:18:59",
"idShow": "rpt-fqOSKz",
"para": null,
"type": "user",
"property": "custom"
},
{
"id": "343",
"name": "ls-test",
"dbType": "MySQL",
"dbVersion": "5.7",
"count": 6,
"desc": "213424",
"dynamic": false,
"createTime": "2023-10-07 17:56:22",
"updateTime": "2023-10-08 16:29:08",
"idShow": "rpt-pKYiPl",
"para": null,
"type": "user",
"property": "custom"
},
{
"id": "342",
"name": "template_copy",
"dbType": "MySQL",
"dbVersion": "5.5",
"count": 66,
"desc": "template copy from 300",
"dynamic": false,
"createTime": "2023-09-22 15:20:01",
"updateTime": "2023-10-07 16:46:45",
"idShow": "rpt-LAYFRG",
"para": null,
"type": "user",
"property": "custom"
},
{
"id": "341",
"name": "lll_name1",
"dbType": "MySQL",
"dbVersion": "5.6",
"count": 1,
"desc": "lll_test1",
"dynamic": true,
"createTime": "2023-09-21 17:38:02",
"updateTime": "2023-10-08 16:21:00",
"idShow": "rpt-pgltVv",
"para": null,
"type": "user",
"property": "custom"
},
{
"id": "340",
"name": "lll_name1",
"dbType": "MySQL",
"dbVersion": "5.6",
"count": 0,
"desc": "lll_test1",
"dynamic": true,
"createTime": "2023-09-21 17:35:40",
"updateTime": "2023-09-21 17:35:40",
"idShow": "rpt-VEODuH",
"para": null,
"type": "user",
"property": "custom"
},
{
"id": "338",
"name": "yrdfcgh",
"dbType": "MySQL",
"dbVersion": "5.6",
"count": 81,
"desc": "",
"dynamic": false,
"createTime": "2023-09-18 10:41:40",
"updateTime": "2023-09-19 16:04:53",
"idShow": "rpt-ICKOHA",
"para": null,
"type": "user",
"property": "custom"
},
{
"id": "337",
"name": "kkkkk",
"dbType": "MySQL",
"dbVersion": "5.6",
"count": 34,
"desc": "",
"dynamic": false,
"createTime": "2023-09-18 10:28:06",
"updateTime": "2023-09-18 10:28:06",
"idShow": "rpt-iEhuHT",
"para": null,
"type": "user",
"property": "custom"
},
{
"id": "336",
"name": "ytfugkuil8.0sdsfsfsfsgsgsgsgsg",
"dbType": "MySQL",
"dbVersion": "8.0",
"count": 80,
"desc": "tyu",
"dynamic": false,
"createTime": "2023-09-15 15:09:16",
"updateTime": "2023-09-18 19:49:16",
"idShow": "rpt-qvjQqt",
"para": null,
"type": "user",
"property": "custom"
},
{
"id": "335",
"name": "默",
"dbType": "MySQL",
"dbVersion": "5.7",
"count": 86,
"desc": "",
"dynamic": false,
"createTime": "2023-09-14 11:22:53",
"updateTime": "2023-09-19 17:28:20",
"idShow": "rpt-grQRYu",
"para": null,
"type": "user",
"property": "custom"
}
],
"page": 1,
"perpage": 10,
"total": 25
}