You need to enable JavaScript to run this app.
导航
DescribeTransmissionTaskInfo
最近更新时间:2024.05.14 15:53:02首次发布时间:2023.03.29 20:40:33

调用 DescribeTransmissionTaskInfo 接口查看传输任务详情。

请求类型

同步请求。

请求参数

名称类型是否必选示例值描述

TaskId

String

4ddec6d036384248a25862fb********

任务 ID。

说明

您可以调用 DescribeTransmissionTasks 接口查询任务 ID。

返回参数

名称类型示例值描述

TaskInfo

TaskInfo

{
    "ChargeDetail":{
        "ChargeStatus":"Init",
        "ChargeType":"PostPaid",
        "OrderNo":""
    },
    "CreateTime":1661242976288,
    "DestConfig":{
        "DataSourceId":"322",
        "EndpointType":"Volc_Kafka",
        "VolcKafkaSettings":{
            "AuthType":"PLAIN",
            "InstanceId":"kafka-cnngfsm7glfm****",
            "InstanceName":"",
            "Password":"******",
            "RegionSettings":{
                "Region":""
            },
            "Topic":"hua",
            "Username":"kakatest****"
        }
    },
    "EnableCloudMonitor":true,
    "EndTime":0,
    "ProjectName":"default",
    "SolutionSettings":{
        "PG2KafkaSettings":{
            "ErrorBehaviorSettings":{
                "MaxRetrySeconds":7200
            },
            "FullTransmissionSettings":{
                "EnableFull":false
            },
            "IncrTransmissionSettings":{
                "EnableIncr":true,
                "Statements":[
                    "StmtDMLInsert",
                    "StmtDMLUpdate",
                    "StmtDMLDelete",
                    "StmtDDLAll"
                ]
            },
            "MetaTransmissionSettings":{
                "EnableMeta":false
            },
            "ObjectMappings":[
                {
                    "DestObjName":"public",
                    "MappingList":[
                        {
                            "DestObjName":"*",
                            "ObjectType":"Table",
                            "SrcObjName":"*"
                        }
                    ],
                    "ObjectType":"Database",
                    "SrcObjName":"public"
                }
            ],
            "SubscriptionSettings":{
                "PartitionPolicy":"P0",
                "Protocol":"Volc",
                "VPCId":"vpc-bp1opxu1zkhn00gz****",
                "VPCSubnetId":""
            }
        },
        "SolutionType":"PG2Kafka"
    },
    "SrcConfig":{
        "DataSourceId":"321",
        "EndpointType":"Volc_PostgreSQL",
        "VolcPostgreSQLSettings":{
            "DBInstanceId":"postgres-338f4f3a****",
            "DBInstanceName":"",
            "DBName":"test****zaizai",
            "Password":"******",
            "RegionSettings":{
                "Region":"cn-beijing"
            },
            "Username":"test****zaizai"
        }
    },
    "StartTime":1661242976288,
    "TaskId":"c37008625ddd44019ee85b84fb******",
    "TaskName":"test****zaizai",
    "TaskStatus":"Init",
    "TaskSubType":"Default",
    "TaskType":"DataSubscription",
    "TenantId":"2100157781",
    "TrafficSpec":"Compact"
}

任务的详细信息。详细信息,请参见 TaskInfo

请求示例

POST /?Action=DescribeTransmissionTaskInfo&Version=2022-10-01 HTTP/1.1
Content-Type: application/json
Host:dts.volcengineapi.com
X-Date: 20221001T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20221001/cn-beijing/dts/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c645****


{
    "TaskId": "c37008625ddd44019ee85b84fb*****"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20230320101845AB32F20DFC215A10B4A9",
        "Action": "DescribeTransmissionTaskInfo",
        "Version": "2022-10-01",
        "Service": "dts",
        "Region": "cn-beijing"
    },
    "Result": {
        "TaskInfo": {
            "ChargeDetail": {
                "ChargeStatus": "Init",
                "ChargeType": "PostPaid",
                "OrderNo": ""
            },
            "CreateTime": 1661242976288,
            "DestConfig": {
                "DataSourceId": "322",
                "EndpointType": "Volc_Kafka",
                "VolcKafkaSettings": {
                    "AuthType": "PLAIN",
                    "InstanceId": "kafka-cnngfsm7gl******",
                    "InstanceName": "",
                    "Password": "******",
                    "RegionSettings": {
                        "Region": ""
                    },
                    "Topic": "hua",
                    "Username": "kakatest****"
                }
            },
            "EnableCloudMonitor": true,
            "EndTime": 0,
            "ProjectName": "default",
            "SolutionSettings": {
                "PG2KafkaSettings": {
                    "ErrorBehaviorSettings": {
                        "MaxRetrySeconds": 7200
                    },
                    "FullTransmissionSettings": {
                        "EnableFull": false
                    },
                    "IncrTransmissionSettings": {
                        "EnableIncr": true,
                        "Statements": [
                            "StmtDMLInsert",
                            "StmtDMLUpdate",
                            "StmtDMLDelete",
                            "StmtDDLAll"
                        ]
                    },
                    "MetaTransmissionSettings": {
                        "EnableMeta": false
                    },
                    "ObjectMappings": [
                        {
                            "DestObjName": "public",
                            "MappingList": [
                                {
                                    "DestObjName": "*",
                                    "ObjectType": "Table",
                                    "SrcObjName": "*"
                                }
                            ],
                            "ObjectType": "Database",
                            "SrcObjName": "public"
                        }
                    ],
                    "SubscriptionSettings": {
                        "PartitionPolicy": "P0",
                        "Protocol": "Volc",
                        "VPCId": "vpc-bp1opxu1zkhn00gz****",
                        "VPCSubnetId": ""
                    }
                },
                "SolutionType": "PG2Kafka"
            },
            "SrcConfig": {
                "DataSourceId": "321",
                "EndpointType": "Volc_PostgreSQL",
                "VolcPostgreSQLSettings": {
                    "DBInstanceId": "postgres-338f4f3ad26a",
                    "DBInstanceName": "",
                    "DBName": "test****zaizai",
                    "Password": "******",
                    "RegionSettings": {
                        "Region": "cn-beijing"
                    },
                    "Username": "test****zaizai"
                }
            },
            "StartTime": 1661242976288,
            "TaskId": "c37008625ddd44019ee85b84fb******",
            "TaskName": "test****zaizai",
            "TaskStatus": "Init",
            "TaskSubType": "Default",
            "TaskType": "DataSubscription",
            "TenantId": "2100157781",
            "TrafficSpec": "Compact"
        }
    }
}

错误码

更多详情,请参见错误码