ListDIJobs

Updated at:

Queries a list of new-version data integration tasks, including full-database real-time synchronization tasks, full-database batch synchronization tasks, and single-table real-time synchronization tasks.

Operation description

To use this API, you must purchase DataWorks Basic Edition or a higher edition.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

PageNumber

integer

No

The page number. Pages start from 1. Default value: 1.

1

PageSize

integer

No

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

10

Name

string

No

Filters tasks by synchronization task name. Partial name matching is supported.

test_export_01

SourceDataSourceType

string

No

The type of the source data source. If you do not specify this parameter, no limit is applied. Valid values: PolarDB, MySQL, Kafka, LogHub, Hologres, Oracle, OceanBase, MongoDB, RedShift, Hive, SQLServer, Doris, and ClickHouse.

MySQL

DestinationDataSourceType

string

No

The type of the destination data source. If you do not specify this parameter, no limit is applied. Valid values: Hologres, OSS-HDFS, OSS, MaxCompute, LogHub, StarRocks, DataHub, AnalyticDB_For_MySQL, Kafka, and Hive.

Hologres

MigrationType

string

No

The synchronization type. Valid values:

  • FullAndRealtimeIncremental: full and real-time incremental synchronization.

  • RealtimeIncremental: real-time incremental synchronization.

  • Full: full synchronization.

  • OfflineIncremental: batch incremental synchronization.

  • FullAndOfflineIncremental: full and batch incremental synchronization.

FullAndRealtimeIncremental

ProjectId

integer

Yes

The ID of the workspace.

1967

SpecType

string

No

The task configuration specification type. Default value: FILESPEC.

  • FILESPEC: queries only new-version tasks that use FileSpec configurations.

  • CLASSIC: queries only tasks that use legacy configurations.

  • ALL: queries both types of tasks.

FILESPEC

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

7263E4AC-9D2E-5B29-B8AF-7C5012E92A41

PagingInfo

object

The pagination information.

TotalCount

integer

The total number of entries that meet the conditions.

12

PageSize

integer

The number of entries per page.

10

PageNumber

integer

The page number of the returned data.

1

DIJobs

array<object>

The data integration tasks.

object

A data integration task.

Id

integer

The ID of the data integration task.

32599

ProjectId

integer

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

26442

JobName

string

The name of the task.

mysql_to_holo_sync_35197

MigrationType

string

The synchronization type. Valid values:

  • FullAndRealtimeIncremental: full and real-time incremental synchronization.

  • RealtimeIncremental: real-time incremental synchronization.

  • Full: full synchronization.

  • OfflineIncremental: batch incremental synchronization.

  • FullAndOfflineIncremental: full and batch incremental synchronization.

FullAndRealtimeIncremental

SourceDataSourceType

string

The type of the source data source. Valid values: PolarDB, MySQL, Kafka, Loghub, Hologres, Oracle, OceanBase, MongoDB, RedShift, Hive, SqlServer, Doris, and ClickHouse.

Mysql

DestinationDataSourceType

string

The type of the destination data source. Valid values: Hologres, OSS-HDFS, OSS, MaxCompute, Loghub, STARROCKS, DataHub, ANALYTICDB_FOR_MYSQL, Kafka, and Hive.

Hologres

JobStatus

string

The synchronization status. Valid values:

  • Finished: The task completed successfully.

  • Initialized: The task initialization is complete.

  • Stopped: The task is stopped.

  • Failed: The task failed.

  • Running: The task is running.

  • Stopping: The task is being stopped.

Running

DIJobId deprecated

integer

[Deprecated] This field is deprecated. Use the Id field instead.

32599

Owner

string

The owner of the task.

3726346

Examples

Success response

JSON format

{
  "RequestId": "7263E4AC-9D2E-5B29-B8AF-7C5012E92A41",
  "PagingInfo": {
    "TotalCount": 12,
    "PageSize": 10,
    "PageNumber": 1,
    "DIJobs": [
      {
        "Id": 32599,
        "ProjectId": 26442,
        "JobName": "mysql_to_holo_sync_35197",
        "MigrationType": "FullAndRealtimeIncremental",
        "SourceDataSourceType": "Mysql",
        "DestinationDataSourceType": "Hologres",
        "JobStatus": "Running",
        "DIJobId": 32599,
        "Owner": "3726346"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.