All Products
Search
Document Center

Get the repository tags

Last Updated: May 28, 2018

Description

Get the repository tags information.

Request information

Request line

  1. GET /repos/[RepoNamespace]/[RepoName]/tags 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.
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. "pageSize": Integer,
  5. "page": Integer,
  6. "tags": [{
  7. "imageUpdate": Long,
  8. "imageCreate": Long,
  9. "imageId": String,
  10. "digest": String,
  11. "imageSize": Long,
  12. "tag": String,
  13. "status": String
  14. }, {
  15. "imageUpdate": Long,
  16. "imageCreate": Long,
  17. "imageId": String,
  18. "digest": String,
  19. "imageSize": Long,
  20. "tag": String,
  21. "status": String
  22. }]
  23. },
  24. "requestId": "9AFB10K1-2301-4B00-A817-932492040126"
  25. }

Response body explanation

Name Type Description
imageUpdate Long The image update time.
imageCreate Long The image creation time.
imageId String The image ID.
digest String The image sha256.
imageSize Long The image size.
tag String The image tag.
status String The image status.
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/testNamespaceName/testRepoName/tags HTTP/1.1
  2. <Common request header>

Response example

  1. HTTP/1.1 200 OK
  2. <Common response header>
  3. {
  4. "total": 2,
  5. "pageSize": 30,
  6. "page": 1,
  7. "tags": [{
  8. "imageUpdate": 1514432549000,
  9. "imageId": "2842876c9b98f8c7607c1123ks18ff040b76a1d932c6d60c96aa3c283bd221cd",
  10. "digest": "83414d2c3b04e0lo1q7693e31aeca95b82c61949ea8de858579bf16bd92490c6",
  11. "imageSize": 715764,
  12. "tag": "new",
  13. "imageCreate": 1514432549000,
  14. "status": "NORMAL"
  15. }, {
  16. "imageUpdate": 1514372113000,
  17. "imageId": "414e6daa772a8cd5dfloqpe503e6e313c372d2e15958ab649709daf9b1065479",
  18. "digest": "fcf39ed78ef0fa27bcc74713b85259alop1b12e6a201e3083af50fd8eda1cbe1",
  19. "imageSize": 715653,
  20. "tag": "asdf",
  21. "imageCreate": 1514372044000,
  22. "status": "NORMAL"
  23. }]
  24. },
  25. "requestId": "9AFB52D3-6631-4B00-A857-932492097726"
  26. }