Queries the log of an image build record.

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 ListRepoBuildRecordLog

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

BuildRecordId String Yes C5B4D5D7-A1C6-4E9B-ABD2-401361C4****

The ID of the image build record.

InstanceId String Yes cri-nmbv37dlv5d3****

The ID of the Container Registry instance.

RegionId String Yes cn-hangzhou

The ID of the region where the Container Registry instance is deployed.

RepoId String Yes crr-z4dvahhku9wv4****

The ID of the repository.

Offset Integer No 0

The offset of the log.

Response parameters

Parameter Type Example Description
BuildRecordLogs Array of BuildRecordLogs

The log content of the build record.

BuildStage String GIT_CLONE

The stage of the build that is recorded in the log entry.

LineNumber Integer 2

The row number of the log entry.

Message String fetch stage begin

The content of the log entry.

Code String success

The return value.

IsSuccess Boolean true

Indicates whether the API call is successful.

PageNo Integer 1

The page number of the returned page.

PageSize Integer 100

The number of log entries that are returned on each page.

RequestId String 4CE1F661-75DD-4EBD-A4AD-057B26834ABB

The ID of the request.

TotalCount String 1000

The total number of returned entries.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListRepoBuildRecordLog
&BuildRecordId=C5B4D5D7-A1C6-4E9B-ABD2-401361C4****
&InstanceId=cri-nmbv37dlv5d3****
&RegionId=cn-hangzhou
&RepoId=crr-z4dvahhku9wv4****
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<BuildRecordLogs>
    <Message>fetch stage begin</Message>
    <BuildStage>GIT_CLONE</BuildStage>
    <LineNumber>2</LineNumber>
</BuildRecordLogs>
<TotalCount>1000</TotalCount>
<PageSize>100</PageSize>
<RequestId>4CE1F661-75DD-4EBD-A4AD-057B26834ABB</RequestId>
<PageNo>1</PageNo>
<Code>success</Code>

JSON format

{
    "IsSuccess": true,
    "BuildRecordLogs": {
        "Message": "fetch stage begin",
        "BuildStage": "GIT_CLONE",
        "LineNumber": 2
    },
    "TotalCount": 1000,
    "PageSize": 100,
    "RequestId": "4CE1F661-75DD-4EBD-A4AD-057B26834ABB",
    "PageNo": 1,
    "Code": "success"
}

Error codes

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