Lists the execution logs of an asynchronous task. This operation supports pagination.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
featurestore:ListTaskLogs |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/instances/{InstanceId}/tasks/{TaskId}/logs HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. You can get it by calling the ListInstances API. |
fs-cn-******** |
| TaskId |
string |
Yes |
The task ID. You can get it by calling the ListTasks API. |
4 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number. The minimum value is 1. The default value is 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
72F15A8A-5A28-5B18-A0DE-0EABD7D3245A |
| TotalCount |
integer |
The total number of log entries. |
100 |
| Logs |
array |
An array of log entries. |
|
|
string |
A log entry. |
success! |
Examples
Success response
JSON format
{
"RequestId": "72F15A8A-5A28-5B18-A0DE-0EABD7D3245A",
"TotalCount": 100,
"Logs": [
"success!"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.