Querying Information About a Specified Task
Function
This API is used to query the information about a specified task based on the task ID.
URI
GET /v2/{project_id}/fdi/instances/{instance_id}/tasks/{task_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Appendix > Obtaining a Project ID in the ROMA Connect API Reference. Minimum: 1 Maximum: 64 |
|
instance_id |
Yes |
String |
Instance ID. Minimum: 1 Maximum: 64 |
|
task_id |
Yes |
String |
Task ID, the unique identifier of a task. Minimum: 1 Maximum: 64 |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
task |
TaskBasicRsp object |
Brief information about a task. |
|
task_detail |
String |
Task details. For details about the parameter structure, see Data Integration Parameter Description > RawFormDataResponse in the Appendix. Minimum: 1 Maximum: 2147483647 |
|
Parameter |
Type |
Description |
|---|---|---|
|
task_id |
String |
Task ID. This parameter can be left empty. Minimum: 1 Maximum: 64 |
|
task_name |
String |
Task name. The value contains 3 to 100 characters, consisting of only letters, digits, periods (.), underscores (_), and hyphens (-). The value must start with a letter or digit. Minimum: 3 Maximum: 100 |
|
task_type |
String |
Task type.
Minimum: 1 Maximum: 10 |
|
status |
String |
Task status.
Minimum: 0 Maximum: 1 |
|
project_id |
String |
Project ID. Minimum: 1 Maximum: 64 |
|
source_datasource_id |
String |
Data source ID at the source. Minimum: 1 Maximum: 64 |
|
target_datasource_id |
String |
Data source ID at the destination. Minimum: 1 Maximum: 64 |
|
source_datasource_name |
String |
Name of the source data source. Minimum: 1 Maximum: 64 |
|
target_datasource_name |
String |
Name of the destination data source. Minimum: 1 Maximum: 64 |
|
source_app_id |
String |
ID of the integration application to which the source data source belongs. Minimum: 1 Maximum: 64 |
|
target_app_id |
String |
ID of the integration application to which the destination data source belongs. Minimum: 1 Maximum: 64 |
|
source_app_name |
String |
Name of the integration application to which the source data source belongs. Minimum: 1 Maximum: 64 |
|
target_app_name |
String |
Name of the integration application to which the destination data source belongs. Minimum: 1 Maximum: 64 |
|
created_date |
Integer |
Date created. Minimum: 0 Maximum: 99999999999999999999 |
|
last_modified_date |
Integer |
Last modification time. Minimum: 0 Maximum: 99999999999999999999 |
|
description |
String |
Description. Minimum: 1 Maximum: 1024 |
|
task_tag |
String |
Task tag, which can contain only letters, digits, hyphens (-), and underscores (_). Minimum: 4 Maximum: 64 |
|
created_by |
String |
Task creator. Minimum: 1 Maximum: 10000 |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. Minimum: 8 Maximum: 36 |
|
error_msg |
String |
Error message. Minimum: 2 Maximum: 512 |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. Minimum: 8 Maximum: 36 |
|
error_msg |
String |
Error message. Minimum: 2 Maximum: 512 |
Example Requests
None
Example Responses
Status code: 200
OK
-
Example 1
null
-
Example 2
{ "task_id" : "1db6229e0bb34d25ac3fef142d823a7d", "task_name" : "fdi_task", "task_type" : "timing", "project_id" : "c53626012ba84727b938ca8bf03108ef", "source_datasource_id" : "525e17795b23431fbe303b90b79c9893", "target_datasource_id" : "525e17795b23431fbe303b90b79c9893", "source_datasource_name" : "fdi_ds_mysqldingshi", "target_datasource_name" : "fdi_ds_mysqldingshi", "source_app_id" : "1dfad5a7-464c-40ef-93bd-66a24b12880d", "target_app_id" : "1dfad5a7-464c-40ef-93bd-66a24b12880d", "status" : "stop", "created_date" : 1619404588565 } -
Example 3
"{\"needAPI\":false,\"targetDsId\":\"525e17795b23431fbe303b90b79c9893\",\"sourceSelectedDatasource\":{\"extend_meta_data\":[],\"orderType\":\"ASC\",\"sourceDateColumn\":\"\",\"dataTimestamp\":\"\",\"sourceTable\":\"gaoxin_test.test_source\",\"sourceSelectedColumnList\":[{\"null_able\":\"0\",\"unique\":\"1\",\"field_length\":\"11\",\"field_type\":\"INT\",\"field_name\":\"id\"},{\"null_able\":\"1\",\"unique\":\"0\",\"field_length\":\"255\",\"field_type\":\"VARCHAR\",\"field_name\":\"name\"},{\"null_able\":\"1\",\"unique\":\"0\",\"field_length\":\"50\",\"field_type\":\"VARCHAR\",\"field_name\":\"picihao\"},{\"null_able\":\"1\",\"unique\":\"0\",\"field_length\":\"19\",\"field_type\":\"DATETIME\",\"field_name\":\"date\"}],\"isParse\":\"true\",\"querySql\":\"\",\"whereOptions\":[],\"instanceId\":\"05173009-2e5f-4773-8303-8e05cc9c9302\",\"sourceMetaData\":{\"dataSource\":[]},\"isAddSql\":false,\"meta_data\":[],\"where\":[],\"need_inc_migration\":false,\"textInputValue\":\"\",\"orderColumn\":\"\",\"isTextInput\":false},\"targetDatasource\":\"fdi_ds_mysqldingshi\",\"needEmailNew\":false,\"description\":\"\",\"mappingTableProperties\":[{\"sourceNullable\":\"0\",\"sourceUnique\":\"1\",\"targetUnique\":\"1\",\"targetNullable\":\"0\"},{\"sourceNullable\":\"1\",\"sourceUnique\":\"0\",\"targetUnique\":\"0\",\"targetNullable\":\"0\"},{\"sourceNullable\":\"1\",\"sourceUnique\":\"0\",\"targetUnique\":\"0\",\"targetNullable\":\"1\"}],\"sourceDatasourceType\":\"MYSQL\",\"taskType\":2,\"sourceDatasource\":\"fdi_ds_mysqldingshi\",\"targetDatasourceType\":\"MYSQL\",\"mappingSourceTextOrNot\":[{\"flag\":false},{\"flag\":false},{\"flag\":false}],\"mappingTable\":[{\"targetColumnType\":\"INT\",\"isAddDateMapping\":false,\"targetColumnLength\":\"11\",\"isAddMapping\":false,\"isAddBooleanMapping\":false,\"sourceColumnLength\":\"11\",\"targetColumn\":\"id\",\"sourceColumnType\":\"Int\",\"isAddFDIUUIDMapping\":false,\"sourceColumn\":\"id\"},{\"targetColumnType\":\"VARCHAR\",\"isAddDateMapping\":false,\"targetColumnLength\":\"255\",\"isAddMapping\":false,\"isAddBooleanMapping\":false,\"sourceColumnLength\":\"255\",\"targetColumn\":\"name\",\"sourceColumnType\":\"Varchar\",\"isAddFDIUUIDMapping\":false,\"sourceColumn\":\"name\"},{\"targetColumnType\":\"TIMESTAMP\",\"isAddDateMapping\":false,\"targetColumnLength\":\"19\",\"isAddMapping\":false,\"isAddBooleanMapping\":false,\"sourceColumnLength\":\"19\",\"targetColumn\":\"date\",\"sourceColumnType\":\"Datetime\",\"isAddFDIUUIDMapping\":false,\"sourceColumn\":\"date\"}],\"targetSelectedDatasource\":{\"targetNeedCreateTable\":false,\"targetSelectedColumnList\":[{\"null_able\":\"0\",\"unique\":\"1\",\"field_length\":\"11\",\"field_type\":\"INT\",\"field_name\":\"id\"},{\"null_able\":\"0\",\"unique\":\"0\",\"field_length\":\"255\",\"field_type\":\"VARCHAR\",\"field_name\":\"name\"},{\"null_able\":\"1\",\"unique\":\"0\",\"field_length\":\"19\",\"field_type\":\"TIMESTAMP\",\"field_name\":\"date\"}],\"supportPartUpdate\":false,\"targetTable\":\"gaoxin_test.test_target\",\"instanceId\":\"05173009-2e5f-4773-8303-8e05cc9c9302\",\"batch_number_style\":\"UUID\",\"isSupportClearTab\":false,\"batchNumber\":\"\"},\"taskName\":\"fdi_task_testaaa_1619433388307\",\"sourceDsId\":\"525e17795b23431fbe303b90b79c9893\",\"projectId\":\"c53626012ba84727b938ca8bf03108ef\",\"needMQS\":false,\"mappingInput\":{},\"mappingRequired\":true}"
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
404 |
Not Found |
|
500 |
Internal Server Error |
Error Codes
See Error Codes.
Last Article: Updating a Common Job
Next Article: Deleting a Task
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.