You need to enable JavaScript to run this app.
文档中心
大数据研发治理套件

大数据研发治理套件

复制全文
下载 pdf
DataSail-解决方案
UpdateSolutionTableMappings - 更新解决方案表映射
复制全文
下载 pdf
UpdateSolutionTableMappings - 更新解决方案表映射

更新数据集成解决方案表映射

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。

Query

参数
类型
是否必填
示例值
描述
Action
String
是

UpdateSolutionTableMappings

要执行的操作,取值:UpdateSolutionTableMappings。

Version
String
是

2026-03-01

API的版本,取值:2026-03-01。

Body

参数
类型
是否必填
示例值
描述
SolutionId
Long
是

1

解决方案 ID

ProjectId
Long
是

1

项目 ID

TempVersion
Long
是

-1

解决方案版本

Mappings
Array of Object
是

--

解决方案表映射配置

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构。

参数
类型
示例值
描述
SolutionId
Long

1

解决方案 ID

Success
Boolean

true

更新解决方案操作是否成功

请求示例

POST /?Action=UpdateSolutionTableMappings&Version=2026-03-01 HTTP/1.1
Host: dataleap.cn-beijing.volcengineapi.com
Content-Type: application/json; charset=UTF-8
X-Date: 20260414T094926Z
X-Content-Sha256: 287e874e******d653b44d21e
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260414/cn-beijing/dataleap/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f

{
  "SolutionId": 1,
  "ProjectId": 1,
  "TempVersion": -1,
  "Mappings": [
    {
      "EnableSnapshot": true,
      "EnabledTruncateTable": true,
      "TableCreationType": "NEW",
      "Reader": {
        "DataSourceId": 1,
        "Parameter": {
          "ProjectId": 1,
          "DatabaseName": "test_database",
          "SchemaName": "test_schema",
          "TableName": "test_table",
          "Columns": [
            {
              "Name": "column1",
              "Type": "String",
              "Value": "WfY83RMIJ",
              "Nullable": true,
              "Description": "test column",
              "IsPartitionColumn": true,
              "IsPrimaryKey": true,
              "Precision": 32,
              "Scale": 6,
              "IsAdditionalColumn": "false",
              "SupportTypeList": [
                "vZStyK335q"
              ],
              "DefaultValue": "test",
              "DefaultValueRawExpression": true,
              "Properties": "twWwFO12go5",
              "Length": 128
            }
          ],
          "SplitKeys": [
            "1TnkAeoS6o"
          ],
          "ShardingKeys": [
            "3w"
          ],
          "SortStrategy": {
            "SortType": "SMART"
          },
          "PartitionKeys": [
            "zwfp3"
          ],
          "OrderByKeys": [
            "KaXLZn"
          ],
          "Properties": [
            {
              "Name": "key1",
              "Value": "value1"
            }
          ]
        }
      },
      "LogicReader": {
        "Readers": [
          {
            "DataSourceId": 1,
            "DataSourceType": "mysql",
            "DataSourceName": "读数据源",
            "CatalogMetas": [],
            "Properties": [
              {
                "Name": "key1",
                "Value": "value1"
              }
            ]
          }
        ],
        "FilterExps": {
          "DatabaseName": [
            {
              "FilterType": "FULL",
              "FilterAction": "INCLUDE",
              "FilterPattern": "test"
            }
          ],
          "SchemaName": [
            {
              "FilterType": "FULL",
              "FilterAction": "INCLUDE",
              "FilterPattern": "test"
            }
          ],
          "TableName": [
            {
              "FilterType": "FULL",
              "FilterAction": "INCLUDE",
              "FilterPattern": "test"
            }
          ]
        },
        "ReaderTableMode": "STATIC_TABLE_SPECIFIED",
        "BinlogType": "DEBEZIUM_JSON",
        "LogicCatalogMeta": {
          "DatabaseName": "test_database",
          "SchemaName": "test_schema",
          "TableName": "test_table"
        },
        "Parameter": {
          "LogicDatabaseName": "default",
          "LogicTableName": "default",
          "Columns": [
            {
              "Name": "column1",
              "Type": "String",
              "Value": "id7W2UZU",
              "Nullable": true,
              "Description": "test column",
              "IsPartitionColumn": true,
              "IsPrimaryKey": true,
              "Precision": 32,
              "Scale": 6,
              "IsAdditionalColumn": "false",
              "SupportTypeList": [
                "PuZl7A7UgD7"
              ],
              "DefaultValue": "test",
              "DefaultValueRawExpression": true,
              "Properties": "CsM",
              "Length": 128
            }
          ],
          "SplitKeys": [
            "3jX5c"
          ]
        }
      },
      "Writer": {
        "DataSourceId": 1,
        "Parameter": {
          "ProjectId": 1,
          "DatabaseName": "test_database",
          "SchemaName": "test_schema",
          "TableName": "test_table",
          "Columns": [
            {
              "Name": "column1",
              "Type": "String",
              "Value": "Lbd",
              "Nullable": true,
              "Description": "test column",
              "IsPartitionColumn": true,
              "IsPrimaryKey": true,
              "Precision": 32,
              "Scale": 6,
              "IsAdditionalColumn": "false",
              "SupportTypeList": [
                "Ifi"
              ],
              "DefaultValue": "test",
              "DefaultValueRawExpression": true,
              "Properties": "638H",
              "Length": 128
            }
          ],
          "SplitKeys": [
            "OOUuuCGSJ"
          ],
          "ShardingKeys": [
            "Tjhdx"
          ],
          "SortStrategy": {},
          "PartitionKeys": [
            "nEzeDBmmByg"
          ],
          "OrderByKeys": [
            "GA"
          ],
          "Properties": [
            {
              "Name": "key1",
              "Value": "value1"
            }
          ]
        }
      },
      "TransformConfigs": [
        "53lgVNklJ0"
      ],
      "SyncStrategy": {
        "Ddl": {
          "CreateTable": "IGNORE",
          "DropTable": "IGNORE",
          "AddTableColumn": "IGNORE",
          "DropTableColumn": "IGNORE",
          "RenameTable": "IGNORE",
          "RenameTableColumn": "IGNORE",
          "UpdateTableColumn": "IGNORE",
          "TruncateTable": "IGNORE"
        },
        "Cycle": {
          "Frequency": "hourly",
          "RetryNum": 1,
          "RetryInterval": 1,
          "ScheduleTime": "0",
          "ScheduleDay": "1,2,3",
          "ScheduleMonth": "1"
        },
        "Incremental": {
          "FilterCondition": "ID > 0"
        },
        "WriteMode": "w7JY81XB"
      },
      "AdvancedConfig": {
        "ColumnAlignmentType": "NO_ALIGNMENT",
        "BatchMode": "JDBC",
        "DtsSubscriptionTaskId": "dts_123",
        "DtsSubscriptionTaskName": "test_subscribe",
        "Debezium": [
          "c"
        ],
        "CustomParameter": [
          {
            "Key": "key1",
            "Value": "value1",
            "Type": "String"
          }
        ]
      },
      "PartitionMode": "NoPartitionMode",
      "PartitionDefinition": "partition1"
    }
  ]
}

返回示例

{
  "ResponseMetadata": {
    "RequestId": "20260414174931255205154230359D8B",
    "Action": "UpdateSolutionTableMappings",
    "Version": "2026-03-01",
    "Service": "dataleap",
    "Region": "cn-beijing"
  },
  "Result": {
    "SolutionId": 1,
    "Success": true
  }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
200
InternalError

access denied, user {0} does not have {1} permission

更新解决方案表映射出错

最近更新时间:2026.06.09 11:28:25
这个页面对您有帮助吗?
有用
有用
无用
无用