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
Parameter | Mandatory | Type | Description |
|---|---|---|---|
task_id | Yes | String | The migration task ID. Minimum: 1 Maximum: 36 |
Request Parameters
Parameter | Mandatory | Type | Description |
|---|---|---|---|
X-Auth-Token | Yes | String | The user token. Minimum: 1 Maximum: 16384 |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
log_bucket | Yes | String | The bucket name. Minimum: 0 Maximum: 255 |
Response Parameters
Status code: 200
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.

