获取部署集列表
更新时间:2022-08-15
接口描述
本接口用于获取BEC部署集列表。
请求结构
Plain Text
1GET /v2/vm/instance/deployset/list HTTP/1.1
2Host: bec.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
无
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 参数说明 | 类型 |
---|---|---|
deploySets | 部署集列表 | array |
concurrency | 最大实例并发数 | integer |
createTime | 创建时间 | string |
deploysetId | 部署集ID | string |
desc | 部署集描述 | string |
instanceCount | 所有节点实例数量 | integer |
instanceTotal | 单个节点实例配额 | integer |
name | 部署集名称 | string |
nodeInstanceStatisList | 分节点统计列表 | array |
city | 城市 | string |
instanceCount | 当前节点实例数量 | integer |
instanceIds | 当前节点实例ID列表 | array |
instanceTotal | 当前节点实例配额 | integer |
region | 区域 | string |
regionId | 节点ID | string |
serviceProvider | 运营商 | string |
strategy | 部署集策略 | string |
错误码
请参照错误返回章节的内容。
请求示例
Plain Text
1GET /v2/vm/instance/deployset/list HTTP/1.1
2Host: bec.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{
8 "deploySets": [
9 {
10 "deploysetId": "dset-zkyy01gj",
11 "name": "testv2modify",
12 "desc": "testv2modify",
13 "strategy": "HOST_HA",
14 "concurrency": 1,
15 "instanceCount": 0,
16 "instanceTotal": 5,
17 "createTime": "2022-04-21T02:10:03Z",
18 "nodeInstanceStatisList": []
19 },
20 {
21 "deploysetId": "dset-viit4mfl",
22 "name": "测试部署集1",
23 "desc": "测试描述",
24 "strategy": "HOST_HA",
25 "concurrency": 1,
26 "instanceCount": 2,
27 "instanceTotal": 5,
28 "createTime": "2022-03-18T02:28:29Z",
29 "nodeInstanceStatisList": [
30 {
31 "regionId": "cn-changchun-cm",
32 "region": "NORTH_EAST",
33 "city": "CHANGCHUN",
34 "serviceProvider": "CHINA_MOBILE",
35 "instanceCount": 2,
36 "instanceTotal": 5,
37 "instanceIds": [
38 "vm-ecbgowdv-4-m-changchun-zix72",
39 "vm-ecbgowdv-4-m-changchun-sqh0q"
40 ]
41 }
42 ]
43 }
44 ]
45}