tencent cloud

Feedback

CreateIntegrationTask

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

1. API Description

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

Create Integration Task

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: CreateIntegrationTask.
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.
TaskInfo Yes IntegrationTaskInfo Task Information
ProjectId Yes String Project ID

3. Output Parameters

Parameter Name Type Description
TaskId String Task ID
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 Create Integration Task

Create Integration Task

Input Example

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

{
    "ProjectId": "17865298918277529",
    "TaskInfo": {
        "TaskGroupId": "i06c73547-eca5-4bc9-849d-b4bfaaf279",
        "Status": 0,
        "WorkflowId": "12345 (Only for offline tasks)",
        "Description": "A self-definition description of the task",
        "CreatorUin": "100006386216",
        "SyncType": 0,
        "ProjectId": "17865298918277529",
        "OwnerUin": "100006386216",
        "ExecuteContext": [
            {
                "Name": "-",
                "Value": "-"
            }
        ],
        "ScheduleTaskId": "12345678",
        "TaskType": 0,
        "AppId": "57234323",
        "ExecutorId": "1347534",
        "TaskId": "015235-2adc2d-372dasd-5273",
        "OperatorUin": "100006386235",
        "Nodes": [
            {
                "NodeType": "INPUT",
                "Description": "test",
                "CreatorUin": "100006386235",
                "DataSourceType": "MYSQL",
                "ProjectId": "17865298918277529",
                "OwnerUin": "100006386235",
                "ExtConfig": [
                    {
                        "Name": "test-name",
                        "Value": "test-value"
                    }
                ],
                "DatasourceId": "1237582840",
                "NodeMapping": {
                    "SourceId": "1",
                    "SchemaMappings": [
                        {
                            "SinkSchemaId": "2",
                            "SourceSchemaId": "3"
                        }
                    ],
                    "SinkId": "2",
                    "SourceSchema": [
                        {
                            "Type": "String",
                            "Id": "123",
                            "Value": "test",
                            "Name": "name"
                        }
                    ]
                },
                "TaskId": "015235-2adc2d-372dasd-5274",
                "AppId": "57234323",
                "Schema": [
                    {
                        "Type": "String",
                        "Id": "134",
                        "Value": "test2",
                        "Name": "name2"
                    }
                ],
                "Config": [
                    {
                        "Name": "config0",
                        "Value": "value0"
                    }
                ],
                "Id": "123456",
                "OperatorUin": "100006386235",
                "Name": "name"
            }
        ],
        "ExtConfig": [
            {
                "Name": "name0",
                "Value": "value0"
            }
        ],
        "Config": [
            {
                "Name": "config-name-0",
                "Value": "config-value-09"
            }
        ],
        "TaskName": "task-2",
        "Mappings": [
            {
                "SourceId": "1",
                "SchemaMappings": [
                    {
                        "SinkSchemaId": "2",
                        "SourceSchemaId": "3"
                    }
                ],
                "SinkId": "2",
                "SourceSchema": [
                    {
                        "Type": "String",
                        "Id": "123",
                        "Value": "test",
                        "Name": "name"
                    }
                ]
            }
        ]
    }
}

Output Example

{
    "Response": {
        "RequestId": "abcdefg-1234-32415-asd23f",
        "TaskId": "015235-2adc2d-372dasd-5274"
    }
}

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.
Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support