All Products
Search
Document Center

:GetMigrationProcess

更新時間:May 13, 2024

Queries the progress of a migration task.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action

String

Yes

GetMigrationProcess

The operation that you want to perform. Set the value to GetMigrationProcess.

ProjectId

Long

Yes

123456

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

MigrationId

Long

Yes

123456

The migration package ID. You can call the CreateImportMigration operation to query the ID.

Response parameters

Parameter

Type

Example

Description

HttpStatusCode

Integer

200

The HTTP status code.

RequestId

String

SADFSDFSD-SDFSDF-XDXCVX-ESWW

The request ID.

ErrorMessage

String

test error msg

The error message.

Success

Boolean

true

Indicates whether the request was successful.

ErrorCode

String

110001123456

The error code.

Data

Array of ProgressTaskItem

The progress information of the migration task, including the names of all steps in and status of the migration task.

TaskStatus

String

SUCCESS

The running status of the step in the migration task. Valid values:

  • INT

  • RUNNING

  • FAILURE

  • SUCCESS

TaskName

String

IMPORE_PREPARE

The name of the step in the migration task.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetMigrationProcess
&ProjectId=123456
&MigrationId=123456
&<Common request parameters>

Sample success responses

XML format

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

<GetMigrationProcessResponse>
    <HttpStatusCode>200</HttpStatusCode>
    <RequestId>SADFSDFSD-SDFSDF-XDXCVX-ESWW</RequestId>
    <ErrorMessage>test error msg</ErrorMessage>
    <Success>true</Success>
    <ErrorCode>110001123456</ErrorCode>
    <Data>
        <TaskStatus>SUCCESS</TaskStatus>
        <TaskName>IMPORE_PREPARE</TaskName>
    </Data>
</GetMigrationProcessResponse>

JSON format

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

{
  "HttpStatusCode" : 200,
  "RequestId" : "SADFSDFSD-SDFSDF-XDXCVX-ESWW",
  "ErrorMessage" : "test error msg",
  "Success" : true,
  "ErrorCode" : "110001123456",
  "Data" : [ {
    "TaskStatus" : "SUCCESS",
    "TaskName" : "IMPORE_PREPARE"
  } ]
}

Error codes

For a list of error codes, see Service error codes.