查看Tag列表

Method

GET

描述

查看Tag列表

请求参数

参数名称说明参数类型是否必填备注
RepositoryId镜像仓库Idlong
Limit查询个数int默认20
Offset偏移值int默认0
ActionDescribeTagsstring
Version2018-03-08string

返回参数

参数名称说明参数类型是否必填备注
TagsTag列表array详细信息见下表
参数名称说明参数类型是否必填备注
RepositoryId镜像仓库Idlong
TagTag名称string
TagUrl镜像URLstring
SizeTag大小(字节)long
StatusTag状态, Processing/Success/Failstring
CreateAt镜像仓库更新时间,ISO8601 (yyyy-MM-dd'T'HH:mm:ss'Z')string
UpdateAt镜像仓库更新时间,ISO8601 (yyyy-MM-dd'T'HH:mm:ss'Z')string
Covered是否可回滚integer
ImageOrigin1,dockerfile编译;2,源码编译;3,容器save而来integer
ImageId镜像的ImageId,可以唯一标识镜像。docker1.10版本之后build的是镜像内容寻址的,这个版本之前是随机生成string

状态码

错误码(Code)错误提示(Message)http status code说明
RepoNotFoundRepoNotFound404null
ForbiddenYou have no right to access.403无权访问

请求示例

GET https://open.cn-east-1.163yun.com/ccr?Action=DescribeTags&Version=2018-03-08&RepositoryId=209&Limit=20&Offset=0

返回示例

{
    "RequestId": "4ef732b4-9b58-436f-9d5e-f7e71b1d8ada",
    "Tags": [
        {
            "Covered": 0,
            "CreateAt": "2018-09-18T09:06:09Z",
            "ImageOrigin": 2,
            "RepositoryId": 209,
            "Size": 0,
            "Status": "Fail",
            "Tag": "latest-openapi",
            "TagUrl": "hub.c.163.com/test1/test-agent:latest-openapi",
            "UpdateAt": "2018-10-23T06:35:00Z"
        },
        {
            "Covered": 0,
            "CreateAt": "2018-10-10T12:01:04Z",
            "ImageOrigin": 0,
            "RepositoryId": 209,
            "Size": 30651213,
            "Status": "Success",
            "Tag": "yanlian-9d6fce75c12d090682b1bccf730c5ad005e7a533",
            "TagUrl": "hub.c.163.com/test1/test-agent:yanlian-9d6fce75c12d090682b1bccf730c5ad005e7a533",
            "UpdateAt": "2018-10-11T04:37:09Z"
        }
    ]
}