Queries the log entries of an artifact build task.


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-1yu****

The ID of the artifact build task.

InstanceId String Yes cri-shac42yvqzvq****

The ID of the Container Registry 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

The log entries of the artifact build task.

LineNumber Integer 1

The row number of the log entry.

Message String Start Build

The content of the log entry.

Code String success

The response code.

IsSuccess Boolean true

Indicates whether the API call is successful.

  • true: successful
  • false: failed
RequestId String C4C7DD0C-C9D6-437A-A7EE-121EFD70D002

The ID of the request.

TotalCount Integer 200

The total number of log entries.


Sample requests

&<Common request parameters>

Sample success responses

XML format

    <Message>Start Build</Message>

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.