文档

CreateProjectModifyRecords - 修改传输对象

更新时间:

该接口用于增加或减少表对象。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
Idstring

数据迁移或数据同步项目的 ID。

np_fe****
Databasesobject []

数据库对象列表。

Idstring

数据库的 ID。

db_id
Namestring

数据库的名称。

db_name
MappedNamestring

数据库的映射名称。

mapped_db
Tablesobject []

当前数据库中传输表对象的配置。Mode 为 WILDCARD 时,该参数表示具体黑名单或白名单的配置,表和视图共用。

Namestring

表的名称。

table_name
MappedNamestring

表的映射名称。

mapped_table
Idstring

表的 ID。

table_id
WhereClausestring

通过标准的 SQL 语句中的 WHERE 子句,用于配置行过滤。

id<1
FilterColumnsarray

过滤列集合。

string

过滤列。

col
ShardColumnsarray

分片键列集合。

string

分片键列。

col1
AdbTableSchemaobject

ADB 数据源的映射信息。

PrimaryKeysarray

主键列集合。

string

主键列。

pk
DistributedKeysarray

分布键列集合。

string

分布键列。

col2
PartitionStatementstring

分区表达式。

PARTITION BY VALUE('id')
PartitionLifeCyclestring

表的生命周期。

30
Viewsobject []

当前数据库中传输视图对象的配置列表。

Namestring

视图的名称。

view_name
MappedNamestring

视图的映射名称。

mapped_view
Idstring

视图的 ID。

view_id
WhereClausestring

通过标准的 SQL 语句中的 WHERE 子句,用于配置行过滤。

id<1
FilterColumnsarray

过滤列集合。

string

过滤列。

col
ShardColumnsarray

分片键列集合。

string

分片键列。

col1
AdbTableSchemaobject

ADB 数据源的映射信息。

PrimaryKeysarray

主键列集合。

string

主键列。

pk
DistributedKeysarray

分布键列集合。

string

分布键列。

col2
PartitionStatementstring

分区表达式。

PARTITION BY VALUE('id')
PartitionLifeCyclestring

表的生命周期。

30
SpecificTablesobject []

具体表对象的配置集合。modeWILDCARD 时,该参数表示具体表对象的重命名、行过滤配置。

Namestring

表的名称。

table_name
MappedNamestring

表的映射名称。

mapped_table
Idstring

表的 ID。

table_id
WhereClausestring

通过标准的 SQL 语句中的 WHERE 子句,用于配置行过滤。

id<1
FilterColumnsarray

过滤列集合。

string

过滤列。

col
ShardColumnsarray

分片键列集合。

string

分片键列。

col1
AdbTableSchemaobject

ADB 数据源的映射信息。

PrimaryKeysarray

主键列集合。

string

主键列。

pk
DistributedKeysarray

分布键列集合。

string

分布键列。

col2
PartitionStatementstring

分区表达式。

PARTITION BY VALUE('id')
PartitionLifeCyclestring

表的生命周期。

30
SpecificViewsobject []

具体视图对象的配置列表。modeWILDCARD 时,该参数表示具体视图对象的重命名配置。

Namestring

视图的名称。

view_name
MappedNamestring

视图的映射名称。

mapped_view
Idstring

视图的 ID。

view_id
WhereClausestring

通过标准的 SQL 语句中的 WHERE 子句,用于配置行过滤。

id <1
FilterColumnsarray

过滤列集合。

string

过滤列。

col
ShardColumnsarray

分片键列集合。

string

分片键列。

col1
AdbTableSchemaobject

ADB 数据源的映射信息。

PrimaryKeysarray

主键列集合。

string

主键列。

pk
DistributedKeysarray

分布键列集合。

string

分布键列。

col2
PartitionStatementstring

分区表达式。

PARTITION BY VALUE('id')
PartitionLifeCyclestring

表的生命周期。

30

返回参数

名称类型描述示例值
object

返回结果。

Successboolean

是否调用成功。

true
ErrorDetailobject

错误详情。

Codestring

错误码(旧)。

CM-RESOAT1111
Levelstring

包括 FATAL、ERROR、WARNING 和 CRITICAL。

ERROR
Messagestring

错误描述(旧)。

A system error occurred.
ExtraContextobject

用于填充 Message 中的占位符。

any

用于填充 Message 中的占位符。

null
MessageMcmsKeystring

错误信息的 Key。

null
MessageMcmsContextobject

用于填充 MessageMcmsKey 中的占位符。

string

用于填充 MessageMcmsKey 中的占位符。

null
Reasonstring

错误原因。

null
ReasonMcmsKeystring

错误原因的 Key。

null
ReasonMcmsContextobject

错误原因的上下文。

string

错误原因的上下文。

null
Proposalstring

建议(新)。

Contact the administrator.
ProposalMcmsKeystring

建议内容的 Key。

null
ProposalMcmsContextobject

建议内容的上下文。

string

建议内容的上下文。

null
UpstreamErrorDetailany

上游错误详情,用于处理 HTTP 请求。

null
Codestring

错误码。

INNER_ERROR
Messagestring

错误描述。

A system error occurred.
Advicestring

建议。

Contact the administrator.
RequestIdstring

请求 ID。

EE205C00-30E4-****-****-87E3A8A2AA0C
PageNumberinteger

页序号,分页查询时生效。

1
PageSizeinteger

页大小,分页查询时生效。

10
TotalCountlong

总数,分页查询时生效。

100
Coststring

请求耗时,单位为秒。

28
Datalong

请求返回的修改记录 ID。

4

示例

正常返回示例

JSON格式

{
  "Success": true,
  "ErrorDetail": {
    "Code": "CM-RESOAT1111",
    "Level": "ERROR",
    "Message": "A system error occurred.",
    "ExtraContext": {
      "key": "null"
    },
    "MessageMcmsKey": "null",
    "MessageMcmsContext": {
      "key": "null"
    },
    "Reason": "null",
    "ReasonMcmsKey": "null",
    "ReasonMcmsContext": {
      "key": "null"
    },
    "Proposal": "Contact the administrator. ",
    "ProposalMcmsKey": "null",
    "ProposalMcmsContext": {
      "key": "null"
    },
    "UpstreamErrorDetail": "null"
  },
  "Code": "INNER_ERROR",
  "Message": "A system error occurred.",
  "Advice": "Contact the administrator. ",
  "RequestId": "EE205C00-30E4-****-****-87E3A8A2AA0C",
  "PageNumber": 1,
  "PageSize": 10,
  "TotalCount": 100,
  "Cost": "28",
  "Data": 4
}

错误码

访问错误中心查看更多错误码。

  • 本页导读 (0)
文档反馈