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 GetRepoBuildRecord

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

BuildRecordId String Yes a78ec6fb-16ea-4649-93b7-f52afba7d****

The ID of the image build record.

InstanceId String Yes cri-kmsiwlxxdcva****

The ID of the Container Registry instance.

RegionId String Yes cn-shanghai

The ID of the region.

Response parameters

Parameter Type Example Description
BuildRecordId String 79174CBA-8556-443A-8976-22C922D7****

The ID of the image build record.

Code String success

The return value.

EndTime Long 1568718698000

The time when the image build was completed.

Image Struct

The information about the image.

ImageTag String master

The tag of the image.

RepoName String test

The name of the repository.

RepoNamespaceName String test

The namespace to which the repository belongs.

IsSuccess Boolean true

Indicates whether the API call is successful.

RequestId String a78ec6fb-16ea-4649-93b7-f52afba7d9de1

The ID of the request.

StartTime Long 1568718468000

The time when the image build was started.

Status String true

The status of the image build.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetRepoBuildRecord
&BuildRecordId=a78ec6fb-16ea-4649-93b7-f52afba7d****
&InstanceId=cri-kmsiwlxxdcva****
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<Status>true</Status>
<IsSuccess>true</IsSuccess>
<EndTime>1568718698000</EndTime>
<RequestId>a78ec6fb-16ea-4649-93b7-f52afba7d9de1    </RequestId>
<StartTime>1568718468000</StartTime>
<BuildRecordId>79174CBA-8556-443A-8976-22C922D7****</BuildRecordId>
<Image>
    <RepoNamespaceName>test</RepoNamespaceName>
    <ImageTag>master</ImageTag>
    <RepoName>test</RepoName>
</Image>
<Code>success</Code>

JSON format

{
    "Status": true,
    "IsSuccess": true,
    "EndTime": 1568718698000,
    "RequestId": "a78ec6fb-16ea-4649-93b7-f52afba7d9de1",
    "StartTime": 1568718468000,
    "BuildRecordId": "79174CBA-8556-443A-8976-22C922D7****",
    "Image": {
        "RepoNamespaceName": "test",
        "ImageTag": "master",
        "RepoName": "test"
    },
    "Code": "success"
}

Error codes

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