创建用于迁移前分析的任务

发布 /analysis/{projectId}/task

创建用于迁移前分析的任务。

路径参数

  • projectId 字符串 必需

    项目 ID

    格式应符合以下模式:^[A-Za-z0-9\-]+$

application/json

body 必需

  • jdbcConnectionDetails 对象 必需

    不允许使用其他属性。

    隐藏 jdbcConnectionDetails 属性 显示 jdbcConnectionDetails 属性 对象
    • id 字符串
    • 类型 字符串 必需

      数据库类型或自定义数据库类型。示例,MYSQLORACLEPOSTGRESQLSQL_SERVERCOCKROACHDBDB2SQLANYWHERESYBASESYBASEIQYUGABYTE

    • url 字符串 必需
    • user 字符串
    • 密码 字符串
    • savePassword 布尔

      默认值为false

    • existingConnectionId 字符串
    • oraclePdbName 字符串
    • isManualUri 布尔

      默认值为false

响应

  • 200 application/json

    正常

    隐藏响应属性 显示响应属性 对象
    • projectId 字符串 必需

      格式应符合以下模式:^[A-Za-z0-9\-]+$

    • 状态 字符串 必需

      取值为 RUNNINGFAILEDCANCELLEDCOMPLETED

    • submittedAt string(date-time) 必需
  • 第 433 章 application/json

    使用所提供的信息连接到SQL数据库时出现问题

    隐藏响应属性 显示响应属性 对象
    • jobId 字符串

      格式应符合以下模式:^[A-Za-z0-9\-]+$

    • message 字符串 必需
    • 描述 字符串
    • timestamp string(date-time) 必需
POST /分析/{projectId}/任务
curl \
 --request POST 'http://127.0.0.1:8278/api/v1/analysis/{projectId}/task' \
 --header "Content-Type: application/json" \
 --data '{"jdbcConnectionDetails":{"id":"string","type":"ORACLE","url":"string","user":"string","password":"string","savePassword":false,"existingConnectionId":"string","oraclePdbName":"string","isManualUri":false}}'
请求示例
{
  "jdbcConnectionDetails": {
    "id": "string",
    "type": "ORACLE",
    "url": "string",
    "user": "string",
    "password": "string",
    "savePassword": false,
    "existingConnectionId": "string",
    "oraclePdbName": "string",
    "isManualUri": false
  }
}
响应示例 (200)
{
  "projectId": "string",
  "status": "RUNNING",
  "submittedAt": "2025-05-04T09:42:00Z"
}
响应示例 (433)
{
  "jobId": "string",
  "message": "string",
  "description": "string",
  "timestamp": "2025-05-04T09:42:00Z"
}