全部产品
云市场

GetRepoList

更新时间:2019-11-05 19:49:04

描述

查询仓库列表的信息。

请求信息

请求行 RequestLine

  1. GET /repos HTTP/1.1

请求行参数 URI Param

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

特有请求头 RequestHead

请求体 RequestBody

返回信息

返回行 ResponseLine

  1. HTTP/1.1 200 OK

特有返回头 ResponseHead

返回体 ResponseBody

  1. {
  2. "data": {
  3. "total": Integer,
  4. "repos": [{
  5. "summary": String,
  6. "repoId": Long,
  7. "gmtCreate": Long,
  8. "gmtModified": Long,
  9. "repoNamespace": String,
  10. "repoName": String,
  11. "repoBuildType": String,
  12. "repoType": String,
  13. "repoDomainList": {
  14. "public": String,
  15. "vpc": String
  16. },
  17. "regionId": String,
  18. "repoStatus": String,
  19. "repoAuthorizeType": String
  20. }, {
  21. "summary": String,
  22. "repoId": Long,
  23. "gmtCreate": Long,
  24. "gmtModified": Long,
  25. "repoNamespace": String,
  26. "repoName": String,
  27. "repoBuildType": String,
  28. "repoType": String,
  29. "repoDomainList": {
  30. "public": String,
  31. "vpc": String
  32. },
  33. "regionId": String,
  34. "repoStatus": String,
  35. "repoAuthorizeType": String
  36. }],
  37. "pageSize": Integer,
  38. "page": Integer
  39. },
  40. "requestId": String
  41. }

返回体解析

名称 类型 描述
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 总记录数

示例

请求示例

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

返回示例

  1. HTTP/1.1 200 OK
  2. <公共响应头>
  3. {
  4. "data": {
  5. "total": 2,
  6. "repos": [{
  7. "summary": "测试1",
  8. "repoId": 00001,
  9. "gmtModified": 1524663871000,
  10. "repoNamespace": "test1",
  11. "repoName": "test_repo_1",
  12. "gmtCreate": 1524663834000,
  13. "repoBuildType": "AUTO_BUILD",
  14. "repoType": "PUBLIC",
  15. "repoDomainList": {
  16. "public": "registry.cn-hangzhou.aliyuncs.com",
  17. "vpc": "registry-vpc.cn-hangzhou.aliyuncs.com"
  18. },
  19. "regionId": "cn-hangzhou",
  20. "repoStatus": "NORMAL",
  21. "repoAuthorizeType": "ADMIN"
  22. }, {
  23. "summary": "测试2",
  24. "repoId": 00002,
  25. "gmtModified": 1487319003000,
  26. "repoNamespace": "test2",
  27. "repoName": "测试2",
  28. "gmtCreate": 1487319003000,
  29. "repoBuildType": "AUTO_BUILD",
  30. "repoType": "PRIVATE",
  31. "repoDomainList": {
  32. "public": "registry.cn-hangzhou.aliyuncs.com",
  33. "vpc": "registry-vpc.cn-hangzhou.aliyuncs.com"
  34. },
  35. "regionId": "cn-hangzhou",
  36. "repoStatus": "NORMAL",
  37. "repoAuthorizeType": "ADMIN"
  38. }],
  39. "pageSize": 20,
  40. "page": 1
  41. },
  42. "requestId": "F11E3C4C-LO9Q-4D11-B7C5-5EFCA8E7CA2E"
  43. }