GetMigrationSummary

Updated at:

Queries the details of an import or export task.

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

dataworks:*

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the workspace configuration page to obtain the workspace ID.

12345

MigrationId

integer

Yes

The ID of the import or export task.

You can call the CreateImportMigration operation to obtain the ID of an import task, or call the CreateExportMigration operation to obtain the ID of an export task.

1234

Response elements

Element

Type

Description

Example

object

The response.

RequestId

string

The ID of the request. You can use the ID to locate logs and troubleshoot issues.

19999A96-71BA-1845-B455-ED620EF4E37F

Success

boolean

Indicates whether the call was successful. Valid values:

  • true: The call was successful.

  • false: The call failed. You can use the request ID to troubleshoot the issue.

true

Data

object

The details of the import or export task returned in the response.

MigrationId

integer

The ID of the task.

1234

Name

string

The name of the task.

test_export_01

GmtCreate

integer

The time when the task was created.

1589904000000

GmtModified

integer

The time when the task was modified.

1589904000000

CreateUser

string

The user ID of the task creator.

982293332403****

OpUser

string

The user ID of the task operator.

982293332403****

Status

string

The execution status of the import or export task. Valid values:

  • INIT: The task is in the initial state.

  • EDITING: The task is being edited.

  • IMPORTING: The task is being imported.

  • IMPORT_ERROR: The task failed to be imported.

  • IMPORT_SUCCESS: The task was imported.

  • EXPORTING: The task is being exported.

  • EXPORT_ERROR: The task failed to be exported.

  • EXPORT_SUCCESS: The task was exported.

  • REVOKED: The task was canceled.

  • PARTIAL_SUCCESS: Only some items in the task were imported or exported successfully.

EXPORT_SUCCESS

ProjectId

integer

The ID of the DataWorks workspace to which the task belongs.

12345

DownloadUrl

string

The download URL of the export task package. You can use this URL to download the export package.

https://shanghai-xxx-oss.oss-cn-shanghai.aliyuncs.com/pre/store/f10_bf47_b4fa7df0860f.zip?Expires=1639540903&OSSAccessKeyId=****&Signature=qxxxxx

Examples

Success response

JSON format

{
  "RequestId": "19999A96-71BA-1845-B455-ED620EF4E37F",
  "Success": true,
  "Data": {
    "MigrationId": 1234,
    "Name": "test_export_01",
    "GmtCreate": 1589904000000,
    "GmtModified": 1589904000000,
    "CreateUser": "982293332403****",
    "OpUser": "982293332403****",
    "Status": "EXPORT_SUCCESS",
    "ProjectId": 12345,
    "DownloadUrl": "https://shanghai-xxx-oss.oss-cn-shanghai.aliyuncs.com/pre/store/f10_bf47_b4fa7df0860f.zip?Expires=1639540903&OSSAccessKeyId=****&Signature=qxxxxx"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.