tencent cloud

Feedback

DescribeIntegrationTasks

Last updated: 2024-06-21 15:11:03

1. API Description

Domain name for API request: wedata.tencentcloudapi.com.

Query Integration Task List

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeIntegrationTasks.
Version Yes String Common Params. The value used for this API: 2021-08-20.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
ProjectId Yes String Project ID
PageNumber Yes Integer Page n of Pagination
PageSize Yes Integer Page size
Filters.N No Array of Filter Query Filter
OrderFields.N No Array of OrderField Sorting Field Information
StartTime No String Start Time
EndTime No String End time
TaskType No Integer 201. Real-time synchronization, 202. Offline Synchronization Default is real-time

3. Output Parameters

Parameter Name Type Description
TaskInfoSet Array of IntegrationTaskInfo Task ListNote: This field may return null, indicating that no valid value can be obtained.
TotalCount Integer Total Number of Tasks
Note: This field may return null, indicating that no valid value can be obtained.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Query Integration Task List

Query Integration Task List

Input Example

POST / HTTP/1.1
Host: wedata.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeIntegrationTasks
<Common request parameters>

{
    "Filters": [
        {
            "Name": "TaskId",
            "Values": [
                "t5c6f6968-97c0-4e40-b25b-8258c0170f48"
            ]
        }
    ],
    "ProjectId": "1486446569620893696",
    "OrderFields": [
        {
            "Name": "CreateTime",
            "Direction": "DESC"
        }
    ],
    "StartTime": "",
    "EndTime": "",
    "PageNumber": 1,
    "PageSize": 10,
    "TaskType": 201
}

Output Example

{
    "Response": {
        "TotalCount": 10,
        "TaskInfoSet": [
            {
                "TaskName": "testtaskname",
                "Description": "testdesc",
                "SyncType": 2,
                "TaskType": 202,
                "WorkflowId": "",
                "TaskId": "n11a6d01c-0ec6-4efc-bd14-97a921d01d3f",
                "ScheduleTaskId": "cql-hjlx38yl",
                "TaskGroupId": "a5d814828-452c-46f6-b128-19c1a3249bf0",
                "ProjectId": "1486446569620893696",
                "CreatorUin": "100022187073",
                "OperatorUin": "100022187073",
                "OwnerUin": "100022187073",
                "AppId": "1257305888",
                "Status": 3,
                "Nodes": [
                    {
                        "Id": "130973",
                        "TaskId": "n11a6d01c-0ec6-4efc-bd14-97a921d01d3f",
                        "Name": "nodeTestName",
                        "NodeType": "INPUT",
                        "DataSourceType": "MYSQL",
                        "Description": "testdesc",
                        "DatasourceId": "914840",
                        "Config": [
                            {
                                "Name": "Type",
                                "Value": "MYSQL"
                            },
                            {
                                "Name": "splitPk",
                                "Value": "id"
                            },
                            {
                                "Name": "Database",
                                "Value": "databasetestname"
                            },
                            {
                                "Name": "TableNames",
                                "Value": "tabletestname"
                            },
                            {
                                "Name": "PrimaryKey",
                                "Value": "id"
                            },
                            {
                                "Name": "isNew",
                                "Value": "true"
                            },
                            {
                                "Name": "PrimaryKey_INPUT_SYMBOL",
                                "Value": "input"
                            },
                            {
                                "Name": "splitPk_INPUT_SYMBOL",
                                "Value": "input"
                            },
                            {
                                "Name": "isClean",
                                "Value": "0"
                            },
                            {
                                "Name": "encoding",
                                "Value": "utf-8"
                            }
                        ],
                        "ExtConfig": [
                            {
                                "Name": "x",
                                "Value": "300"
                            },
                            {
                                "Name": "y",
                                "Value": "260"
                            },
                            {
                                "Name": "iconPosition",
                                "Value": "left"
                            },
                            {
                                "Name": "size",
                                "Value": "m"
                            }
                        ],
                        "Schema": [
                            {
                                "Type": "String",
                                "Alias": "name",
                                "Comment": "Name",
                                "Id": "616042880",
                                "Name": "name",
                                "Value": "nihao",
                                "Properties": [
                                    {
                                        "Name": "exttestname",
                                        "Value": "exttestvalue"
                                    }
                                ]
                            }
                        ],
                        "NodeMapping": {
                            "SourceId": "130973",
                            "SinkId": "130972",
                            "SourceSchema": [
                                {
                                    "Id": "597853056",
                                    "Name": "name",
                                    "Value": "test",
                                    "Type": "String",
                                    "Alias": "name",
                                    "Comment": "Name",
                                    "Properties": [
                                        {
                                            "Name": "exttestname",
                                            "Value": "exttestvalue"
                                        }
                                    ]
                                }
                            ],
                            "SchemaMappings": [
                                {
                                    "SourceSchemaId": "597853056",
                                    "SinkSchemaId": "616042880"
                                }
                            ],
                            "ExtConfig": [
                                {
                                    "Name": "Type",
                                    "Value": "MYSQL"
                                }
                            ]
                        },
                        "AppId": "1315051999",
                        "ProjectId": "1486446569620893696",
                        "CreatorUin": "100028644005",
                        "OperatorUin": "100028644005",
                        "OwnerUin": "100028644005",
                        "CreateTime": "2022-05-07 10:13:21",
                        "UpdateTime": "2022-05-07 10:13:21"
                    }
                ],
                "ExecutorId": "20220331190555092303",
                "Mappings": [
                    {
                        "SourceId": "130973",
                        "SinkId": "130972",
                        "SourceSchema": [
                            {
                                "Id": "597853056",
                                "Name": "name",
                                "Value": "test",
                                "Type": "String",
                                "Alias": "name",
                                "Comment": "Name",
                                "Properties": [
                                    {
                                        "Name": "exttestname",
                                        "Value": "exttestvalue"
                                    }
                                ]
                            }
                        ],
                        "SchemaMappings": [
                            {
                                "SourceSchemaId": "597853056",
                                "SinkSchemaId": "616042880"
                            }
                        ],
                        "ExtConfig": [
                            {
                                "Name": "ext key name",
                                "Value": "ext key value"
                            }
                        ]
                    }
                ],
                "TaskMode": "1",
                "Incharge": "100028625403",
                "OfflineTaskAddEntity": {
                    "WorkflowName": "",
                    "DependencyWorkflow": "",
                    "StartTime": "2024-04-10 00:00:00",
                    "EndTime": "2099-12-31 00:00:00",
                    "CycleType": 1,
                    "CycleStep": 5,
                    "DelayTime": 0,
                    "CrontabExpression": "",
                    "RetryWait": 3,
                    "Retriable": 1,
                    "TryLimit": 3,
                    "RunPriority": 6,
                    "ProductName": "DATA_INTEGRATION",
                    "SelfDepend": 3,
                    "TaskAction": "",
                    "ExecutionEndTime": "23:59",
                    "ExecutionStartTime": "00:00",
                    "TaskAutoSubmit": true,
                    "InstanceInitStrategy": "T+0"
                },
                "ExecutorGroupName": "Resource Group 01",
                "InLongManagerUrl": "172.16.64.68:8083",
                "InLongStreamId": "f8317843e-68f9-4373-914f-241d7200a9a4",
                "InLongManagerVersion": "v17",
                "DataProxyUrl": [
                    "172.16.64.68:8086"
                ],
                "Submit": true,
                "InputDatasourceType": "MYSQL",
                "OutputDatasourceType": "DLC",
                "NumRecordsIn": 1000,
                "NumRecordsOut": 1000,
                "ReaderDelay": 5,
                "NumRestarts": 2,
                "CreateTime": "2022-05-07 10:13:21",
                "UpdateTime": "2022-05-07 10:13:21",
                "LastRunTime": "2022-05-07 10:13:21",
                "StopTime": "2022-05-07 10:13:21",
                "HasVersion": true,
                "Locked": true,
                "Locker": "100022187073",
                "RunningCu": 2,
                "TaskAlarmRegularList": [
                    "1769,1768"
                ],
                "SwitchResource": 1,
                "ReadPhase": 0,
                "InstanceVersion": 12,
                "ArrangeSpaceTaskId": "20230112170349643",
                "OfflineTaskStatus": 1,
                "Config": [
                    {
                        "Name": "ext key name",
                        "Value": "ext key value"
                    }
                ],
                "ExtConfig": [
                    {
                        "Name": "ext key name",
                        "Value": "ext key value"
                    }
                ],
                "ExecuteContext": [
                    {
                        "Name": "ext key name",
                        "Value": "ext key value"
                    }
                ]
            }
        ],
        "RequestId": "ae90b19-209e-4acb-9f62-e2860dd810"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
AuthFailure CAM Signature/Authentication Error.
AuthFailure.SignatureExpire Not logged in or login has expired.
FailedOperation Operation Failure.
InternalError An internal error occurs.
InvalidParameter Parameter error.
InvalidParameterValue Parameter value error.
LimitExceeded Quota limit exceeded.
MissingParameter Missing Parameter Error.
OperationDenied Operation Rejected.
RequestLimitExceeded The number of requests exceeded the frequency limit.
ResourceInUse Resource Occupied.
ResourceInsufficient Insufficient resources.
ResourceNotFound The resource does not exist.
ResourceUnavailable Resource Unavailable.
UnauthorizedOperation Unauthorized Operation.
UnknownParameter Unknown parameter error.
UnsupportedOperation Operation not supported.