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

请求信息

请求行RequestLine

GET /repos/[RepoNamespace] HTTP/1.1

请求行参数URI Param

名称 类型 是否必须 描述
Status String 仓库状态
RepoNamespace 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": "F11E3C4C-LO9Q-4D11-B7C5-5EFCA8E7CA2E"
}

返回体解析

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

示例

请求示例

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

返回示例

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

{
"data": {
    "total": 2,
    "repos": [{
        "summary": "测试1",
        "repoId": 00001,
        "gmtModified": 1524663871000,
        "repoNamespace": "test",
        "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": "test",
        "repoName": "test_repo_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"
}