查询镜像缓存列表
更新时间:2024-09-25
接口描述
此接口用于查询BCI镜像缓存列表。
请求结构
Plain Text
1GET /v{version}/imageCache HTTP/1.1
2Host: bci.bj.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
---|---|---|---|---|
version | Integer | 是 | URL参数 | API版本号,当前取值2 |
pageSize | Integer | 否 | Query参数 | 每页包含的最大数量。取值范围:[1,1000]之间的正整数。默认值:10。 |
pageNo | Integer | 否 | Query参数 | 当前要查询的页。取值范围:大于0的正整数。默认值:1。 |
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
totalCount | Integer | 当前用户空间下镜像缓存数目。 |
pageSize | Integer | 当前查询页。 |
pageNo | Integer | 当前查询页的镜像缓存条目数量。 |
result | List<ImageCacheModel> | 镜像缓存信息列表。 |
请求示例
Plain Text
1GET /v2/imageCache?pageNo=4&pageSize=10 HTTP/1.1
2Host: bci.bj.baidubce.com
3ContentType: application/json
4Authorization: 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 "totalCount": 32,
8 "result": [
9 {
10 "imageCacheId": "00dc1b52d8354d9193536e4dd2c41ae6faf9d193a03ed5d7ce24d43a0f55e218-failed-n1dm5cos",
11 "originImages": [
12 "registry.baidubce.com/ubuntu:18.04"
13 ],
14 "status": "创建失败",
15 "progress": 0,
16 "expiredTime": "2023-07-12T18:05:29Z",
17 "createdTime": "2023-06-12T10:04:22Z",
18 "lastestMatchedTime": "2023-06-12T18:05:29Z"
19 },
20 {
21 "imageCacheId": "00dc1b52d8354d9193536e4dd2c41ae643249601b601ac6f6c6dec81a528cb92-failed-rly8lror",
22 "originImages": [
23 "registry.baidubce.com/gohttp:v0.0.1"
24 ],
25 "status": "创建失败",
26 "progress": 60,
27 "expiredTime": "2023-07-12T11:24:21Z",
28 "createdTime": "2023-06-12T03:21:54Z",
29 "lastestMatchedTime": "2023-06-12T11:24:21Z"
30 }
31 ],
32 "pageSize": 4,
33 "pageNo": 10
34}