All Products
Search
Document Center

Get the repository information

Last Updated: May 28, 2018

Description

Get the detailed information of the repository.

Request information

Request line

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

Request line parameters (URI parameters)

Name Type Required Description
RepoNamespace String Yes The name of the namespace that the repository belongs to.
RepoName String Yes The name of the repository.

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. "repo": {
  4. "summary": String,
  5. "repoId": Long,
  6. "gmtCreate": Long,
  7. "gmtModified": Long,
  8. "repoNamespace": String,
  9. "repoName": String,
  10. "repoBuildType": String,
  11. "repoType": String,
  12. "repoDomainList": {
  13. "internal": String,
  14. "public": String,
  15. "vpc": String
  16. },
  17. "downloads": Long,
  18. "regionId": String,
  19. "logo":String,
  20. "repoStatus": String,
  21. "detail": String,
  22. "repoAuthorizeType": String
  23. }
  24. },
  25. "requestId": string
  26. }

Response body explanation

Name Type Description
summary String The summary information.
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.
detail String The detailed information of the repository.
repoAuthorizeType String The authorization type of the repository.

Example

Request example

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

Response example

  1. HTTP/1.1 200 OK
  2. <Common response header>
  3. {
  4. "data":{
  5. "repo": {
  6. "summary": "test",
  7. "gmtCreate": 1524663834000,
  8. "gmtModified": 1524663871000,
  9. "repoNamespace": "test",
  10. "repoName": "test",
  11. "repoBuildType": "AUTO_BUILD",
  12. "repoType": "PUBLIC",
  13. "repoDomainList": {
  14. "internal": "registry-internal.cn-hangzhou.aliyuncs.com",
  15. "public": "registry.cn-hangzhou.aliyuncs.com",
  16. "vpc": "registry-vpc.cn-hangzhou.aliyuncs.com"
  17. },
  18. "downloads": 2,
  19. "regionId": "cn-hangzhou",
  20. "logo": "https://alidockerhub-logo.oss-cn-hangzhou.aliyuncs.com/user/default.png",
  21. "repoStatus": "NORMAL",
  22. "detail": "",
  23. "repoAuthorizeType": "ADMIN"
  24. }
  25. },
  26. "requestId": "B21BE190-08BA-41B6-B8B5-CA4029F1CC58"
  27. }