多活实例组详情
更新时间:2024-02-19
多活实例组详情
接口描述
本接口用于查询指定的多活实例组的详情。
请求结构
                Plain Text
                
            
            1GET /v{version}/syncGroup/{syncGroupShowId} HTTP/1.1
2Host: redis.bj.baidubce.com
3Authorization: authorization string请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必选 | 参数位置 | 描述 | 
|---|---|---|---|---|
| version | String | 是 | PATH参数 | API版本号。此处值为2。 | 
| syncGroupShowId | String | 是 | PATH参数 | 多活实例组的ID。 | 
响应头域
除公共头域外,无其它特殊头域。
响应参数
| 参数名称 | 类型 | 描述 | 
|---|---|---|
| syncGroupShowId | String | 实例组ID。 | 
| syncGroupName | String | 实例组名称。 | 
| status | String | 实例组状态。 | 
| clusterNum | Integer | 实例组中成员集群的数量。 | 
| nodeType | String | 实例组中成员集群的规格。 | 
| netConn | String | 网络联通状态。忽略该字段。 | 
| confilctResolution | String | 冲突解决办法。忽略该字段。 | 
| syncGroupCreateTime | String | 多活实例组创建时间。 | 
| sameSpec | Boolean | 实例组中所有成员的规格是否一致。 | 
| sameShardNum | Boolean | 实例组中所有成员的分片数量是否一致。 | 
| cluster | List<ClusterItem> | 多活组列表数据。 | 
ClusterItem
| 参数名称 | 类型 | 描述 | 
|---|---|---|
| clusterShowId | String | 成员集群的ID。 | 
| clusterName | String | 成员集群的名称。 | 
| region | String | 成员集群所在地域。 | 
| clusterStatus | String | 集群状态。此状态为集群在实例组中的状态,非集群本身状态。 | 
| clusterEngine | String | 集群引擎类型。 | 
| createTime | String | 集群创建时间。 | 
| totalCapacityInGb | Float | 集群总容量。 | 
| usedCapacityInGb | Float | 集群已用容量。 | 
| expiredTime | String | 集群到期时间。 | 
| shardList | List<String> | 集群分片列表。查询多活组监控数据时使用。 | 
| syncFlow | List<SyncFlowItem> | 集群BLB信息列表。查询多活组监控数据时使用。 | 
SyncFlowItem
| 参数名称 | 类型 | 描述 | 
|---|---|---|
| targetBLBIp | String | 同步流目标端BLBIP。 | 
| targetBLBPort | String | 同步流目标端BLB端口。 | 
| targetClusterShowId | String | 同步流目标端集群ID。 | 
请求示例
                Plain Text
                
            
            1GET http://redis.fsh.baidubce.com/v2/syncGroup/scs-syncgroup-zyrobvlrgwpl
2Host: redis.bj.baidubce.com
3Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de响应示例
                Plain Text
                
            
            1HTTP/1.1 200 OK
2Content-Type: application/json;charset=UTF-8
3Date: Wed, 08 Jul 2015 03:28:11 GMT
4x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
5Server: BWS
6{
7    "syncGroupShowId": "scs-syncgroup-zyrobvlrgwpl",
8    "syncGroupName": "clltest",
9    "status": "normal",
10    "clusterNum": 3,
11    "nodeType": "cache.n1.micro",
12    "netConn": "",
13    "confilctResolution": "crdt",
14    "syncGroupCreateTime": "2023-09-21T06:15:19Z",
15    "sameSpec": true,
16    "sameShardNum": true,
17    "cluster": [
18        {
19            "clusterId": 43354,
20            "clusterName": "redis-lmsrsyv0_4",
21            "clusterShowId": "scs-bj-wqocnchhrqft",
22            "region": "bj",
23            "clusterStatus": "normal",
24            "clusterEngine": "redis",
25            "createTime": "2023-09-21 06:07:18",
26            "totalCapacityInGb": 1,
27            "usedCapacityInGb": 0.0,
28            "expiredTime": null,
29            "shardList": [
30                "scs-bj-wqocnchhrqft-0"
31            ],
32            "syncFlow": [
33                {
34                    "targetBLBIp": "172.17.34.100",
35                    "targetBLBPort": 6379,
36                    "targetClusterShowId": "scs-bj-spxwdizpqfgq"
37                },
38                {
39                    "targetBLBIp": "172.17.34.106",
40                    "targetBLBPort": 6379,
41                    "targetClusterShowId": "scs-bj-wrphymepyqix"
42                }
43            ]
44        },
45        {
46            "clusterId": 43353,
47            "clusterName": "redis-lmsrsyv0_3",
48            "clusterShowId": "scs-bj-spxwdizpqfgq",
49            "region": "bj",
50            "clusterStatus": "normal",
51            "clusterEngine": "redis",
52            "createTime": "2023-09-21 06:07:18",
53            "totalCapacityInGb": 1,
54            "usedCapacityInGb": 0.0,
55            "expiredTime": null,
56            "shardList": [
57                "scs-bj-spxwdizpqfgq-0"
58            ],
59            "syncFlow": [
60                {
61                    "targetBLBIp": "172.17.34.108",
62                    "targetBLBPort": 6379,
63                    "targetClusterShowId": "scs-bj-wqocnchhrqft"
64                },
65                {
66                    "targetBLBIp": "172.17.34.106",
67                    "targetBLBPort": 6379,
68                    "targetClusterShowId": "scs-bj-wrphymepyqix"
69                }
70            ]
71        },
72        {
73            "clusterId": 43352,
74            "clusterName": "redis-lmsrsyv0_2",
75            "clusterShowId": "scs-bj-wrphymepyqix",
76            "region": "bj",
77            "clusterStatus": "normal",
78            "clusterEngine": "redis",
79            "createTime": "2023-09-21 06:07:18",
80            "totalCapacityInGb": 1,
81            "usedCapacityInGb": 0.0,
82            "expiredTime": null,
83            "shardList": [
84                "scs-bj-wrphymepyqix-0"
85            ],
86            "syncFlow": [
87                {
88                    "targetBLBIp": "172.17.34.108",
89                    "targetBLBPort": 6379,
90                    "targetClusterShowId": "scs-bj-wqocnchhrqft"
91                },
92                {
93                    "targetBLBIp": "172.17.34.100",
94                    "targetBLBPort": 6379,
95                    "targetClusterShowId": "scs-bj-spxwdizpqfgq"
96                }
97            ]
98        }
99    ]
100}