ListMmsTaskLogs
Lists the execution logs of a single migration task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:ListMmsTaskLogs |
list |
*project
|
None | None |
Request syntax
GET /api/v1/mms/datasources/{sourceId}/tasks/{taskId}/logs HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| sourceId |
integer |
Yes |
The ID of the data source. |
2000015 |
| taskId |
integer |
Yes |
The ID of the migration task. |
4032 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| requestId |
string |
The request ID. |
A3AE5649-EF90-54BD-86D0-C632FA950988 |
| data |
array<object> |
The list of logs. |
|
|
object |
The migration task logs object. |
||
| id |
integer |
The log ID. |
10000 |
| sourceId |
integer |
The ID of the data source. |
2000015 |
| taskId |
integer |
The ID of the migration task. |
4023 |
| status |
string |
The status of the migration task. Valid values:
|
DATA_DOING |
| action |
string |
The operation performed by the migration task. |
create schema if not exists mms_test.default; |
| msg |
string |
The result of the migration task operation. |
ok |
| createTime |
string |
The creation time. Format: YYYY-MM-DD HH:mm:ss. |
2024-12-17 15:44:00 |
Examples
Success response
JSON format
{
"requestId": "A3AE5649-EF90-54BD-86D0-C632FA950988",
"data": [
{
"id": 10000,
"sourceId": 2000015,
"taskId": 4023,
"status": "DATA_DOING",
"action": "\ncreate schema if not exists mms_test.default;",
"msg": "ok",
"createTime": "2024-12-17 15:44:00\n"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.