All Products
Search
Document Center

DataWorks:ListDIJobs

Last Updated:Dec 10, 2024

Queries a list of synchronization tasks.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberlongNo

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

1
PageSizelongNo

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

10
NamestringNo

The name of the export task.

The name of each export task must be unique. You must make sure that the names of the export tasks in the current workspace are unique.

test_export_01
SourceDataSourceTypestringNo

The source type. If you do not configure this parameter, no limits are imposed on the tasks.

MySQL
DestinationDataSourceTypestringNo

The destination type. If you do not configure this parameter, no limits are imposed on the tasks.

Hologres
MigrationTypestringNo

The synchronization type. Valid values:

  • FullAndRealtimeIncremental: one-time full synchronization and real-time incremental synchronization
  • RealtimeIncremental: real-time incremental synchronization
  • Full: full synchronization
  • OfflineIncremental: batch incremental synchronization
  • FullAndOfflineIncremental: one-time full synchronization and batch incremental synchronization
FullAndRealtimeIncremental
ProjectIdlongYes

The DataWorks workspace ID.

1967

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

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

The pagination information.

TotalCountlong

The total number of entries returned.

12
PageSizelong

The number of entries per page.

10
PageNumberlong

The page number.

1
DIJobsarray<object>

The synchronization tasks returned.

DIJobsobject

The synchronization task.

DIJobIdlong

The ID of the synchronization task.

32599
ProjectIdlong

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

26442
JobNamestring

The name of the synchronization task.

mysql_to_holo_sync_35197
MigrationTypestring

The synchronization type. Valid values:

  • FullAndRealtimeIncremental: one-time full synchronization and real-time incremental synchronization
  • RealtimeIncremental: real-time incremental synchronization
  • Full: full synchronization
  • OfflineIncremental: batch incremental synchronization
  • FullAndOfflineIncremental: one-time full synchronization and batch incremental synchronization
FullAndRealtimeIncremental
SourceDataSourceTypestring

The source type. The value MySQL is returned.

Mysql
DestinationDataSourceTypestring

The destination type. Valid values: Hologres and Hive.

Hologres
JobStatusstring

The status of the synchronization task. Valid values:

  • Finished
  • Initialized
  • Stopped
  • Failed
  • Running
  • Stopping
Running

Examples

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history