调用 DescribeValidationTasks 接口查询数据校验任务。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
TaskType | String | 是 | DataMigration | 任务类型。查询数据校验任务的参数取值为 DataValidation 。 |
PageNumber | Integer | 否 | 1 | 页码。取值范围 1~1000,默认值为 1。 |
PageSize | Integer | 否 | 10 | 每页记录数。取值范围 1~1000,默认值为 10。 |
StartTime | Integer | 否 | 1733822723214 | 数据校验任务开始时间,使用毫秒时间戳格式。 说明
|
EndTime | Integer | 否 | 1733822812635 | 数据校验任务结束时间,使用毫秒时间戳格式。 说明
|
TaskStatus | String | 否 | Terminating | 任务状态,取值如下:
|
Name | String | 否 | dts-u04kluhkkt | 数据校验任务名称。 |
Ids | Array of String | 否 | [b2b9cf8568d349c3969d37494b******] | 任务 ID 的列表。 |
ParentTaskID | String | 否 | 4f85ae2481a643d99c0f45444****** | 迁移或同步任务 ID。 |
ValidationStatus | String | 否 | HasDiff | 校验任务状态,取值如下:
|
TaskSubType | String | 否 | FullRowCompare | 数据校验任务类型,取值如下:
|
SrcEndpointType | String | 否 | Volc_MySQL | 实例的接入方式,取值如下:
|
DestEndpointType | String | 否 | Volc_MySQL | 实例的接入方式,取值如下:
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Total | Integer | 1 | 校验任务数量。 |
Tasks | Object |
| 数据校验详情。更多信息,请参见 TaskInfo。 |
POST /?Action=DescribeValidationTasks&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**** { "TaskType": "DataValidation", "PageNumber": 1, "PageSize": 10, "TaskSubType": "FullPkCompare" }
{ "ResponseMetadata": { "RequestId": "202412121656512315ADFB6FDD8EDC5D6C-ca5e3f", "Action": "DescribeValidationTasks", "Version": "2022-10-01", "Service": "dts", "Region": "cn-beijing" }, "Result": { "Tasks": [ { "AddSyncObjectAllowed": true, "ChargeConfig": { "ChargeType": "PostPaid", "DestRegion": "cn-beijing", "DestType": "Volc_Mongo", "EnableV2": true, "SrcRegion": "cn-beijing", "SrcType": "Volc_Mongo", "TaskType": "DataValidation", "Times": 1, "TrafficSpec": "Compact" }, "ChargeDetail": { "ChargeEndTime": 7258089600000, "ChargeStartTime": 1733973839000, "ChargeStatus": "Normal", "ChargeType": "PostPaid", "OrderNo": "" }, "CreateTime": 1733973825755, "DestConfig": { "Category": "MongoDB", "CreateTime": 1733973825741, "DataSourceId": "1867036707258413057", "EndpointType": "Volc_Mongo", "ModifyTime": 1733973841654, "VolcMongoSettings": { "DBInstanceId": "mongo-replica-d91799021291", "DBInstanceName": "", "DeployType": "ReplicaSet", "MongoAuthSourceDB": "admin", "Password": "******", "RegionSettings": { "Region": "cn-beijing" }, "Username": "root" } }, "EnableCloudMonitor": true, "EndTime": 0, "ParentTaskID": "4c1d32fe38c64ec7bf7f02d87926e94d", "ParentTaskName": "dts-483oh5l2ne", "ProgressSummary": { "Infos": null }, "ProjectName": "default", "SrcConfig": { "Category": "MongoDB", "CreateTime": 1733973825740, "DataSourceId": "1867036707258413056", "EndpointType": "Volc_Mongo", "ModifyTime": 1733973840858, "VolcMongoSettings": { "DBInstanceId": "mongo-replica-386df9f4fd7c", "DBInstanceName": "", "DeployType": "ReplicaSet", "MongoAuthSourceDB": "admin", "Password": "******", "RegionSettings": { "Region": "cn-beijing" }, "Username": "root" } }, "StartTime": 1733973840165, "TaskId": "b2b9cf8568d349c3969d37494b85e14d", "TaskName": "dts-u04kluhkkt", "TaskStatus": "Suspend", "TaskSubType": "IncrDataValidation", "TaskType": "DataValidation", "TenantId": "2100000746", "TrafficSpec": "Compact", "ValidationResultSummary": { "TaskSubType": "IncrDataValidation", "ValidationProgress": { "CompletePercentage": 0, "DestDelay": 101, "SrcDelay": 96 } } } ], "Total": 1 } }
更多详情,请参见错误码。