ListRefDISyncTasks

Updated at:

Queries the data integration synchronization tasks associated with the target data source.

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

ProjectId

integer

Yes

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

10000

DatasourceName

string

Yes

The name of the target data source that you want to query. You can call the ListDataSources operation to obtain the data source name.

mysql_datasource

TaskType

string

Yes

The type of the data integration synchronization task associated with the target data source. Valid values:

  • DI_OFFLINE: Batch data integration synchronization task.

  • DI_REALTIME: Real-time data integration synchronization task.

DI_OFFLINE

RefType

string

Yes

Specifies the role of the target data source in the data integration synchronization task. Valid values:

  • from: The target data source serves as the source of the data integration synchronization task.

  • to: The target data source serves as the destination of the data integration synchronization task.

from

PageNumber

integer

No

The page number. Valid values: 1 to 100.

11

PageSize

integer

No

The number of entries to return on each page.

50

Response elements

Element

Type

Description

Example

object

Success

boolean

Indicates whether the request was successful. Valid values:

  • true: Successful.

  • false: Failed.

true

RequestId

string

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

0bc1411515937635973****

Data

object

The returned data.

DISyncTasks

array<object>

The array of returned data. Typically, a target data source is associated with multiple data integration synchronization tasks. When you call the ListRefDISyncTasks operation to query the synchronization tasks associated with the target data source, the returned result is an array of the associated synchronization tasks. The following information is an example of a synchronization task in the array.

object

The array of returned data. Typically, a target data source is associated with multiple data integration synchronization tasks. When you call the ListRefDISyncTasks operation to query the synchronization tasks associated with the target data source, the returned result is an array of the associated synchronization tasks. The following information is an example of a synchronization task in the array.

DiSourceDatasource

string

The source data source of the current synchronization task associated with the target data source. If the current synchronization task has multiple source data sources, multiple source data sources are returned in a JSON array, such as ["odps_writer", "mysql"]. If the RefType parameter is set to from, which means the target data source serves as the source of the data integration synchronization task, the value of this parameter is the target data source itself.

[\"odps_writer\"]

TaskType

string

The type of the current data integration synchronization task associated with the target data source. Valid values:

  • DI_OFFLINE: Batch data integration synchronization task.

  • DI_REALTIME: Real-time data integration synchronization task.

DI_OFFLINE

DiDestinationDatasource

string

The destination data source of the current synchronization task associated with the target data source. If the current synchronization task has multiple destination data sources, multiple destination data sources are returned in a JSON array, such as ["odps_writer", "mysql"]. If the RefType parameter is set to to, which means the target data source serves as the destination of the data integration synchronization task, the value of this parameter is the target data source itself.

[\"qcc_polardb2\"]

NodeName

string

The name of the current data integration synchronization task associated with the target data source.

abcd1234

NodeId

integer

The ID of the current data integration synchronization task associated with the target data source.

100000

Examples

Success response

JSON format

{
  "Success": true,
  "RequestId": "0bc1411515937635973****",
  "Data": {
    "DISyncTasks": [
      {
        "DiSourceDatasource": "[\\\"odps_writer\\\"]",
        "TaskType": "DI_OFFLINE",
        "DiDestinationDatasource": "[\\\"qcc_polardb2\\\"]",
        "NodeName": "abcd1234",
        "NodeId": 100000
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 Invalid.DI.Parameter The parameter is invalid. The parameter is invalid.
400 Invalid.DI.Parameter.File.Existed The file name already exists. The parameter is invalid. The file name already exists.
500 InternalError.DI.Parameter A DI internal error occurred. A Data Integration internal business error occurred.
403 Forbidden.DI.NoPrivilege No access. Access denied.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.