Queries image build records in 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-kmsiwlxxdcvaduwb

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

RepoId String Yes crr-tquyps22md8purzx

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
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The code returned for the request.

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

The ID of the request.

PageNo Integer 1

The page number of the returned page.

PageSize Integer 30

The number of entries returned per page.

TotalCount String 1

The total number of entries returned.

BuildRecords Array

A list of image build records.

BuildRecordId String 537e08ab-735e-415f-b7c2-160eb87f8d191

The ID of the build record.

StartTime String 1572872207000

The time when the image started to be built.

EndTime String 1572875610000

The time when the image build completed.

BuildStatus String SUCCESS

The status of the image build.

Image Struct

The information about the built image.

RepoId String null

The ID of the repository to which the image belongs.

RepoNamespaceName String test

The name of the namespace to which the repository belongs.

RepoName String test

The name of the repository.

ImageTag String v0.1

The tag of the image.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ListRepoBuildRecord
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&RepoId=crr-tquyps22md8purzx
&PageNo=1
&PageSize=30
& <Common request parameters>

Sample success responses

JSON format

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

XML format

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

Error codes

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