Querying a Task List
Function
This API is used to query a task list.
URI
GET /v2/{project_id}/fdi/instances/{instance_id}/tasks
|
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 |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
limit |
No |
Integer |
Number of records displayed on each page in pagination query. The maximum value is 1000. Minimum: 0 Maximum: 1000 |
|
offset |
No |
Integer |
Offset of pagination in pagination query. The query starts from this offset. If the offset is less than 0, the value is automatically converted to 0. Minimum: 0 Maximum: 20000 |
|
task_id |
No |
String |
Task ID. This parameter can be left empty. Minimum: 1 Maximum: 64 |
|
taks_name |
No |
String |
Task name for fuzzy match. This parameter can be left empty. Minimum: 1 Maximum: 64 |
|
status |
No |
Integer |
Task status. This parameter can be left empty.
Minimum: 0 Maximum: 1 |
|
task_type |
No |
String |
Task type.
Minimum: 0 Maximum: 10 |
|
source_datasource_id |
No |
String |
Data source ID at the source. This parameter can be left empty. Minimum: 1 Maximum: 64 |
|
target_datasource_id |
No |
String |
Data source ID at the destination. This parameter can be left empty. Minimum: 1 Maximum: 64 |
|
datasource_id |
No |
String |
Source or Data source ID at the destination. This parameter can be left empty. Minimum: 1 Maximum: 64 |
|
sort_field |
No |
String |
Sorting criteria for the query. Minimum: 1 Maximum: 64 |
|
sort_type |
No |
String |
Sorting type. This parameter can be left empty.
Minimum: 1 Maximum: 10 |
|
execute_status |
No |
String |
Execution status. This parameter can be left empty.
Minimum: 1 Maximum: 64 |
|
source_app_id |
No |
String |
ID of the integration application to which the source data source belongs. This parameter can be left empty. Minimum: 1 Maximum: 64 |
|
target_app_id |
No |
String |
ID of the integration application to which the destination data source belongs. This parameter can be left empty. Minimum: 1 Maximum: 64 |
|
task_tag |
No |
String |
Task tag. This parameter can be left empty. Minimum: 0 Maximum: 64 |
|
task_mode |
No |
String |
Task mode. If the value is left empty, all tasks are queried.
Minimum: 0 Maximum: 6 |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
total |
Long |
Total number of tasks in a task list queried. Minimum: 0 Maximum: 1000000 |
|
size |
Integer |
Number of tasks on the current page returned after the task list is queried. Minimum: 0 Maximum: 1000 |
|
entities |
Array of BriefTaskRespBean objects |
Object returned after the task list is queried. |
|
Parameter |
Type |
Description |
|---|---|---|
|
task_id |
String |
Task ID. Minimum: 1 Maximum: 64 |
|
task_name |
String |
Task name. Minimum: 1 Maximum: 64 |
|
task_type |
String |
Task type.
Minimum: 1 Maximum: 10 |
|
status |
Integer |
Task status.
Minimum: 0 Maximum: 1 |
|
created_date |
String |
Time when the task was created. |
|
version |
String |
Task version. Minimum: 0 Maximum: 10 |
|
last_modified_time |
Long |
Last modification time. Minimum: 1 Maximum: 9999999999999999999 |
|
execute_status |
String |
Task execution status.
Minimum: 1 Maximum: 64 |
|
source_app_id |
String |
ID of the application to which the source data source belongs. Minimum: 1 Maximum: 64 |
|
target_app_id |
String |
ID of the application to which the destination data source belongs. Minimum: 1 Maximum: 64 |
|
source_instance_id |
String |
ID of the source instance. Minimum: 1 Maximum: 64 |
|
target_instance_id |
String |
ID of the destination instance. Minimum: 1 Maximum: 64 |
|
ext_type |
String |
Composite task type. This parameter can be left empty. Minimum: 1 Maximum: 64 |
|
enterprise_project_id |
String |
Enterprise project ID. Minimum: 1 Maximum: 64 |
|
task_tag |
String |
Task tag. Minimum: 1 Maximum: 64 |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. Minimum: 8 Maximum: 36 |
|
error_msg |
String |
Error message. Minimum: 2 Maximum: 512 |
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
"100,"
-
Example 3
"1,"
-
Example 4
[ { "task_id" : "1db6229e0bb34d25ac3fef142d823a7d", "task_name" : "fdi_task_testaaa_1619433388307", "task_type" : "timing", "status" : 0, "start_datetime" : 1618995296086, "use_quartz_cron" : false, "execute_status" : "UNSTARTED", "source_app_id" : "1dfad5a7-464c-40ef-93bd-66a24b12880d", "target_app_id" : "1dfad5a7-464c-40ef-93bd-66a24b12880d", "source_app_name" : "app-gxtest_1619433387457", "target_app_name" : "app-gxtest_1619433387457", "source_instance_id" : "05173009-2e5f-4773-8303-8e05cc9c9302", "target_instance_id" : "05173009-2e5f-4773-8303-8e05cc9c9302", "enterprise_project_id" : "0", "source_ds_id" : "525e17795b23431fbe303b90b79c9893", "source_ds_type" : "MYSQL", "source_ds_name" : "fdi_ds_mysqldingshi", "target_ds_id" : "525e17795b23431fbe303b90b79c9893", "target_ds_type" : "MYSQL", "target_ds_name" : "fdi_ds_mysqldingshi", "version" : "1", "task_mode" : "NORMAL" } ]
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
400 |
Bad Request |
|
404 |
Not Found |
|
500 |
Internal Server Error |
Error Codes
See Error Codes.
Last Article: Creating a Common Task
Next Article: Updating a Common Job
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.