Retrieves a single asynchronous task from MaxCompute Migration Assist (MMA).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetMmsAsyncTask |
get |
*project
|
None | None |
Request syntax
GET /api/v1/mms/datasources/{sourceId}/asyncTasks/{asyncTaskId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| sourceId |
integer |
Yes |
The data source ID. |
2000028 |
| asyncTaskId |
integer |
Yes |
The asynchronous task ID. |
1000286 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
ApiRes |
||
| requestId |
string |
The request ID. |
688003E1-D1B4-5468-957E-2FFB3AC8D79B |
| data |
object |
The asynchronous task object. |
|
| id |
integer |
The asynchronous task ID. |
2523 |
| sourceId |
integer |
The data source ID. |
2000017 |
| type |
string |
The type of the asynchronous task. Valid values:
|
TASK_CREATE |
| objectId |
integer |
The ID of the object associated with the asynchronous task. |
232 |
| status |
string |
The status of the asynchronous task. |
DONE |
| running |
boolean |
Indicates whether the task is running. |
false |
| progress |
integer |
The progress of the task. |
0 |
| result |
string |
The result of the task. |
null |
| errorMsg |
string |
The error message. |
null |
| startTime |
string |
The time when the task started to run. |
2024-12-17 15:44:17 |
| endTime |
string |
The time when the task stopped running. |
2024-12-17 17:44:17 |
| createTime |
string |
The time when the task was created. |
2024-12-17 15:44:00 |
Examples
Success response
JSON format
{
"requestId": "688003E1-D1B4-5468-957E-2FFB3AC8D79B",
"data": {
"id": 2523,
"sourceId": 2000017,
"type": "TASK_CREATE",
"objectId": 232,
"status": "DONE",
"running": false,
"progress": 0,
"result": "null",
"errorMsg": "null",
"startTime": "2024-12-17 15:44:17\n",
"endTime": "2024-12-17 17:44:17\n",
"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.