模糊搜索项目。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
WorkerGradeId | string | 否 | 传输实例的 ID。通常公有云上创建项目,需要先购买传输实例。 | g_abcdefj*** |
PageNumber | integer | 否 | 页序号,分页查询时生效。 | 1 |
PageSize | integer | 否 | 页大小,分页查询时生效。 | 1 |
SearchKey | string | 否 | 模糊查询关键字。根据项目 ID 和项目名称进行模糊搜索。 | projectName |
SourceDbTypes | array | 否 | 源端类型列表。 | |
string | 否 | 指定源端类型。 | mysql | |
DestDbTypes | array | 否 | 目标端类型列表。 | |
string | 否 | 指定目标端类型。 | oceanbase | |
LabelIds | array | 否 | 标签列表。 | |
string | 否 | 指定标签。 | test | |
StatusList | array | 否 | 项目状态列表。 | |
string | 否 | 指定项目状态。 | running |
返回参数
示例
正常返回示例
JSON
格式
{
"Success": true,
"ErrorDetail": {
"Code": "CM-RESOAT111111",
"Level": "ERROR",
"Message": "A system error occurred.",
"Proposal": "Contact the administrator. "
},
"Code": "INNER_ERROR",
"Message": "A system error occurred.",
"Advice": "Contact the administrator. ",
"RequestId": "XCVSADGDFSGDFGFDGFDGDFGDFGDFGDFGDSGDS",
"PageNumber": 1,
"PageSize": 1,
"TotalCount": 1,
"Cost": "1",
"Data": [
{
"ProjectId": "p_gasdfdsfg",
"ProjectName": "p_gasdfdsfg",
"ProjectOwner": "Zhang San",
"Labels": [
{
"Id": " abc",
"Name": " test",
"Creator": "admin",
"Count": 3
}
],
"SourceConfig": {
"EndpointType": "OB_MYSQL",
"EndpointId": "e_abcdefj",
"PartitionMode": "HASH",
"Partition": 0,
"SerializerType": "DEFAULT",
"TopicType": "TUPLE",
"SequenceEnable": false,
"SequenceStartTimestamp": 1656510473,
"ProducerGroup": "producer-group-1",
"MsgTags": "tag1",
"EnableMsgTrace": false,
"SendMsgTimeout": 10
},
"DestConfig": {
"EndpointType": "OB_MYSQL",
"EndpointId": "e_abcdefj",
"PartitionMode": "HASH",
"Partition": 0,
"SerializerType": "DEFAULT",
"TopicType": "TUPLE",
"SequenceEnable": false,
"SequenceStartTimestamp": 1656510473,
"ProducerGroup": "producer-group-1",
"MsgTags": "tag1",
"EnableMsgTrace": false,
"SendMsgTimeout": 10
},
"TransferMapping": {
"Mode": "NORMAL",
"Databases": [
{
"TenantName": "tenant",
"MappedName": "mapped_db",
"DatabaseId": "db_id1",
"DatabaseName": "db1",
"Tables": [
{
"MappedName": "mapped_table",
"TableId": "table_id",
"TableName": "table",
"WhereClause": "id > 1",
"FilterColumns": [
"col"
],
"ShardColumns": [
"col1"
],
"AdbTableSchema": {
"PrimaryKeys": [
"pk"
],
"DistributedKeys": [
"col2"
],
"PartitionStatement": "PARTITION BY VALUE('id')",
"PartitionLifeCycle": 30
},
"Type": "DATABASE"
}
],
"Type": "DATABASE"
}
]
},
"TransferStepConfig": {
"EnableStructSync": false,
"EnableFullSync": false,
"EnableIncrSync": false,
"IncrSyncStepTransferConfig": {
"StartTimestamp": 1656644154,
"RecordTypeList": [
"INT"
],
"StoreLogKeptHour": 1,
"StoreTransactionEnabled": false,
"TransferStepType": "STRUCT"
}
},
"BusinessName": "OMS_TEST",
"Steps": [
{
"StepOrder": 1,
"StepName": " structmigration",
"StepDescription": "Schema migration",
"StepStatus": " INIT",
"StepProgress": 10,
"StepInfo": {
"JobId": "j_dfasefsd",
"IncrTimestampCheckpoint": 1,
"Checkpoint": " 1",
"Gmt": 1,
"ConnectorFullProgressOverview": {
"EstimatedTotalCount": 100,
"FinishedCount": 50,
"Progress": 1120,
"EstimatedRemainingTimeOfSec": 100
},
"Validated": false,
"Skipped": false,
"Inconsistencies": 1,
"DeployId": "ewtfqwt",
"ProcessedRecords": 10,
"Capacity": 10000,
"SrcRps": 1,
"SrcRt": 1,
"SrcIops": 1,
"DstRps": 1,
"DstRt": 1,
"DstIops": 1,
"SrcRpsRef": 1,
"SrcRtRef": 1,
"DstRpsRef": 1,
"DstRtRef": 1,
"SrcIopsRef": 1
},
"ExtraInfo": {
"ErrorDetails": [
{
"Code": "200",
"Level": "CRITICAL",
"Message": "A system error occurred.",
"Proposal": "Contact the administrator. "
}
],
"ErrorCode": "INNER_ERROR",
"ErrorMsg": "A system error occurred.",
"ErrorParam": {
"key": "FailedTime"
},
"FailedTime": "2020-05-22T17:04:18"
},
"StartTime": "2020-05-22T17:04:18",
"EstimatedRemainingSeconds": 0,
"FinishTime": "2020-05-22T17:05:18",
"Interactive": false
}
]
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2022-08-19 | 新增 OpenAPI | 看变更集 |