List the steps of a DTS task

Updated at:

Lists the steps of a DTS migration or sync task.

Test

You can run this operation in OpenAPI Explorer without manually calculating the signature. OpenAPI Explorer automatically generates SDK code examples after a successful call.

Request parameters

Name

Type

Required

Example

Description

Action String Yes ListJobStep

Required. Set the value to ListJobStep.

DtsJobId String Yes k2gm967v16f****

The ID of the migration or sync task.

RegionId String No cn-hangzhou

The region ID of the DTS instance. For more information, see List of supported regions.

ZeroEtlJob Boolean No true

Specifies whether the task is a seamless integration (Zero-ETL) task. Valid values:

  • true: Yes.
  • false: No.
ResourceGroupId String No rg-aek3dcgyq7p****

The ID of the resource group.

Response parameters

Name

Type

Example

Description

Success Boolean true

Indicates whether the request is successful.

HttpStatusCode Integer 200

The HTTP status code.

RequestId String 621BB4F8-3016-4FAA-8D5A-5D3163CC****

The request ID.

Code String 200

The error code.

UseV2API Boolean True

Indicates whether the Console 2.0 API is used.

JobSteps Array of JobStep

The information about the task steps.

JobStepId String l02c1f7h179****

The ID of the task step.

JobStepName String Precheck

The name of the task step. Valid values:

  • Precheck: The precheck step.
  • Incremental DataService: The incremental data collection step.
  • dts.step.struct.load: The schema migration step.
  • dts.step.data.load: The full migration step.
  • etl-check: The ETL step.
  • Data Validation: The data validation step.
  • Sync: The incremental synchronization step.
Code String 01

The identifier of the task step.

Serial Integer 1

The serial number of the task step. Steps are executed in ascending order of their serial numbers.

Progress Integer 100

The progress of the task step.

SubJobCount Integer 1

The number of subtasks.

IncLatencySeconds Long -1

The data latency of incremental data. Unit: seconds.

State String ○ Finished

The state of the task step.

ErrMsg String fullcheck find different records : 2372

The error message.

SubJobSteps Array of subJobStep

The information about the steps of the subtask.

JobStepId String mj3z9w9s10am68o_0004_0000

The task ID.

JobStepName String test

The name of the subtask step. Valid values:

  • Precheck: The precheck step.
  • Incremental DataService: The incremental data collection step.
  • dts.step.struct.load: The schema migration step.
  • dts.step.data.load: The full migration step.
  • etl-check: The ETL step.
  • Data Validation: The data validation step.
  • Sync: The incremental synchronization step.
Code String 03

The identifier of the subtask step.

Serial Integer 123

The serial number of the subtask step. Steps are executed in ascending order of their serial numbers.

Progress Integer 0

The progress of the subtask step.

IncLatencySeconds Long 1

The data latency of incremental data. Unit: seconds.

State String running

The state of the subtask step. Valid values:

  • Failed: The subtask failed.
  • Pause: The subtask is paused.
  • Schedule: The subtask is being scheduled.
  • Init: The subtask is being initialized.
  • Running: The subtask is running.
  • Catched: The subtask is waiting to be synchronized.
  • Finished: The subtask is finished.
ErrMsg String UncaughtException:java.lang.NullPointerException

The error message.

CreateTime String 2024-09-20T02:13:12Z

The time when the subtask was created, in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

BootTime String 2025-01-02T02:00:21Z

The time when the subtask was started, in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

FinishTime String 2024-03-15T02:15:14Z

The time when the subtask was finished, in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

ModifyTime String 2024-08-22T02:04:35Z

The time when the subtask was last modified, in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

ErrorDetails Array of ErrorDetail

The error message.

ErrorCode String Success

The error code.

HelpUrl String ****

The URL of the help document.

IncLatencyMilliseconds String 1

The data latency of incremental data. Unit: milliseconds.

NeedAcceleration Boolean true

Indicates whether the acceleration feature is available.

CreateTime String 2023-11-28T17:13:51Z

The time when the task was created, in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

BootTime String 2024-04-11T09:33:23Z

The time when the task was started, in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

FinishTime String 2024-03-15T02:15:14Z

The time when the task was finished, in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

ModifyTime String 2025-01-03T02:26:14Z

The time when the task was last modified, in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

ErrorDetails Array of ErrorDetail

The error message.

ErrorCode String 200

The error code.

HelpUrl String ****

The URL of the help document.

IncLatencyMilliseconds Long 1

The data latency of incremental data. Unit: milliseconds.

NeedAcceleration Boolean true

Indicates whether the acceleration feature is available.

redisPhaseType String full

The phase of the Redis task. Valid values:

  • full: The full phase.
  • inc: The incremental phase.

Examples

Request example

http(s)://[Endpoint]/?Action=ListJobStep
&DtsJobId=k2gm967v16f****
&RegionId=cn-hangzhou
&ZeroEtlJob=true
&ResourceGroupId=rg-aek3dcgyq7p****
&<Common request parameters>

Response example

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListJobStepResponse>
    <Success>true</Success>
    <HttpStatusCode>200</HttpStatusCode>
    <RequestId>621BB4F8-3016-4FAA-8D5A-5D3163CC****</RequestId>
    <Code>200</Code>
    <UseV2API>true</UseV2API>
    <JobSteps>
        <JobStepId>l02c1f7h179****</JobStepId>
        <JobStepName>Precheck</JobStepName>
        <Code>01</Code>
        <Serial>1</Serial>
        <Progress>100</Progress>
        <SubJobCount>1</SubJobCount>
        <IncLatencySeconds>-1</IncLatencySeconds>
        <State>○ Finished</State>
        <ErrMsg>fullcheck find different records : 2372</ErrMsg>
        <SubJobSteps>
            <JobStepId>mj3z9w9s10am68o_0004_0000</JobStepId>
            <JobStepName>test</JobStepName>
            <Code>03</Code>
            <Serial>123</Serial>
            <Progress>0</Progress>
            <IncLatencySeconds>1</IncLatencySeconds>
            <State>running</State>
            <ErrMsg>UncaughtException:java.lang.NullPointerException</ErrMsg>
            <CreateTime>2024-09-20T02:13:12Z</CreateTime>
            <BootTime>2025-01-02T02:00:21Z</BootTime>
            <FinishTime>2024-03-15T02:15:14Z</FinishTime>
            <ModifyTime>2024-08-22T02:04:35Z</ModifyTime>
            <ErrorDetails>
                <ErrorCode>Success</ErrorCode>
                <HelpUrl>****</HelpUrl>
            </ErrorDetails>
            <IncLatencyMilliseconds>1</IncLatencyMilliseconds>
            <NeedAcceleration>true</NeedAcceleration>
        </SubJobSteps>
        <CreateTime>2023-11-28T17:13:51Z</CreateTime>
        <BootTime>2024-04-11T09:33:23Z</BootTime>
        <FinishTime>2024-03-15T02:15:14Z</FinishTime>
        <ModifyTime>2025-01-03T02:26:14Z</ModifyTime>
        <ErrorDetails>
            <ErrorCode>200</ErrorCode>
            <HelpUrl>****</HelpUrl>
        </ErrorDetails>
        <IncLatencyMilliseconds>1</IncLatencyMilliseconds>
        <NeedAcceleration>true</NeedAcceleration>
    </JobSteps>
</ListJobStepResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Success" : true,
  "HttpStatusCode" : 200,
  "RequestId" : "621BB4F8-3016-4FAA-8D5A-5D3163CC****",
  "Code" : "200",
  "UseV2API" : true,
  "JobSteps" : [ {
    "JobStepId" : "l02c1f7h179****",
    "JobStepName" : "Precheck",
    "Code" : "01",
    "Serial" : 1,
    "Progress" : 100,
    "SubJobCount" : 1,
    "IncLatencySeconds" : -1,
    "State" : "○ Finished",
    "ErrMsg" : "fullcheck find different records : 2372",
    "SubJobSteps" : [ {
      "JobStepId" : "mj3z9w9s10am68o_0004_0000",
      "JobStepName" : "test",
      "Code" : "03",
      "Serial" : 123,
      "Progress" : 0,
      "IncLatencySeconds" : 1,
      "State" : "running",
      "ErrMsg" : "UncaughtException:java.lang.NullPointerException",
      "CreateTime" : "2024-09-20T02:13:12Z",
      "BootTime" : "2025-01-02T02:00:21Z",
      "FinishTime" : "2024-03-15T02:15:14Z",
      "ModifyTime" : "2024-08-22T02:04:35Z",
      "ErrorDetails" : [ {
        "ErrorCode" : "Success",
        "HelpUrl" : "****"
      } ],
      "IncLatencyMilliseconds" : "1",
      "NeedAcceleration" : true
    } ],
    "CreateTime" : "2023-11-28T17:13:51Z",
    "BootTime" : "2024-04-11T09:33:23Z",
    "FinishTime" : "2024-03-15T02:15:14Z",
    "ModifyTime" : "2025-01-03T02:26:14Z",
    "ErrorDetails" : [ {
      "ErrorCode" : "200",
      "HelpUrl" : "****"
    } ],
    "IncLatencyMilliseconds" : 1,
    "NeedAcceleration" : true
  } ]
}

Error codes

HttpCode

Error code

Error message

Description

400 Throttling.User Request was denied due to user flow control. The request is denied because the request frequency exceeds the throttling threshold. Try again later.
403 InvalidSecurityToken.Expired Specified SecurityToken is expired. The signature has expired. Update the signature.
500 ServiceUnavailable The request has failed due to a temporary failure of the server. The request failed because the server timed out or is unavailable. Retry the request. If the issue persists, contact technical support.

For more information about error codes, see the Error Center.