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

调用 DescribeSupportedValidationTypes 接口查看支持创建的数据校验类型。

请求类型

同步请求。

请求参数

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

SrcDataSource

DataSource

{
    "Category": "MongoDB",
    "CreateTime": 1734070854504,
    "DataSourceId": "186745444294******",
    "EndpointType": "Volc_Mongo",
    "ModifyTime": 1734070872597,
    "VolcMongoSettings": {
        "DBInstanceId": "mongo-replica-386df9f4fd7c",
        "DBInstanceName": "",
        "DeployType": "ReplicaSet",
        "MongoAuthSourceDB": "admin",
        "Password": "******",
        "RegionSettings": {
            "Region": "cn-beijing"
         },
         "Username": "root"
    }
}

数据校验任务的源端信息。

DestDataSourceDataSource数据校验任务的目标端信息。

返回参数

参数类型示例值描述

SupportedDataValidationTypes

Array of String

FullRowCompare

数据校验任务类型,取值如下:

  • FullRowCompare:表示全量内容校验。

  • FullRowCountCompare:表示全量行数校验。

  • FullPkCompare:表示全量主键校验。

  • MetaCompare:表示结构校验。

  • IncrDataValidation:表示增量校验。

请求示例

POST /?Action=DescribeSupportedValidationTypes&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****

{
    "SrcDataSource": {
        "Category": "MongoDB",
        "CreateTime": 1734070854504,
        "DataSourceId": "1867454442941460509",
        "EndpointType": "Volc_Mongo",
        "ModifyTime": 1734070872597,
        "VolcMongoSettings": {
            "DBInstanceId": "mongo-replica-386df****",
            "DBInstanceName": "",
            "DeployType": "ReplicaSet",
            "MongoAuthSourceDB": "admin",
            "Password": "******",
            "RegionSettings": {
                "Region": "cn-beijing"
            },
            "Username": "root"
        }
    },
    "DestDataSource": {
        "Category": "MongoDB",
        "CreateTime": 1734070854506,
        "DataSourceId": "1867454442941460510",
        "EndpointType": "Volc_Mongo",
        "ModifyTime": 1734070873088,
        "VolcMongoSettings": {
            "DBInstanceId": "mongo-replica-d91799*******",
            "DBInstanceName": "",
            "DeployType": "ReplicaSet",
            "MongoAuthSourceDB": "admin",
            "Password": "******",
            "RegionSettings": {
                "Region": "cn-beijing"
            },
            "Username": "root"
        }
    }
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202412171933221C103D469763D5FAA85C-a93101",
        "Action": "DescribeSupportedValidationTypes",
        "Version": "2022-10-01",
        "Service": "dts",
        "Region": "cn-beijing"
    },
    "Result": {
        "SupportedDataValidationTypes": [
            "FullRowCompare"
        ]
    }
}

错误码

更多详情,请参见错误码