Updated on 2024-09-04 GMT+08:00

Changing the Default Migration Project

Function

This API is used to change the default migration project. If you change the default migration project, the source server will be registered under the changed project.

Calling Method

For details, see Calling APIs.

URI

PUT /v3/migprojects/{mig_project_id}/default

Table 1 Path parameter

Parameter

Mandatory

Type

Description

mig_project_id

Yes

String

The migration project ID.

Minimum length: 0 characters

Maximum length: 255 characters

Request

Table 2 Request header parameter

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

The user token. It can be obtained by calling the IAM API (value of X-Subject-Token in the response header).

Minimum length: 1 character

Maximum length: 16,384 characters

Response

None

Example Request

This example changes the default migration project to 137224b7-8d7c-4919-b33e-ed159778xxx.

PUT https://{endpoint}/v3/migprojects/137224b7-8d7c-4919-b33e-ed159778xxxx/default

Example Response

None

Status Codes

Status Code

Description

200

The default migration project has been changed successfully.

Error Codes

For details, see Error Codes.