You need to enable JavaScript to run this app.
导航
DescribeValidationTaskInfo
最近更新时间:2024.12.31 11:00:40首次发布时间:2024.12.31 11:00:40

调用 DescribeValidationTaskInfo 接口查看数据校验任务详情。

请求类型

同步请求。

请求参数

参数类型是否必选示例值描述

TaskId

String

cad03b2ed34d45a585d883d90f******

数据校验任务 ID。

说明

您可以调用 DescribeValidationTasks 接口查看数据校验任务的 ID。

返回参数

参数类型示例值描述

TaskInfo

Object

{
    "ChargeConfig": {
        "ChargeType": "PostPaid",
        "OneStep": true
    },
    "ChargeDetail": {
        "ChargeEndTime": 7258089600000,
        "ChargeStartTime": 1734392184000,
        "ChargeStatus": "Closed",
        "ChargeType": "PostPaid",
        "OrderNo": ""
    },
    "CreateTime": 1733909824494,
    "DestConfig": {
        "Category": "MySQL",
        "CreateTime": 1733909824479,
        "DataSourceId": "1866754591849******",
        "EndpointType": "Volc_MySQL",
        "ModifyTime": 1733909857524,
        "VolcMySQLSettings": {
            "DBInstanceId": "mysql-35f7579****",
            "DBInstanceName": "",
            "Password": "******",
            "RegionSettings": {
                "Region": "cn-beijing"
            },
            "Username": "rootgg"
        }
    },
    "EnableCloudMonitor": true,
    "EndTime": 1733909889423,
    "ParentTaskID": "7b67a5c60a644cb6b5efa1c2******",
    "ParentTaskName": "diff",
    "ProjectName": "default",
    "SolutionSettings": {
        "MySQL2MySQLMetaCompareSettings": {
            "ObjectMappings": [
                {
                    "DestObjName": "diff_src",
                    "MappingList": [
                        {
                            "DestObjName": "*",
                            "ObjectType": "Table",
                            "SrcObjName": "*"
                        }
                    ],
                    "ObjectType": "Database",
                    "SrcObjName": "diff_src"
                }
            ]
        },
        "SolutionType": "MySQL2MySQLMetaCompare"
    },
    "SrcConfig": {
        "Category": "MySQL",
        "CreateTime": 1733909824477,
        "DataSourceId": "186675459184******",
        "EndpointType": "Volc_MySQL",
        "ModifyTime": 1733909853249,
        "VolcMySQLSettings": {
            "DBInstanceId": "mysql-90fb67****",
            "DBInstanceName": "",
            "Password": "******",
            "RegionSettings": {
                "Region": "cn-beijing"
            },
            "Username": "rootgg"
        }
    },
    "StartTime": 1733909851187,
    "TaskId": "cad03b2ed34d45a585d883d9******",
    "TaskName": "dts-5y16r6nhj1",
    "TaskStatus": "Canceled",
    "TaskSubType": "MetaCompare",
    "TaskType": "DataValidation",
    "TenantId": "21000****",
    "TrafficSpec": "Compact"
}

数据校验任务详细信息。更多信息,请参见 TaskInfo。

请求示例

POST /?Action=DescribeValidationTaskInfo&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":"cad03b2ed34d45a585d883d90f******"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2024121214113278CA6ED7AE6DDEB9E019-180d47",
        "Action": "DescribeValidationTaskInfo",
        "Version": "2022-10-01",
        "Service": "dts",
        "Region": "cn-beijing"
    },
    "Result": {
        "TaskInfo": {
            "ChargeConfig": {
                "ChargeType": "PostPaid",     
                "OneStep": true
            },
            "ChargeDetail": {
                "ChargeEndTime": 7258089600000,
                "ChargeStartTime": 1734392184000,
                "ChargeStatus": "Closed",
                "ChargeType": "PostPaid",
                "OrderNo": ""
            },
            "CreateTime": 1733909824494,
            "DestConfig": {
                "Category": "MySQL",
                "CreateTime": 1733909824479,
                "DataSourceId": "1866754591849******",
                "EndpointType": "Volc_MySQL",
                "ModifyTime": 1733909857524,
                "VolcMySQLSettings": {
                    "DBInstanceId": "mysql-35f7579****",
                    "DBInstanceName": "",
                    "Password": "******",
                    "RegionSettings": {
                        "Region": "cn-beijing"
                    },
                    "Username": "rootgg"
                }
            },
            "EnableCloudMonitor": true,
            "EndTime": 1733909889423,
            "ParentTaskID": "7b67a5c60a644cb6b5efa1c2******",
            "ParentTaskName": "diff",
            "ProjectName": "default",
            "SolutionSettings": {
                "MySQL2MySQLMetaCompareSettings": {
                    "ObjectMappings": [
                        {
                            "DestObjName": "diff_src",
                            "MappingList": [
                                {
                                    "DestObjName": "*",
                                    "ObjectType": "Table",
                                    "SrcObjName": "*"
                                }
                            ],
                            "ObjectType": "Database",
                            "SrcObjName": "diff_src"
                        }
                    ]
                },
                "SolutionType": "MySQL2MySQLMetaCompare"
            },
            "SrcConfig": {
                "Category": "MySQL",
                "CreateTime": 1733909824477,
                "DataSourceId": "186675459184******",
                "EndpointType": "Volc_MySQL",
                "ModifyTime": 1733909853249,
                "VolcMySQLSettings": {
                    "DBInstanceId": "mysql-90fb67****",
                    "DBInstanceName": "",
                    "Password": "******",
                    "RegionSettings": {
                        "Region": "cn-beijing"
                    },
                    "Username": "rootgg"
                }
            },
            "StartTime": 1733909851187,
            "TaskId": "cad03b2ed34d45a585d883d9******",
            "TaskName": "dts-5y16r6nhj1",
            "TaskStatus": "Canceled",
            "TaskSubType": "MetaCompare",
            "TaskType": "DataValidation",
            "TenantId": "21000****",
            "TrafficSpec": "Compact"
        }
    }
}

错误码

更多详情,请参见错误码