Queries the log entries of an artifact build task.

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 ListArtifactBuildTaskLog

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

BuildTaskId String Yes i2a-123456

The ID of the artifact build task.

InstanceId String Yes cri-123456

The ID of the Container Registry Enterprise Edition instance.

Page Integer Yes 1

The number of the page to return.

PageSize Integer Yes 100

The number of entries to return on each page.

RegionId String Yes cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
BuildTaskLogs Array of BuildTaskLogs N/A

The log entries of the artifact build task.

LineNumber Integer 1

The number of the log entry.

Message String Start Build

The content of the log entry.

Code String success

The return code.

IsSuccess Boolean true

Indicates whether the call was successful.

RequestId String C4C7DD0C-C9D6-437A-A7EE-121EFD70D002

The ID of the request.

TotalCount Integer 200

The total number of log entries.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListArtifactBuildTaskLog
&BuildTaskId=i2a-123456
&InstanceId=cri-123456
&Page=1
&PageSize=100
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<TotalCount>200</TotalCount>
<BuildTaskLogs>
    <Message>Start Build</Message>
    <LineNumber>1</LineNumber>
</BuildTaskLogs>
<RequestId>C4C7DD0C-C9D6-437A-A7EE-121EFD70D002</RequestId>
<Code>success</Code>

JSON format

{
    "IsSuccess": true,
    "TotalCount": 200,
    "BuildTaskLogs": {
        "Message": "Start Build",
        "LineNumber": 1
    },
    "RequestId": "C4C7DD0C-C9D6-437A-A7EE-121EFD70D002",
    "Code": "success"
}

Error codes

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