Queries the log entries of an artifact build task.
Debugging
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.
|
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-1yu****
&InstanceId=cri-shac42yvqzvq****
&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.