调用GetRepoTags查询仓库的镜像信息。

请求信息

请求行RequestLine

GET /repos/[RepoNamespace]/[RepoName]/tags  HTTP/1.1

请求行参数URI Param

名称 类型 是否必须 描述
RepoNamespace String 命名空间名称
RepoName String 仓库名称
Page Integer 当前页
PageSize Integer 每页显示记录数

特有请求头RequestHead

请求体RequestBody

返回信息

返回行ResponseLine

HTTP/1.1 200 OK

特有返回头ResponseHead

返回体ResponseBody

{
"data": {
 "total": Integer,
 "pageSize": Integer,
 "page": Integer,
 "tags": [{
   "imageUpdate": Long,
    "imageCreate": Long,
   "imageId": String,
   "digest": String,
   "imageSize": Long,
   "tag": String,
   "status": String
 }, {
   "imageUpdate": Long,
   "imageCreate": Long,
   "imageId": String,
   "digest": String,
   "imageSize": Long,
   "tag": String,
   "status": String
 }]
},
"requestId": "9AFB10K1-2301-4B00-A817-932492040126"
}

返回体解析

名称 类型 描述
imageUpdate Long 镜像更新时间
imageCreate Long 镜像创建时间
imageId String 镜像ID
digest String 镜像的sha256
imageSize Long 镜像大小
tag String 镜像标签
status String 镜像状态
page Integer 当前页
pageSize Integer 每页显示记录数
total Integer 总记录数

示例

请求示例

GET /repos/[RepoNamespace]/[RepoName]/tags HTTP/1.1
<公共请求头>

返回示例

HTTP/1.1 200 OK
<公共响应头>

{
   "total": 2,
   "pageSize": 30,
   "page": 1,
   "tags": [{
     "imageUpdate": 1514432549000,
     "imageId": "2842876c9b98f8c7607c1123ks18ff040b76a1d932c6d60c96aa3c283bd221cd",
     "digest": "83414d2c3b04e0lo1q7693e31aeca95b82c61949ea8de858579bf16bd92490c6",
     "imageSize": 715764,
     "tag": "new",
     "imageCreate": 1514432549000,
     "status": "NORMAL"
   }, {
     "imageUpdate": 1514372113000,
     "imageId": "414e6daa772a8cd5dfloqpe503e6e313c372d2e15958ab649709daf9b1065479",
     "digest": "fcf39ed78ef0fa27bcc74713b85259alop1b12e6a201e3083af50fd8eda1cbe1",
     "imageSize": 715653,
     "tag": "asdf",
     "imageCreate": 1514372044000,
     "status": "NORMAL"
   }]
 },
 "requestId": "9AFB52D3-6631-4B00-A857-932492097726"
}