查询容器资源概览信息
更新时间:2021-08-04
接口描述
本接口用于用户获取容器资源的概览信息。
请求结构
GET /v1/overview/summary/container HTTP/1.1
Host: bec.baidubce.com
Content-Type: application/json; charset=utf-8
Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
无。
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
serviceCount | ResourceCount | service概览数量汇总 |
deploymentCount | ResourceCount | deployment概览数量汇总 |
instanceCount | ResourceCount | instance概览数量汇总 |
resourceOverview | ResourceOverview | 资源总览 |
nodeOverview | Map<String, Integer> | 节点总览 |
错误码
请参照错误返回章节的内容。
请求示例
GET /v1/overview/summary/container HTTP/1.1
Host: bec.baidubce.com
Content-Type: application/json; charset=utf-8
Authorization: bce-auth-v1/318857a8f08b11e9845ca7e54775a0c2/2019-10-17T03:07:21Z/1800/host/212eef8cfe1ac94be56c4afedb9360bba621ef646c3c8288971d36801d70501a
响应示例
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Date: Wed, 08 Jul 2019 03:28:11 GMT
x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
X-Bce-Gateway-Region: BJ
{
"serviceCount": {
"total": 4,
"runningCount": 3,
"otherCount": 1
},
"deploymentCount": {
"total": 6,
"runningCount": 5,
"otherCount": 1
},
"instanceCount": {
"total": 7,
"runningCount": 6,
"otherCount": 1
},
"resourceOverview": {
"totalCpu": 5,
"totalMem": 10,
"totalRootDisk": 140,
"totalDataDisk": 3,
"totalGpu": 0,
"totalBlb": 2
},
"nodeOverview": {
"EAST_CHINA": 1,
"NORTH_WEST": 0,
"NORTH_EAST": 0,
"NORTH_CHINA": 0,
"SOUTH_WEST": 0,
"totalCount": 1,
"CENTRAL_CHINA": 0,
"SOUTH_CHINA": 0
}
}
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 | 负载均衡数量 |