获取镜像tag-GetImageTag

获取镜像tag

Request Parameters

Parameter nameTypeDescriptionRequired
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口No
RepoNamestring镜像仓库名称Yes
ImageNamestring镜像名称Yes
Offsetint偏移量,默认0No
Limitint每次获取数量,默认为20No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
TotalCountinttag总数Yes
TagSetarraytag列表Yes

TagSet

Parameter nameTypeDescriptionRequired
UpdateTimestring镜像更新时间Yes
TagNamestringTag名称Yes

Request Example

https://api.ucloud.cn/?Action=GetImageTag
&ProjectId=PYFWFOHm
&RepoName=ZPGYodrQ
&ImageName=EpDfWhyI
&Offset=4
&Limit=6

Response Example

{
    "TotalCount": 3,
    "TagSet": [
        {
            "UpdateTime": "JuCcdSiy",
            "TagName": "WAIUkrwN"
        },
        {
            "UpdateTime": "uCNRUKaI",
            "TagName": "cMPKnfJc"
        }
    ],
    "RetCode": 0,
    "Action": "GetImageTagResponse"
}