GetDISyncInstanceInfo

Updated at:

Retrieves the running status of real-time synchronization tasks and synchronization solution tasks.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dataworks:*

get

*All Resource

*

None None

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 ID.

This parameter specifies the DataWorks workspace for the current API invoke operation.

10000

TaskType

string

Yes

The type of the Data Integration synchronization task associated with the destination data source. Valid values:

  • DI_REALTIME: real-time Data Integration synchronization node.

  • DI_SOLUTION: Data Integration synchronization solution.

DI_REALTIME

FileId

integer

Yes

  • If TaskType is set to DI_REALTIME, FileId is the file ID of the real-time synchronization task.

  • If TaskType is set to DI_SOLUTION, FileId is the task ID of the synchronization solution.

You can invoke the ListFiles operation to obtain the node ID.

100

Response elements

Element

Type

Description

Example

object

The data structure returned for the Data Integration synchronization task.

Success

boolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.

  • false: The request failed.

true

RequestId

string

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

0bc1411515937635973****

Data

object

The running status of the synchronization task.

Status

string

  • If TaskType is set to DI_REALTIME, Status indicates the running status of the real-time task. Valid values: PAUSE, NORUN, RUN, KILLING, and WAIT.

  • If TaskType is set to DI_SOLUTION, Status indicates the running status of the synchronization solution. Valid values: success and fail.

RUN

Message

string

The description of the failure cause when retrieving the running status of the synchronization task. If the running status of the Data Integration synchronization task is successfully retrieved, this parameter is empty.

fileId[100] is invalid

Name

string

  • If TaskType is set to DI_REALTIME, Name is the name of the real-time synchronization task.

  • If TaskType is set to DI_SOLUTION, Name is empty.

streamx_name

SolutionInfo

object

  • If TaskType is set to DI_REALTIME, SolutionInfo is empty.

  • If TaskType is set to DI_SOLUTION, SolutionInfo contains the execution details of the synchronization solution.

Status

string

The running status of the synchronization solution.

run

Id

integer

The task ID of the synchronization solution.

100

CreatorName

string

The name of the creator of the synchronization solution task.

dataworks_3h1

StepDetail

array<object>

The details of the execution steps for the synchronization solution task.

object

The data structure returned for the Data Integration synchronization task.

Status

string

The status of the execution step for the synchronization solution.

success

StepId

integer

The ID of the execution step for the synchronization solution.

1

StepName

string

The name of the execution step for the synchronization solution.

Create a base table

Info

string

The running information of the synchronization solution.

{\"fusionProps\":{\"dataSource\":[{\"fileName\":\"holo_20221020161613\",\"status\":\"SUCCESS\"}]},\"customProps\":{\"showSN\":true,\"columns\":[{\"dataIndex\":\"fileName\",\"width\":0.8,\"title\":\"Real-time synchronization name\"},{\"dataIndex\":\"status\",\"width\":0.2,\"title\":\"Status\"}]},\"componentName\":\"Table\"}

Examples

Success response

JSON format

{
  "Success": true,
  "RequestId": "0bc1411515937635973****",
  "Data": {
    "Status": "RUN",
    "Message": "fileId[100] is invalid",
    "Name": "streamx_name",
    "SolutionInfo": {
      "Status": "run",
      "Id": 100,
      "CreatorName": "dataworks_3h1",
      "StepDetail": [
        {
          "Status": "success",
          "StepId": 1,
          "StepName": "Create a base table",
          "Info": "{\\\"fusionProps\\\":{\\\"dataSource\\\":[{\\\"fileName\\\":\\\"holo_20221020161613\\\",\\\"status\\\":\\\"SUCCESS\\\"}]},\\\"customProps\\\":{\\\"showSN\\\":true,\\\"columns\\\":[{\\\"dataIndex\\\":\\\"fileName\\\",\\\"width\\\":0.8,\\\"title\\\":\\\"Real-time synchronization name\\\"},{\\\"dataIndex\\\":\\\"status\\\",\\\"width\\\":0.2,\\\"title\\\":\\\"Status\\\"}]},\\\"componentName\\\":\\\"Table\\\"}"
        }
      ]
    }
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 Param.Invalid The parameter is invalid. Param invalid
500 InternalError.System An internal error occurred. InternalError
403 Forbidden.Access Access is forbidden.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.