All Products
Search
Document Center

DataWorks:ListMigrations

Last Updated:Jun 11, 2026

Mengkueri daftar tugas migrasi.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

ID ruang kerja DataWorks. Anda dapat masuk ke Konsol DataWorks dan membuka halaman Ruang Kerja untuk mendapatkan ID ruang kerja.

12345

MigrationType

string

Yes

Tipe tugas migrasi. Nilai valid: IMPORT dan EXPORT.

IMPORT

Owner

string

No

ID pemilik.

193379****

PageNumber

integer

No

Nomor halaman. Nilai default: 1. Nilai maksimum: 100.

1

PageSize

integer

No

Jumlah entri per halaman. Nilai default: 10. Nilai maksimum: 100.

10

Elemen respons

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

F9198AA3-9010-53D5-9714-DC4461427D3E

Success

boolean

Indicates whether the request was successful. Valid values:

  • true

  • false

true

Data

object

The returned data.

Migrations

array<object>

The list of migration tasks.

object

The migration task.

Id

integer

The primary key ID.

436064

Name

string

The name of the migration task.

test_task_1638498642279

PackageType

string

The type of the import or export package. Valid values:

  • DWMA (standard format)

  • DATAWORKS_MODEL (standard format)

  • DATAWORKS_V2 (Apsara Stack DataWorks V3.6.1 to V3.11)

  • DATAWORKS_V3 (Apsara Stack DataWorks V3.12 and later)

The DWMA and DATAWORKS_MODEL types are interchangeable.

DATAWORKS_MODEL

MigrationType

string

The type of the migration task. Valid values:

  • IMPORT

  • EXPORT

EXPORT

CreateTime

integer

The time when the migration task was created.

123124123123123

UpdateTime

integer

The time when the migration task was last updated.

123123123123123

CreateUser

string

The ID of the user who created the migration task.

123123****

CreateUserName

string

The name of the user who created the migration task.

3h1_test

UpdateUser

string

The ID of the user who last updated the migration task.

1231****

UpdateUserName

string

The name of the user who last updated the migration task.

3h1_test

ProjectId

integer

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

72132

TenantId

integer

The tenant ID.

16307

Status

string

The status of the migration task. Valid values:

  • INIT: The migration task is in the initial state.

  • EDITING: The migration task is being edited.

  • RUNNING: The migration task is running.

  • FAILURE: The migration task fails to run.

  • SUCCESS: The migration task is successfully run.

SUCCESS

Message

string

The error message returned.

An internal system error occurred. datasource kafka region is not cn-chengdu, can't open network for it

DownloadUrl

string

The URL that is used to download the package of the export task. You can use the URL to download the package of the export task.

http://geoip-sdk-user.oss-cn-zhangjiakou.aliyuncs.com/product/v1/ipv4/trace/v1.20220424123842.dex?Expires=1650780849&OSSAccessKeyId=XXXXXXeF4Lv5j&Signature=qxxxxx

Description

string

The description of the export task.

Automated Test creation

PageNumber

integer

The page number.

1

PageSize

integer

The number of entries per page. Default value: 10. Maximum value: 50.

10

TotalCount

integer

The total number of entries.

20

Contoh

Respons sukses

JSONformat

{
  "RequestId": "F9198AA3-9010-53D5-9714-DC4****",
  "Success": true,
  "Data": {
    "Migrations": [
      {
        "Id": 436064,
        "Name": "test_task_1638498642279",
        "PackageType": "DATAWORKS_MODEL",
        "MigrationType": "EXPORT",
        "CreateTime": 123124123123123,
        "UpdateTime": 123123123123123,
        "CreateUser": "123123****",
        "CreateUserName": "3h1_test",
        "UpdateUser": "1231****",
        "UpdateUserName": "3h1_test",
        "ProjectId": 72132,
        "TenantId": 16307,
        "Status": "SUCCESS",
        "Message": "An internal system error occurred. datasource kafka region is not cn-chengdu, can't open network for it",
        "DownloadUrl": "http://geoip-sdk-user.oss-cn-zhangjiakou.aliyuncs.com/product/v1/ipv4/trace/v1.20220424123842.dex?Expires=1650780849&OSSAccessKeyId=*****&Signature=qxxxxx",
        "Description": "Automated Test creation"
      }
    ],
    "PageNumber": 1,
    "PageSize": 10,
    "TotalCount": 20
  }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.