更新时间:2023-05-29 gmt 08:00

查询迁移项目详情-凯发k8国际娱乐官网入口

功能介绍

查询迁移项目详情。只有migration_project_status为"ready"时才能调用该接口。

调试

您可以在中调试该接口,支持自动认证鉴权。api explorer可以自动生成sdk代码示例,并提供sdk代码示例调试功能。

uri

get /v1/{project_id}/migration-projects/{migration_project_id}/detail

表1 路径参数

参数

是否必选

参数类型

描述

project_id

string

租户在某一region下的project id。

获取方法请参见。

migration_project_id

string

迁移项目id。

请求参数

表2 请求header参数

参数

是否必选

参数类型

描述

x-auth-token

string

从iam服务获取的用户token。

响应参数

状态码: 200

表3 响应body参数

参数

参数类型

描述

migration_project_id

integer

迁移项目id。

migration_project_name

string

迁移项目状态。

evaluation_project_name

string

对应的评估项目名称。

source_db_info

表4 object

源库信息。

target_db_info

表4 object

目标库信息。

created_time

string

创建时间。

updated_time

string

更新时间。

表4 database

参数

参数类型

描述

port

string

端口。

ip

string

连接ip。

user_name

string

用户名。

service_name

string

服务名。

connection_string

string

连接字符串。

请求示例

查询迁移项目详情。

get https://{endpoint}/v1/0ac6eb2c8000d2ee2fd9c006dededbe6/migration-projects/220/detail

响应示例

状态码: 200

请求成功。

{ 
  "migration_project_id" : 220, 
  "migration_project_name" : "ugo_migration_2", 
  "evaluation_project_name" : "ugo_best", 
  "source_db_info" : { 
    "connection_string" : "100.xx.xxx.xxx:1521:orcl", 
    "ip" : "", 
    "port" : "", 
    "service_name" : "", 
    "user_name" : "ugo" 
  }, 
  "target_db_info" : { 
    "connection_string" : "", 
    "ip" : "19x.1x8.x.96", 
    "port" : "3306", 
    "service_name" : "ugo", 
    "user_name" : "root" 
  }, 
  "created_time" : "2022-06-20t04:11:13z", 
  "updated_time" : "2022-06-20t04:11:13z" 
}

状态码

状态码

描述

200

请求成功。

错误码

请参见。

分享:
网站地图