All Products
Search
Document Center

Get a repository list by namespace

Last Updated: May 28, 2018

Description

Get a repository list by namespace.

Request information

Request line

  1. GET /repos/{RepoNamespace} HTTP/1.1

Request line parameters (URI parameters)

Name Type Required Description
Status String Yes The repository status.
RepoNamespace String Yes The name of the namespace that the repository belongs to.
RepoNamePrefix String Yes The repository name prefix.
Page Integer No The current page.
PageSize Integer No The number of records per page.

Special request header

None.

Request body

None.

Response information

Response line

  1. HTTP/1.1 200 OK

Special response header

None.

Response body

  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. "internal": String,
  15. "public": String,
  16. "vpc": String
  17. },
  18. "downloads": Long,
  19. "regionId": String,
  20. "logo": String,
  21. "repoStatus": String,
  22. "repoAuthorizeType": String
  23. }, {
  24. "summary": String,
  25. "repoId": Long,
  26. "gmtCreate": Long,
  27. "gmtModified": Long,
  28. "repoNamespace": String,
  29. "repoName": String,
  30. "repoBuildType": String,
  31. "repoType": String,
  32. "repoDomainList": {
  33. "internal": String,
  34. "public": String,
  35. "vpc": String
  36. },
  37. "downloads": Long,
  38. "regionId": String,
  39. "logo": String,
  40. "repoStatus": String,
  41. "repoAuthorizeType": String
  42. }],
  43. "pageSize": Integer,
  44. "page": Integer
  45. },
  46. "requestId": "F11E3C4C-LO9Q-4D11-B7C5-5EFCA8E7CA2E"
  47. }

Response body explanation

Name Type Description
summary String The summary information.
repoId Long The repository unique ID.
gmtCreate Long The creation time.
gmtModified Long The modification time.
repoNamespace String The name of the namespace that the repository belongs to.
repoName String The name of the repository.
repoBuildType String The build type of the repository.
repoType String The repository type.
repoDomainList Array The repository region list.
downloads Long The repository downloads.
regionId String The repository region.
logo String The repository icon.
repoStatus String The repository status.
repoAuthorizeType String The authorization type of the repository.
Page Integer The current page.
PageSize Integer The number of records per page.
total Integer The total number of records.

Example

Request example

  1. GET /repos HTTP/1.1
  2. <Common request header>

Response example

  1. HTTP/1.1 200 OK
  2. <Common response header>
  3. {
  4. "data": {
  5. "total": 2,
  6. "repos": [{
  7. "summary": "test1",
  8. "repoId": 00001,
  9. "gmtModified": 1524663871000,
  10. "repoNamespace": "test",
  11. "repoName": "test_repo_1",
  12. "gmtCreate": 1524663834000,
  13. "repoBuildType": "AUTO_BUILD",
  14. "repoType": "PUBLIC",
  15. "repoDomainList": {
  16. "internal": "registry-internal.cn-hangzhou.aliyuncs.com",
  17. "public": "registry.cn-hangzhou.aliyuncs.com",
  18. "vpc": "registry-vpc.cn-hangzhou.aliyuncs.com"
  19. },
  20. "downloads": 2,
  21. "regionId": "cn-hangzhou",
  22. "logo": "https://alidockerhub-logo.oss-cn-hangzhou.aliyuncs.com/user/default.png",
  23. "repoStatus": "NORMAL",
  24. "repoAuthorizeType": "ADMIN"
  25. }, {
  26. "summary": "test2",
  27. "repoId": 00002,
  28. "gmtModified": 1487319003000,
  29. "repoNamespace": "test",
  30. "repoName": "test_repo_2",
  31. "gmtCreate": 1487319003000,
  32. "repoBuildType": "AUTO_BUILD",
  33. "repoType": "PRIVATE",
  34. "repoDomainList": {
  35. "internal": "registry-internal.cn-hangzhou.aliyuncs.com",
  36. "public": "registry.cn-hangzhou.aliyuncs.com",
  37. "vpc": "registry-vpc.cn-hangzhou.aliyuncs.com"
  38. },
  39. "downloads": 0,
  40. "regionId": "cn-hangzhou",
  41. "logo": "https://alidockerhub-logo.oss-cn-hangzhou.aliyuncs.com/user/default.png",
  42. "repoStatus": "NORMAL",
  43. "repoAuthorizeType": "ADMIN"
  44. }],
  45. "pageSize": 20,
  46. "page": 1
  47. },
  48. "requestId": "F11E3C4C-LO9Q-4D11-B7C5-5EFCA8E7CA2E"
  49. }