Updated on 2025-11-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 length: 1 character

Maximum length: 36

Request

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

The user token.

Minimum length: 1 character

Maximum length: 16,384 characters

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

log_bucket

Yes

String

The bucket name.

Minimum length: 0 characters

Maximum length: 255 characters

Response

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

-

String

Migration task logs were uploaded successfully.

Example Request

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 Response

Status code: 200

Migration task logs were uploaded successfully.

{ }

Status Codes

Status Code

Description

200

Migration task logs were uploaded successfully.

Error Codes

For details, see Error Codes.