body
必須
-
追加プロパティは許可されていません。
-
追加プロパティは許可されていません。
-
追加プロパティは許可されていません。
-
追加プロパティは許可されていません。
-
各キーがスキーマ名を表すオブジェクト。各スキーマには、テーブル フィルターを適用できるテーブルが含まれています。
-
この移行にコレクションを含めるか除外します。
- includeonly: 指定された include フィルターに一致するコレクションのみが移行されます。
- 除外のみ: 除外フィルターに一致するコレクションを除くすべてのコレクションが移行されます。
- を含めると除外する: 除外フィルターに一致するコレクションを、除外フィルターにも一致するコレクションを除外して移行します。
- フィルターなし: すべてのコレクションが移行されます。
POST /jobs
curl \
--request POST 'http://127.0.0.1:8278/api/v1/jobs' \
--header "Content-Type: application/json" \
--data '{"projectId":"string","jdbcConnectionDetails":{"id":"string","type":"ORACLE","url":"string","user":"string","password":"string","savePassword":false,"existingConnectionId":"string","oraclePdbName":"string","isManualUri":false},"mongodbConnectionDetails":{"id":"string","connectionString":"string","projectId":"string","savePassword":false,"projectName":"string","clusterName":"string","existingConnectionId":"string"},"options":{"dropCollections":false,"mode":"SNAPSHOT","errorHandling":"FAIL","errorTolerance":42},"verification":{"enabled":false},"relationalTableFilters":{"schema_1_name":{"table_1_name":{"whereClause":"id \u003e 1000 AND id \u003c= 2000"},"table_2_name":{"rowCount":10,"whereClause":"TRUE"}}},"collectionFilters":{"include":["string"],"exclude":["string"]}}'
リクエスト例
{
"projectId": "string",
"jdbcConnectionDetails": {
"id": "string",
"type": "ORACLE",
"url": "string",
"user": "string",
"password": "string",
"savePassword": false,
"existingConnectionId": "string",
"oraclePdbName": "string",
"isManualUri": false
},
"mongodbConnectionDetails": {
"id": "string",
"connectionString": "string",
"projectId": "string",
"savePassword": false,
"projectName": "string",
"clusterName": "string",
"existingConnectionId": "string"
},
"options": {
"dropCollections": false,
"mode": "SNAPSHOT",
"errorHandling": "FAIL",
"errorTolerance": 42
},
"verification": {
"enabled": false
},
"relationalTableFilters": {
"schema_1_name": {
"table_1_name": {
"whereClause": "id > 1000 AND id <= 2000"
},
"table_2_name": {
"rowCount": 10,
"whereClause": "TRUE"
}
}
},
"collectionFilters": {
"include": [
"string"
],
"exclude": [
"string"
]
}
}
応答の例(200)
{
"id": "string",
"projectId": "string",
"status": "RUNNING",
"cdcStatus": "NOT_STARTED",
"verificationJobId": "string",
"options": {
"dropCollections": false,
"mode": "SNAPSHOT",
"errorHandling": "FAIL",
"errorTolerance": 42
},
"jdbcConnectionString": "string",
"mongoDbConnectionString": "string",
"submittedAt": "2025-05-04T09:42:00Z",
"statistics": {
"startedAt": "2025-05-04T09:42:00Z",
"elapsedSeconds": 42,
"remainingTableCount": 42,
"processingTables": [
"string"
],
"totalEventsSeen": 0,
"snapshotCompleted": false,
"totalTableCount": 42,
"totalEvents": 42,
"totalEventSize": 42
},
"cdcStatistics": {
"startedAt": "2025-05-04T09:42:00Z",
"lastEventTime": "2025-05-04T09:42:00Z",
"eventsInLastHour": 0,
"eventsInLastMinute": 0,
"totalEventsSeen": 0
},
"jobUpdates": [
{
"eventType": "ERROR",
"stage": "SNAPSHOTTING",
"message": "string",
"details": "string",
"timestamp": "2025-05-04T09:42:00Z",
"stackTrace": [
"string"
],
"errorCode": "string",
"locationType": "TABLE",
"locationName": "string",
"fieldName": "string",
"key": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"count": 42,
"location": {
"table": "string"
}
}
],
"failureError": {
"errorType": "string",
"message": "string",
"failureAt": "2025-05-04T09:42:00Z",
"setupError": false
},
"metadata": {
"telemetryUserId": "string",
"verificationRequested": false,
"verificationStatus": "VERIFYING"
},
"relationalTableFilters": {
"schema_1_name": {
"table_1_name": {
"whereClause": "id > 1000 AND id <= 2000"
},
"table_2_name": {
"rowCount": 10,
"whereClause": "TRUE"
}
}
}
}
応答の例(440)
{
"jobId": "string",
"message": "string",
"description": "string",
"timestamp": "2025-05-04T09:42:00Z"
}
応答の例(470)
{
"jobId": "string",
"message": "string",
"description": "string",
"timestamp": "2025-05-04T09:42:00Z"
}
応答の例(471)
{
"jobId": "string",
"message": "string",
"description": "string",
"timestamp": "2025-05-04T09:42:00Z"
}
応答の例(500)
{
"jobId": "string",
"message": "string",
"description": "string",
"timestamp": "2025-05-04T09:42:00Z"
}