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: 0 characters Maximum length: 255 characters |
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 |
log_expire | Yes | Integer | The validity period Minimum value: 300 Maximum value: 64800 |
Response
None
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" : "centtos","log_expire" : 300}
Example Response
None
Status Codes
Status Code | Description |
---|---|
200 | ok |
Error Codes
For details, see Error Codes.
Parent topic: Task Management
- Function
- Calling Method
- URI
- Request
- Response
- Example Request
- Example Response
- Status Codes
- Error Codes