Retrieves the details of a specific MaxCompute Migration Assist (MMA) migration plan.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
odps:GetMmsJob | get | *project
| None | None |
Request syntax
GET /api/v1/mms/datasources/{sourceId}/jobs/{jobId} HTTP/1.1Request parameters
Parameter | Type | Required | Description | Example |
sourceId | integer | Yes | The data source ID. | 2000015 |
jobId | integer | Yes | The job ID. | 10 |
Response elements
Element | Type | Description | Example |
object | ApiRes | ||
requestId | string | The request ID. | D9F872FD-5DDE-30A6-8C8A-1B8C6A81059F |
| data | object | The migration job object. | |
id | integer | The migration job ID. | 10 |
name | string | The name of the migration job. | migrate_db_1 |
sourceId | integer | The data source ID. | 2 |
dbId | integer | The source database ID. | 23 |
sourceName | string | The name of the data source. | demo |
srcDbName | string | The name of the source database. | mms_test |
srcSchemaName | string | The name of the source schema. This parameter specifies the schema in a Layer 3 namespace. | default |
dstDbName | string | The destination MaxCompute project. | mms_target |
dstSchemaName | string | The destination MaxCompute schema. | default |
status | string | The status of the migration task. Valid values:
| DOING |
type | string | The migration scope. Valid values: Database, Tables, and Partitions. Valid values:
| Tables |
taskNum | integer | The number of migration tasks that are included. | 100 |
stopped | boolean | Indicates whether the job is stopped. | false |
createTime | string | The time when the job was created. | 2024-12-17 15:44:17 |
taskDone | integer | The number of completed migration tasks. | 100 |
| config | object | ||
| partitions | array | ||
integer | |||
| tables | array | ||
string | |||
taskType | string | MOCK, HIVE: a Hive user-defined table-valued function (UDTF) task, HIVE_DATAX: a Hive DataX task, COPY_TASK: an ODPS Copy Task, ODPS_INSERT_OVERWRITE: an ODPS simple insert overwrite task, MC2MC_VERIFY, OSS, HIVE_OSS, HIVE_SPARK, or BIGQUERY | |
| tableBlackList | array | ||
string | |||
| tableWhiteList | array | ||
string | |||
| partitionFilters | object | ||
string | |||
schemaOnly | boolean | ||
| tableMapping | object | ||
string | |||
increment | boolean | ||
enableVerification | boolean | ||
tunnelQuota | string | ||
| columnMapping | object | ||
string | |||
others | object | ||
eta | string |
Examples
Success response
JSON format
{
"requestId": "D9F872FD-5DDE-30A6-8C8A-1B8C6A81059F",
"data": {
"id": 10,
"name": "migrate_db_1",
"sourceId": 2,
"dbId": 23,
"sourceName": "demo",
"srcDbName": "mms_test",
"srcSchemaName": "default",
"dstDbName": "mms_target",
"dstSchemaName": "default",
"status": "DOING",
"type": "Tables",
"taskNum": 100,
"stopped": true,
"createTime": "2024-12-17 15:44:17",
"taskDone": 100,
"config": {
"partitions": [
0
],
"tables": [
""
],
"taskType": "",
"tableBlackList": [
""
],
"tableWhiteList": [
""
],
"partitionFilters": {
"key": ""
},
"schemaOnly": true,
"tableMapping": {
"key": ""
},
"increment": true,
"enableVerification": true,
"tunnelQuota": "",
"columnMapping": {
"key": ""
},
"others": {
"test": "test",
"test2": 1
}
},
"eta": ""
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.