Queries the log of a 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-401361C46642

The ID of the build record.

InstanceId String Yes cri-nmbv37dlv5d390ol

The ID of the instance of Container Registry Enterprise Edition.

RegionId String Yes cn-hangzhou

The region where the instance of Container Registry Enterprise Edition is deployed.

RepoId String Yes crr-z4dvahhku9wv4dsad

The repository ID of the instance of Container Registry Enterprise Edition.

Offset Integer No 0

The offset of the log.

Response parameters

Parameter Type Example Description
BuildRecordLogs Array of BuildRecordLogs

The log content of the specified 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 returned value.

IsSuccess Boolean true

Indicates whether the operation 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 request

http(s)://[Endpoint]/? Action=ListRepoBuildRecordLog
&BuildRecordId=C5B4D5D7-A1C6-4E9B-ABD2-401361C46642
&InstanceId=cri-nmbv37dlv5d390ol
&RegionId=cn-hangzhou
&RepoId=crr-z4dvahhku9wv4dsad
&<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.