Pausing a Migration Task

Function

This API is used to stop a migration task that is in the Migrating state.

Debugging

You can debug this API in API Explorer.

URI

POST /v2/{project_id}/tasks/{task_id}/stop

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

Minimum length: 1 character

Maximum length: 1,024 characters

task_id

Yes

Long

Specifies the migration task ID.

Minimum value: 0

Maximum value: 999999999999999

Request

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Specifies the token used for IAM authentication.

Minimum length: 1 character

Maximum length: 16,384 characters

Response

Status code: 400

Table 3 Response body parameters

Parameter

Type

Description

error_msg

String

Specifies the error message.

error_code

String

Specifies the error code.

Status code: 403

Table 4 Response body parameters

Parameter

Type

Description

error_msg

String

Specifies the error message.

error_code

String

Specifies the error code.

Example Request

None

Example Response

None

Status Codes

Status Code

Description

200

OK

400

Bad Request

403

Forbidden

Error Codes

See Error Codes.