获取部署集列表
更新时间:2022-08-15
接口描述
本接口用于获取BEC部署集列表。
请求结构
GET /v2/vm/instance/deployset/list HTTP/1.1
Host: bec.baidubce.com
Authorization: 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 |
错误码
请参照错误返回章节的内容。
请求示例
GET /v2/vm/instance/deployset/list HTTP/1.1
Host: bec.baidubce.com
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
{
"deploySets": [
{
"deploysetId": "dset-zkyy01gj",
"name": "testv2modify",
"desc": "testv2modify",
"strategy": "HOST_HA",
"concurrency": 1,
"instanceCount": 0,
"instanceTotal": 5,
"createTime": "2022-04-21T02:10:03Z",
"nodeInstanceStatisList": []
},
{
"deploysetId": "dset-viit4mfl",
"name": "测试部署集1",
"desc": "测试描述",
"strategy": "HOST_HA",
"concurrency": 1,
"instanceCount": 2,
"instanceTotal": 5,
"createTime": "2022-03-18T02:28:29Z",
"nodeInstanceStatisList": [
{
"regionId": "cn-changchun-cm",
"region": "NORTH_EAST",
"city": "CHANGCHUN",
"serviceProvider": "CHINA_MOBILE",
"instanceCount": 2,
"instanceTotal": 5,
"instanceIds": [
"vm-ecbgowdv-4-m-changchun-zix72",
"vm-ecbgowdv-4-m-changchun-sqh0q"
]
}
]
}
]
}