查询虚机资源概览信息
更新时间:2021-08-04
接口描述
本接口用于获取虚机资源的概览信息。
请求结构
Plain Text
1GET /v1/overview/summary/vm HTTP/1.1
2Host: bec.baidubce.com
3Content-Type: application/json; charset=utf-8
4Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
无。
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
serviceCount | ResourceCount | service概览数量汇总 |
deploymentCount | ResourceCount | deployment概览数量汇总 |
instanceCount | ResourceCount | instance概览数量汇总 |
resourceOverview | ResourceOverview | 资源总览 |
nodeOverview | Map<String, Integer> | 节点总览 |
错误码
请参照错误返回章节的内容。
请求示例
Plain Text
1GET /v1/overview/summary/vm HTTP/1.1
2Host: bec.baidubce.com
3Content-Type: application/json; charset=utf-8
4Authorization: bce-auth-v1/318857a8f08b11e9845ca7e54775a0c2/2019-10-17T03:07:21Z/1800/host/212eef8cfe1ac94be56c4afedb9360bba621ef646c3c8288971d36801d70501a
响应示例
Plain Text
1HTTP/1.1 200 OK
2Content-Type: application/json;charset=UTF-8
3Date: Wed, 08 Jul 2019 03:28:11 GMT
4x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
5X-Bce-Gateway-Region: BJ
6{
7 "serviceCount": {
8 "total": 25,
9 "runningCount": 5,
10 "otherCount": 20
11 },
12 "deploymentCount": null,
13 "instanceCount": {
14 "total": 30,
15 "runningCount": 3,
16 "otherCount": 27
17 },
18 "resourceOverview": {
19 "totalCpu": 23,
20 "totalMem": 50,
21 "totalRootDisk": 840,
22 "totalDataDisk": 26982,
23 "totalGpu": 0,
24 "totalBlb": 6
25 },
26 "nodeOverview": {
27 "EAST_CHINA": 1,
28 "NORTH_WEST": 0,
29 "NORTH_EAST": 0,
30 "NORTH_CHINA": 0,
31 "SOUTH_WEST": 0,
32 "totalCount": 1,
33 "CENTRAL_CHINA": 0,
34 "SOUTH_CHINA": 0
35 }
36}
Model对象定义
ResourceCount
参数名称 | 类型 | 描述 |
---|---|---|
total | Integer | 总量 |
runningCount | Integer | 运行中数量 |
failedCount | Integer | 失败数量 |
closedCount | Integer | 关闭中数量 |
ResourceOverview
参数名称 | 类型 | 描述 |
---|---|---|
totalCpu | Integer | CPU数量 |
totalMem | Integer | 内存数量 |
totalRootDisk | long | 系统盘大小 |
totalDataDisk | long | 数据盘大小 |
totalGpu | Integer | GPU数量 |
totalBlb | Integer | 负载均衡数量 |