Lists the execution logs for a specific 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.1Path Parameters
Parameter | Type | Required | Description | Example |
sourceId | integer | Yes | The data source ID. | 2000015 |
taskId | integer | Yes | The migration task ID. | 4032 |
Request parameters
Parameter | Type | Required | Description | Example |
No parameters required.
Response elements
Element | Type | Description | Example |
object | The data returned. | ||
requestId | string | The request ID. | A3AE5649-EF90-54BD-86D0-C632FA950988 |
| data | array<object> | A list of logs. | |
object | A migration task log object. | ||
id | integer | The log ID. | 10000 |
sourceId | integer | The data source ID. | 2000015 |
taskId | integer | The migration task ID. | 4023 |
status | string | The migration task status. 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 time when the log was created. | 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.