Queries the log entries of an artifact building task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:ListArtifactBuildTaskLog |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the Container Registry instance. |
cri-shac42yvqzvq**** |
| BuildTaskId |
string |
Yes |
The ID of the artifact build task. |
i2a-1yu**** |
| Page |
integer |
Yes |
The number of the page to return. |
1 |
| PageSize |
integer |
Yes |
The number of entries per page. Maximum value: 100. If you specify a value greater than 100 for this parameter, the system reports a parameter error or uses 100 as the maximum value. |
100 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
success |
| IsSuccess |
boolean |
Indicates whether the API request is successful. Valid values:
|
true |
| RequestId |
string |
The request ID. |
C4C7DD0C-C9D6-437A-A7EE-121EFD70D002 |
| TotalCount |
integer |
The total number of log entries. |
200 |
| BuildTaskLogs |
array<object> |
The log entries of the artifact build task. |
|
|
object |
|||
| Message |
string |
The log data. |
Start Build |
| LineNumber |
integer |
The row number of the log entry. |
1 |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "C4C7DD0C-C9D6-437A-A7EE-121EFD70D002",
"TotalCount": 200,
"BuildTaskLogs": [
{
"Message": "Start Build",
"LineNumber": 1
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.