Queries migration tasks.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | ListMigrations | The operation that you want to perform. Set the value to ListMigrations. |
| ProjectId | Long | Yes | 12345 | The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to obtain the ID. |
| MigrationType | String | Yes | IMPORT | The migration task type. Valid values: IMPORT and EXPORT. |
| Owner | String | No | 193379**** | The owner ID. |
| PageNumber | Integer | No | 1 | The page number. Default value: 1. Maximum value: 100. |
| PageSize | Integer | No | 10 | The number of entries per page. Default value: 10. Maximum value: 100. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | F9198AA3-9010-53D5-9714-DC4461427D3E | The request ID. |
| Success | Boolean | true | Indicates whether the request was successful. Valid values:
|
| Data | Object | The data returned. | |
| Migrations | Array of Migration | The list of migration tasks. | |
| Id | Long | 436064 | The primary key ID. |
| Name | String | test_task_1638498642279 | The name of the migration task. |
| PackageType | String | DATAWORKS_MODEL | The type of the import or export package. Valid values:
The DWMA and DATAWORKS_MODEL types are interchangeable. |
| MigrationType | String | EXPORT | The type of the migration task.
|
| CreateTime | Long | 123124123123123 | The time when the migration task was created. |
| UpdateTime | Long | 123123123123123 | The time when the migration task was last updated. |
| CreateUser | String | 123123**** | The ID of the user who created the migration task. |
| CreateUserName | String | 3h1_test | The name of the user who created the migration task. |
| UpdateUser | String | 1231**** | The ID of the user who last updated the migration task. |
| UpdateUserName | String | 3h1_test | The name of the user who last updated the migration task. |
| ProjectId | Long | 72132 | The ID of the DataWorks workspace to which the migration task belongs. |
| TenantId | Long | 16307 | The tenant ID. |
| Status | String | SUCCESS | The status of the migration task. Valid values:
|
| Message | String | An internal system error occurred. datasource kafka region is not cn-chengdu, can't open network for it | The error message. |
| DownloadUrl | String | http://geoip-sdk-user.oss-cn-zhangjiakou.aliyuncs.com/product/v1/ipv4/trace/v1.20220424123842.dex?Expires=1650780849&OSSAccessKeyId=XXXXXXeF4Lv5j&Signature=qxxxxx | The URL that is used to download the package of the export task. You can use the URL to download the package of the export task. |
| Description | String | Creation of an automated test task | The description of the export task. |
| PageNumber | Integer | 1 | The page number. |
| PageSize | Integer | 10 | The number of entries per page. Default value: 10. Maximum value: 50. |
| TotalCount | Integer | 20 | The total number of entries. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListMigrations
&ProjectId=12345
&MigrationType=IMPORT
&Owner=193379****
&PageNumber=1
&PageSize=10
&<Common request parameters>Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListMigrationsResponse>
<RequestId>F9198AA3-9010-53D5-9714-DC4461427D3E</RequestId>
<Success>true</Success>
<Data>
<Migrations>
<Id>436064</Id>
<Name>test_task_1638498642279</Name>
<PackageType>DATAWORKS_MODEL</PackageType>
<MigrationType>EXPORT</MigrationType>
<CreateTime>123124123123123</CreateTime>
<UpdateTime>123123123123123</UpdateTime>
<CreateUser>123123****</CreateUser>
<CreateUserName>3h1_test</CreateUserName>
<UpdateUser>1231****</UpdateUser>
<UpdateUserName>3h1_test</UpdateUserName>
<ProjectId>72132</ProjectId>
<TenantId>16307</TenantId>
<Status>SUCCESS</Status>
<Message>An internal system error occurred. datasource kafka region is not cn-chengdu, can't open network for it</Message>
<DownloadUrl>http://geoip-sdk-user.oss-cn-zhangjiakou.aliyuncs.com/product/v1/ipv4/trace/v1.20220424123842.dex?Expires=1650780849&OSSAccessKeyId=XXXXXXeF4Lv5j&Signature=qxxxxx</DownloadUrl>
<Description>Creation of an automated test task</Description>
</Migrations>
<PageNumber>1</PageNumber>
<PageSize>10</PageSize>
<TotalCount>20</TotalCount>
</Data>
</ListMigrationsResponse>JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "F9198AA3-9010-53D5-9714-DC4461427D3E",
"Success" : true,
"Data" : {
"Migrations" : {
"Id" : 436064,
"Name" : "test_task_1638498642279",
"PackageType" : "DATAWORKS_MODEL",
"MigrationType" : "EXPORT",
"CreateTime" : 123124123123123,
"UpdateTime" : 123123123123123,
"CreateUser" : "123123****",
"CreateUserName" : "3h1_test",
"UpdateUser" : "1231****",
"UpdateUserName" : "3h1_test",
"ProjectId" : 72132,
"TenantId" : 16307,
"Status" : "SUCCESS",
"Message" : "An internal system error occurred. datasource kafka region is not cn-chengdu, can't open network for it",
"DownloadUrl" : "http://geoip-sdk-user.oss-cn-zhangjiakou.aliyuncs.com/product/v1/ipv4/trace/v1.20220424123842.dex?Expires=1650780849&OSSAccessKeyId=XXXXXXeF4Lv5j&Signature=qxxxxx",
"Description" : "Creation of an automated test task"
},
"PageNumber" : 1,
"PageSize" : 10,
"TotalCount" : 20
}
}Error codes
For a list of error codes, see Service error codes.