All Products
Search
Document Center

DataWorks:GetDISyncInstanceInfo

Last Updated:Nov 21, 2024

Queries the status of a real-time synchronization task or a data synchronization solution.

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
ProjectIdlongYes

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

You must configure this parameter to specify the DataWorks workspace to which the API operation is applied.

10000
TaskTypestringYes

The type of the object that you want to query. Valid values:

  • DI_REALTIME: real-time synchronization task
  • DI_SOLUTION: data synchronization solution
DI_REALTIME
FileIdlongYes
  • If you set the TaskType parameter to DI_REALTIME, set the FileId parameter to the ID of the real-time synchronization task that you want to query.
  • If you set the TaskType parameter to DI_SOLUTION, set the FileId parameter to the ID of the data synchronization solution that you want to query.

You can call the ListFiles operation to query the ID of the real-time synchronization task or data synchronization solution.

100

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
RequestIdstring

The request ID.

0bc1411515937635973****
Dataobject

The status of the real-time synchronization task or data synchronization solution.

Statusstring
  • If the TaskType parameter is set to DI_REALTIME, the Status parameter indicates the status of the real-time synchronization task. Valid values: PAUSE, NORUN, RUN, KILLING, and WAIT.
  • If the TaskType parameter is set to DI_SOLUTION, the Status parameter indicates the status of the data synchronization solution. Valid values: success and fail.
RUN
Messagestring

The cause of the failure to obtain the status of the real-time synchronization task or data synchronization solution. If the status of the real-time synchronization task or data synchronization solution is obtained, the value null is returned.

fileId[100] is invalid
Namestring
  • If the TaskType parameter is set to DI_REALTIME, the Name parameter indicates the name of the real-time synchronization task.
  • If the TaskType parameter is set to DI_SOLUTION, the value null is returned.
streamx_name
SolutionInfoobject
  • If the TaskType parameter is set to DI_REALTIME, the value null is returned.
  • If the TaskType parameter is set to DI_SOLUTION, the SolutionInfo parameter indicates the details of the data synchronization solution.
Statusstring

The status of the data synchronization solution.

run
Idlong

The ID of the data synchronization solution.

100
CreatorNamestring

The creator of the data synchronization solution.

dataworks_3h1
StepDetailarray<object>

The step details of the data synchronization solution.

StepDetailobject
Statusstring

The status of the step in the data synchronization solution.

success
StepIdlong

The ID of the step in the data synchronization solution.

1
StepNamestring

The name of the step in the data synchronization solution.

Infostring

The information of the data synchronization solution.

Examples

Sample success responses

JSONformat

{
  "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": "",
          "Info": ""
        }
      ]
    }
  }
}

Error codes

HTTP status codeError codeError messageDescription
400Param.InvalidThe parameter is invalid.Param invalid
403Forbidden.AccessAccess is forbidden.-
500InternalError.SystemAn internal error occurred.InternalError

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