All Products
Search
Document Center

GetRepoBuildList

Last Updated: Jan 22, 2020

Description

You can call this operation to query the build records of an image repository.

Request information

Request line

  1. GET /repos/[RepoNamespace]/[RepoName]/build HTTP/1.1

Request parameters

Parameter Type Required Description
RepoNamespace String Yes The namespace to which the image repository belongs.
RepoName String Yes The name of the image repository.

Custom request headers

None.

Request body

None.

Response information

Response line

  1. HTTP/1.1 200 OK

Custom response headers

None.

Response body

  1. {
  2. "data": {
  3. "total": Integer,
  4. "builds": [
  5. {
  6. "image": {
  7. "repoNamespace": String,
  8. "repoName": String,
  9. "tag": String
  10. },
  11. "startTime": Long,
  12. "buildId": String,
  13. "endTime": Long,
  14. "buildStatus": String
  15. }
  16. ],
  17. "pageSize": Integer,
  18. "page": Integer
  19. },
  20. "requestId": String
  21. }

Response body description

Parameter Type Description
total Integer The total number of build records.
repoNamespace String The namespace to which the image repository belongs.
repoName String The name of the image repository.
tag String The version of the image.
startTime Long The start time of the build.
endTime Long The end time of the build.
buildId String The ID of the build.
buildStatus String The status of the build.
page Integer The page number of the returned page.
pageSize Integer The number of records displayed on each page.
requestId String The unique ID of the request.

Examples

Sample requests

  1. GET /repos/[RepoNamespace]/[RepoName]/build HTTP/1.1
  2. <Common request headers>

Sample responses

  1. HTTP/1.1 200 OK
  2. <Common response headers>
  3. {
  4. "data": {
  5. "total": 1,
  6. "builds": [
  7. {
  8. "image": {
  9. "repoNamespace": "testNamespace",
  10. "repoName": "testRepo",
  11. "tag": "v0.1"
  12. },
  13. "startTime": 1572334357000,
  14. "buildId": "1572334356110480841",
  15. "endTime": 1572334564000,
  16. "buildStatus": "SUCCESS"
  17. }
  18. ],
  19. "pageSize": 30,
  20. "page": 1
  21. },
  22. "requestId": "DF3A6F7F-D07D-4E17-8337-AFEB568CEF77"
  23. }