Queries an image build record for 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-f52afba7d9de1

The ID of the image build record.

InstanceId String Yes cri-kmsiwlxxdcvaduwb

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

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 a78ec6fb-16ea-4649-93b7-f52afba7d9de1

The ID of the request.

BuildRecordId String 79174CBA-8556-443A-8976-22C922D7BE37

The ID of the image build record.

StartTime Long 1568718468000

The time when the image build started.

EndTime Long 1568718698000

The time when the image build completed.

Status String true

The status of the image build.

Image Struct

The information about the built image.

RepoNamespaceName String test

The name of the namespace.

RepoName String test

The name of the repository.

ImageTag String master

The tag of the image.

Examples

Sample requests

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

Sample success responses

JSON format

{
    "BuildRecordId": "79174CBA-8556-443A-8976-22C922D7BE37",
    "EndTime": 1568718698000,
    "StartTime": 1568718468000,
    "Status": true,
    "Image": {
        "ImageTag": "master",
        "RepoName": "test",
        "RepoNamespaceName": "test"
    },
    "IsSuccess":true,
    "Code":"success"
}

XML format

<BuildRecordId>79174CBA-8556-443A-8976-22C922D7BE37</BuildRecordId>
<EndTime>1568718698000</EndTime>
<StartTime>1568718468000</StartTime>
<Status>true</Status>
<Image>
    <ImageTag>master</ImageTag>
    <RepoName>test</RepoName>
    <RepoNamespaceName>test</RepoNamespaceName>
</Image>
<IsSuccess>true</IsSuccess>
<Code>success</Code>

Error codes

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