获取镜像仓库-GetRepo

获取镜像仓库

Request Parameters

Parameter nameTypeDescriptionRequired
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口No
Typestringprivate私有仓库,public公共仓库,默认publicNo
Offsetint偏移量,默认0No
Limitint数量,默认20No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
TotalCountint总的仓库数量Yes
RepoSetarray镜像仓库列表Yes

RepoSet

Parameter nameTypeDescriptionRequired
RepoNamestring镜像仓库名称Yes
CreateTimestring仓库创建时间Yes
UpdateTimestring仓库更新时间Yes
Descriptionstring镜像仓库描述Yes

Request Example

https://api.ucloud.cn/?Action=GetRepo
&ProjectId=DPQzQxpe
&Type=EzVxntiX
&Offset=1
&Limit=3

Response Example

{
    "TotalCount": 2,
    "RepoSet": [
        "ntmEsbYx",
        "ORXeSVYD",
        "NLnhyWGk",
        "RjXuIDDg",
        "qrDktRNL",
        "aVhDFvep",
        "JvxMmIMA",
        "BlemVnAI",
        "uekjGZaL"
    ],
    "RetCode": 0,
    "Action": "GetRepoResponse"
}