Retrieves the details of a specific migration task.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
odps:GetMmsTask | get | *project
| None | None |
Request syntax
GET /api/v1/mms/datasources/{sourceId}/tasks/{taskId} HTTP/1.1Path Parameters
Parameter | Type | Required | Description | Example |
sourceId | integer | Yes | The data source ID. | 2000015 |
taskId | integer | Yes | The migration task ID. | 7680 |
Request parameters
Parameter | Type | Required | Description | Example |
No parameters required.
Response elements
Element | Type | Description | Example |
object | ApiRes | ||
requestId | string | The request ID. | 73207140-0FD5-588A-B11A-3CE093924196 |
| data | object | The migration task object. | |
id | integer | The migration task ID. | 7680 |
jobId | integer | The migration job ID. | 87 |
sourceId | integer | The data source ID. | 2000015 |
dbId | integer | The source database ID. | 23 |
tableId | integer | The source table ID. | 2323 |
jobName | string | The migration job name. | test_odps_spark |
sourceName | string | The data source name. | demo |
srcDbName | string | The source database name. | mms_test |
srcSchemaName | string | The name of the source schema. This refers to the schema in a Layer 3 namespace. | default |
srcTableName | string | The source table name. | table_1 |
dstDbName | string | The destination MaxCompute project. | mms_target |
dstSchemaName | string | The destination MaxCompute schema. | default |
dstTableName | string | The destination MaxCompute table. | table_1 |
type | string | The task type. | BIGQUERY |
status | string | The migration task status. Valid values:
| DATA_DOING |
running | boolean | Indicates if the task is running. | true |
stopped | boolean | Indicates if the task is stopped. | false |
retriedTimes | integer | The number of times the task has been retried. | 1 |
startTime | string | The start time of the task. | 2024-10-25 06:21:01 |
endTime | string | The end time of the task. | 2024-10-25 07:21:01 |
createTime | string | The creation time of the task. | 2024-10-25 04:21:01 |
Examples
Success response
JSON format
{
"requestId": "73207140-0FD5-588A-B11A-3CE093924196",
"data": {
"id": 7680,
"jobId": 87,
"sourceId": 2000015,
"dbId": 23,
"tableId": 2323,
"jobName": "test_odps_spark",
"sourceName": "demo",
"srcDbName": "mms_test",
"srcSchemaName": "default",
"srcTableName": "table_1",
"dstDbName": "mms_target",
"dstSchemaName": "default",
"dstTableName": "table_1",
"type": "BIGQUERY",
"status": "DATA_DOING",
"running": true,
"stopped": false,
"retriedTimes": 1,
"startTime": "2024-10-25 06:21:01\n",
"endTime": "2024-10-25 07:21:01\n",
"createTime": "2024-10-25 04:21:01\n"
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.