Queries image build records of a repository.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListRepoBuildRecord

The operation that you want to perform. Set the value to ListRepoBuildRecord.

InstanceId String Yes cri-kmsiwlxxdcva****

The ID of the Container Registry instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoId String Yes crr-tquyps22md8****

The ID of the repository.

PageNo Integer No 1

The number of the page to return.

PageSize Integer No 30

The number of entries to return on each page.

Response parameters

Parameter Type Example Description
BuildRecords Array of BuildRecords

The list of image build records.

BuildRecordId String 537e08ab-735e-415f-b7c2-160eb87f8****

The ID of the build record.

BuildStatus String SUCCESS

The status of the build.

EndTime String 1572875610000

The time when the image build was completed.

Image Struct

The information about the image.

ImageTag String v0.1

The tag of the image.

RepoId String crr-gzsrlevmvoaq****

The ID of the repository.

RepoName String test

The name of the repository.

RepoNamespaceName String test

The namespace to which the repository belongs.

StartTime String 1572872207000

The time when the image build was started.

Code String success

The return value.

IsSuccess Boolean true

Indicates whether the API call is successful. Valid values:

  • true: successful
  • false: failed
PageNo Integer 1

The page number of the returned page.

PageSize Integer 30

The number of entries returned on each page.

RequestId String 9D23DEDF-E91D-434B-B7D5-9D12C648D166

The ID of the request.

TotalCount String 1

The total number of returned entries.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListRepoBuildRecord
&InstanceId=cri-kmsiwlxxdcva****
&RegionId=cn-shanghai
&RepoId=crr-tquyps22md8****
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<BuildRecords>
    <EndTime>1572875610000</EndTime>
    <StartTime>1572872207000</StartTime>
    <BuildStatus>SUCCESS</BuildStatus>
    <BuildRecordId>537e08ab-735e-415f-b7c2-160eb87f8****</BuildRecordId>
    <Image>
        <RepoNamespaceName>test</RepoNamespaceName>
        <ImageTag>v0.1</ImageTag>
        <RepoName>test</RepoName>
        <RepoId>crr-gzsrlevmvoaq****</RepoId>
    </Image>
</BuildRecords>
<TotalCount>1</TotalCount>
<PageSize>30</PageSize>
<RequestId>9D23DEDF-E91D-434B-B7D5-9D12C648D166</RequestId>
<PageNo>1</PageNo>
<Code>success</Code>

JSON format

{
    "IsSuccess": true,
    "BuildRecords": {
        "EndTime": 1572875610000,
        "StartTime": 1572872207000,
        "BuildStatus": "SUCCESS",
        "BuildRecordId": "537e08ab-735e-415f-b7c2-160eb87f8****",
        "Image": {
            "RepoNamespaceName": "test",
            "ImageTag": "v0.1",
            "RepoName": "test",
            "RepoId": "crr-gzsrlevmvoaq****"
        }
    },
    "TotalCount": 1,
    "PageSize": 30,
    "RequestId": "9D23DEDF-E91D-434B-B7D5-9D12C648D166",
    "PageNo": 1,
    "Code": "success"
}

Error codes

For a list of error codes, visit the API Error Center.