Queries image build records of a repository.

Request information

Request line

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

Request line parameters

Parameter Type Required Description
RepoNamespace String Yes The name of the namespace.
RepoName String Yes The name of the repository.

Operation-specific request headers

None.

Request body

None.

Response information

Response line

HTTP/1.1 200 OK

Operation-specific response headers

None.

Response body

{
   "data": {
      "total": Integer,
      "builds": [
         {
            "image": {
               "repoNamespace": String,
               "repoName": String,
               "tag": String
            },
            "startTime": Long,
            "buildId": String,
            "endTime": Long,
            "buildStatus": String
         }
      ],
      "pageSize": Integer,
      "page": Integer
   },
   "requestId": String
}

Response body parameters

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

Examples

Sample requests

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

Sample responses

HTTP/1.1 200 OK
<Common response headers>

{
   "data": {
      "total": 1,
      "builds": [
         {
            "image": {
               "repoNamespace": "testNamespace",
               "repoName": "testRepo",
               "tag": "v0.1"
            },
            "startTime": 1572334357000,
            "buildId": "1572334356110480841",
            "endTime": 1572334564000,
            "buildStatus": "SUCCESS"
         }
      ],
      "pageSize": 30,
      "page": 1
   },
   "requestId": "DF3A6F7F-D07D-4E17-8337-AFEB568CEF77"
}