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