Updated on 2026-01-27 GMT+08:00

Uploading Migration Task Logs

Function

This API is used to upload the logs of a migration task.

Calling Method

For details, see Calling APIs.

URI

POST /v3/tasks/{task_id}/log

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

task_id

Yes

String

The migration task ID.

Minimum: 1

Maximum: 36

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

The user token.

Minimum: 1

Maximum: 16384

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

log_bucket

Yes

String

The bucket name.

Minimum: 0

Maximum: 255

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

-

String

Migration task logs were uploaded successfully.

Example Requests

This example uploads migration task logs to bucket centos and sets the URL validity period to 300 seconds.

POST https://{endpoint}/v3/tasks/{task_id}/log

{
  "log_bucket" : "centos"
}

Example Responses

Status code: 200

Migration task logs were uploaded successfully.

{ }

Status Codes

Status Code

Description

200

Migration task logs were uploaded successfully.

Error Codes

See Error Codes.