调用GetRepoList查询仓库列表的信息。

调试

您可以在 OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求信息

请求行RequestLine

GET /repos HTTP/1.1

请求行参数URI Param

名称 类型 是否必须 描述
Status String 仓库状态
RepoNamePrefix String 仓库名称前缀
Page Integer 当前页
PageSize Integer 每页显示记录数

特有请求头RequestHead

请求体RequestBody

返回信息

返回行ResponseLine

HTTP/1.1 200 OK

特有返回头ResponseHead

返回体ResponseBody

{
"data": {
    "total": Integer,
    "repos": [{
        "summary": String,
        "repoId": Long,
        "gmtCreate": Long,
        "gmtModified": Long,
        "repoNamespace": String,
        "repoName": String,
        "repoBuildType": String,
        "repoType": String,
        "repoDomainList": {
            "public": String,
            "vpc": String
        },
        "regionId": String,
        "repoStatus": String,
        "repoAuthorizeType": String
    }, {
        "summary": String,
        "repoId": Long,
        "gmtCreate": Long,
        "gmtModified": Long,
        "repoNamespace": String,
        "repoName": String,
        "repoBuildType": String,
        "repoType": String,
        "repoDomainList": {
            "public": String,
            "vpc": String
        },
        "regionId": String,
        "repoStatus": String,
        "repoAuthorizeType": String
    }],
    "pageSize": Integer,
    "page": Integer
},
"requestId": String
}

返回体解析

名称 类型 描述
summary String 摘要信息
repoId Long 仓库唯一标识ID
gmtCreate Long 创建时间
gmtModified Long 修改时间
repoNamespace String 仓库所在的命名空间名称
repoName String 仓库名称
repoBuildType String 仓库构建类型
repoType String 仓库类型
repoDomainList Array 仓库域名列表
regionId String 区域
repoStatus String 仓库状态
repoAuthorizeType String 仓库权限
page Integer 当前页
pageSize Integer 每页显示记录数
total Integer 总记录数

示例

请求示例

GET /repos HTTP/1.1
<公共请求头>

返回示例

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

{
"data": {
    "total": 2,
    "repos": [{
        "summary": "测试1",
        "repoId": 00001,
        "gmtModified": 1524663871000,
        "repoNamespace": "test1",
        "repoName": "test_repo_1",
        "gmtCreate": 1524663834000,
        "repoBuildType": "AUTO_BUILD",
        "repoType": "PUBLIC",
        "repoDomainList": {
            "public": "registry.cn-hangzhou.aliyuncs.com",
            "vpc": "registry-vpc.cn-hangzhou.aliyuncs.com"
        },
        "regionId": "cn-hangzhou",
        "repoStatus": "NORMAL",
        "repoAuthorizeType": "ADMIN"
    }, {
        "summary": "测试2",
        "repoId": 00002,
        "gmtModified": 1487319003000,
        "repoNamespace": "test2",
        "repoName": "测试2",
        "gmtCreate": 1487319003000,
        "repoBuildType": "AUTO_BUILD",
        "repoType": "PRIVATE",
        "repoDomainList": {
            "public": "registry.cn-hangzhou.aliyuncs.com",
            "vpc": "registry-vpc.cn-hangzhou.aliyuncs.com"
        },
        "regionId": "cn-hangzhou",
        "repoStatus": "NORMAL",
        "repoAuthorizeType": "ADMIN"
    }],
    "pageSize": 20,
    "page": 1
},
"requestId": "F11E3C4C-LO9Q-4D11-B7C5-5EFCA8E7CA2E"
}