All Products
Search
Document Center

MaxCompute:GetMmsAsyncTask

Last Updated:Sep 30, 2025

Retrieves a single asynchronous task from MaxCompute Migration Assist (MMA).

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

odps:GetMmsAsyncTask

get

*project

acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}

None

None

Request syntax

GET /api/v1/mms/datasources/{sourceId}/asyncTasks/{asyncTaskId} HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

sourceId

integer

Yes

The data source ID.

2000028

asyncTaskId

integer

Yes

The asynchronous task ID.

1000286

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 :

    TASK_CREATE

  • STOP_JOB :

    STOP_JOB

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.