All Products
Search
Document Center

MaxCompute:ListMmsJobs

Last Updated:Jun 10, 2026

Mencantumkan daftar pekerjaan 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

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

odps:ListMmsJobs

list

*project

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

None None

Sintaks permintaan

GET /api/v1/mms/datasources/{sourceId}/jobs HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

sourceId

integer

Yes

ID sumber data.

2000002

Parameter permintaan

Parameter

Type

Required

Description

Example

name

string

No

Nama sumber data.

demo

srcDbName

string

No

Nama database sumber.

test_db_1

srcTableName

string

No

Nama tabel sumber.

test_table_1

dstDbName

string

No

Proyek MaxCompute tujuan.

mms_test

dstTableName

string

No

Tabel MaxCompute tujuan.

test_table_1

status

string

No

Status pekerjaan migrasi.

Valid values:

  • INIT :

    Migrasi belum dimulai.

  • DONE :

    Migrasi berhasil.

  • DOING :

    Migrasi sedang berlangsung.

  • FAILED :

    Migrasi gagal.

DOING

stopped

integer

No

Apakah pekerjaan dihentikan.

false

timerId

integer

No

ID pengatur waktu.

1

pageNum

integer

No

Nomor halaman yang akan dikembalikan.

1

pageSize

integer

No

Jumlah item yang dikembalikan per halaman.

10

sorter.status

string

No

Sorting by status

Valid values:

  • asc :

    Ascending

  • desc :

    Descending

desc

Elemen respons

Element

Type

Description

Example

object

The returned data.

requestId

string

The request ID.

1112E7C7-C65F-57A2-A7C7-3B178AA257B6

data

object

The details of the returned data.

total

integer

The total number of records.

100

objectList

array<object>

The list of migration jobs.

array<object>

The migration job object.

id

integer

The migration job ID.

18

name

string

The name of the migration job.

migrate_db_1

sourceId

integer

The data source ID.

2000015

dbId

integer

The source database ID.

196

sourceName

string

The name of the data source.

demo

srcDbName

string

The name of the source database.

test_db_1

srcSchemaName

string

The source schema name. This is the schema in a Layer 3 namespace.

test_table_1

dstDbName

string

The destination MaxCompute project.

mms_test

dstSchemaName

string

The destination MaxCompute schema.

test_table_1

status

string

The status of the migration job.

Valid values:

  • INIT :

    The job has not started.

  • DONE :

    The job is complete.

  • DOING :

    The job is running.

  • FAILED :

    The job failed.

DONE

type

string

The migration scope. Valid values: Database, Tables, and Partitions.

Valid values:

  • Partitions :

    Migrates multiple partitions.

  • Database :

    Migrates a single database.

  • Tables :

    Migrates multiple tables.

Tables

taskNum

integer

The number of migration tasks in the job.

10

stopped

boolean

Indicates whether the migration job is stopped.

false

createTime

string

The time when the migration job was created.

2024-12-17 15:44:17

taskDone

integer

The number of completed migration tasks.

10

config

object

partitions

array

integer

[123, 132]

tables

array

string

["student", "scores"]

taskType

string

The task type. Valid values: MOCK, HIVE (hive udtf task), HIVE_DATAX (hive datax task), COPY_TASK (ODPS Copy Task), ODPS_INSERT_OVERWRITE (ODPS simple insert overwrite task), MC2MC_VERIFY, OSS, HIVE_OSS, HIVE_SPARK, and BIGQUERY.

BIGQUERY

tableBlackList

array

string

["student", "scores"]

tableWhiteList

array

string

["student", "scores"]

partitionFilters

object

string

{ "student": "p1 >= '2022-03-04' and (p2 = 10 or p3 > 20) and p4 in ('abc', 'cde')" }

schemaOnly

boolean

false

tableMapping

object

string

{'a': 'a1'}

increment

boolean

true

enableVerification

boolean

true

tunnelQuota

string

Depcreated

columnMapping

object

string

{"c-1": "c_1"}

others

object

{"spark.executor.mem": "2g"}

eta

string

2025-05-06

pageNum

integer

The page number.

1

pageSize

integer

The number of entries returned on each page.

10

Contoh

Respons sukses

JSONformat

{
  "requestId": "1112E7C7-C65F-57A2-A7C7-3B178AA257B6",
  "data": {
    "total": 100,
    "objectList": [
      {
        "id": 18,
        "name": "migrate_db_1",
        "sourceId": 2000015,
        "dbId": 196,
        "sourceName": "demo",
        "srcDbName": "test_db_1",
        "srcSchemaName": "test_table_1",
        "dstDbName": "mms_test",
        "dstSchemaName": "test_table_1",
        "status": "DONE",
        "type": "Tables",
        "taskNum": 10,
        "stopped": false,
        "createTime": "2024-12-17 15:44:17\n",
        "taskDone": 10,
        "config": {
          "partitions": [
            0
          ],
          "tables": [
            "[\"student\", \"scores\"]"
          ],
          "taskType": "BIGQUERY",
          "tableBlackList": [
            "[\"student\", \"scores\"]"
          ],
          "tableWhiteList": [
            "[\"student\", \"scores\"]"
          ],
          "partitionFilters": {
            "key": "{\n\"student\": \"p1 >= '2022-03-04' and (p2 = 10 or p3 > 20) and p4 in ('abc', 'cde')\" \n}"
          },
          "schemaOnly": false,
          "tableMapping": {
            "key": "{'a': 'a1'}"
          },
          "increment": true,
          "enableVerification": true,
          "tunnelQuota": "Depcreated",
          "columnMapping": {
            "key": "{\"c-1\": \"c_1\"}"
          },
          "others": {
            "spark.executor.mem": "2g"
          }
        },
        "eta": "2025-05-06"
      }
    ],
    "pageNum": 1,
    "pageSize": 10
  }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.