Updated on 2023-12-27 GMT+08:00

Stopping a Migration Task

Function

This API is used to stop a migration task that is in progress.

URI

PUT /v1/{project_id}/objectstorage/task/{task_id}

Table 1 describes the parameters in the URI.

Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

task_id

Yes

Specifies the task ID.

Request

Request Parameters

Table 2 describes the request parameters.

Table 2 Request parameters

Parameter

Mandatory

Type

Description

operation

Yes

String

Specifies the operation type, which is stop for this API.

Response

Response Parameters

None.

Examples

Request example

PUT /v1/{project_id}/objectstorage/task/{task_id}

{
    "operation": "stop"
}

Response example

None.

Status Code

For details about the status code, see Status Code.