查询入口列表
更新时间:2023-09-22
查询入口列表
接口描述
本接口用于查询入口列表。
请求结构
Plain Text
1GET /v{version}/gaiadb/{clusterId}/interface HTTP/1.1
2HOST: gaiadb.bj.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API 版本号 |
clusterId | String | 是 | URL参数 | 集群ID |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
interfaces | List<Interface> | 由Interface对象组成的数组 |
请求示例
Plain Text
1GET /v1/gaiadb/gaiadbxxxxxx/interface HTTP/1.1
2HOST: gaiadb.bj.baidubce.com
3ContentType: application/json
4Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-11-21T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
返回示例
Plain Text
1HTTP/1.1 200 OK
2Content-Type: application/json;charset=UTF-8
3x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
4{
5 "interfaces": [
6 {
7 "appId": "gaiadbymbrc8",
8 "interfaceId": "gaiadbymbrc8_interface0000",
9 "status": "serving",
10 "createTime": "2022-09-18 06:19:57",
11 "instanceBinding": [
12 "gaiadbymbrc8-primary-6f1cc3a2",
13 "gaiadbymbrc8-secondary-ec909467"
14 ],
15 "newInstanceAutoJoin": 1,
16 "readWriteMode": "readWrite",
17 "interfaceType": "defaultInterface",
18 "masterReadable": 1,
19 "access": {
20 "name": "gaiadbymbrc8_interface0000",
21 "dnsName": "gaiadbymbrc8.gaiadb.bj.baidubce.com",
22 "addressName": "读写集群地址",
23 "eip": ""
24 },
25 "flavor": {
26 "ramInMB": 4096,
27 "diskInGB": "50",
28 "cpuInCore": 1
29 },
30 "proxies": [
31 {
32 "id": 7816,
33 "proxyId": "dbproxy_10.147.66.13_6362"
34 },
35 {
36 "id": 7817,
37 "proxyId": "dbproxy_10.147.65.164_6362"
38 }
39 ]
40 }
41 ]
42}