Updated on 2023-05-29 GMT+08:00

Querying Migration Project Details

Function

This API is used to query migration project details. It can be called only when the value of migration_project_status is READY.

URI

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

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region.

For details about how to obtain the project ID, see Obtaining a Project ID.

migration_project_id

Yes

String

Migration project ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token obtained from IAM.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

migration_project_id

Integer

Migration project ID.

migration_project_name

String

Migration project status.

evaluation_project_name

String

Evaluation project name.

source_db_info

Table 4 object

Source database information.

target_db_info

Table 4 object

Target database information.

created_time

String

Creation time.

updated_time

String

Update time.

Table 4 DataBase

Parameter

Type

Description

port

String

Port.

ip

String

IP address.

user_name

String

Username.

service_name

String

Service name.

connection_string

String

Connection string.

Example Request

Querying migration project details

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

Example Response

Status code: 200

Request succeeded.

{ 
  "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" 
}

Status Codes

Status Code

Description

200

Request succeeded.

Error Codes

For details, see Error Codes.