Updated on 2022-08-02 GMT+08:00

Uploading Migration Logs

Function

This API is used to upload migration logs to the SMS technical support.

URI

POST /v1/sms/tasks/{id}/action

For details about the parameter, see Table 1.
Table 1 Parameter description

Parameter

Mandatory

Description

id

Yes

Task ID. For details, see the returned ID in Creating a Migration Task.

Request

Request parameters

For details about the request parameter, see Table 2.

Table 2 Request parameter

Parameter

Mandatory

Type

Description

operation

Yes

String

The value is fixed to collect_log during log collection.

params

Yes

JSON

Specifies the OBS bucket and directory to which logs are uploaded. For details, see Table 3.

Table 3 params data structure

Parameter

Mandatory

Type

Description

bucket

Yes

String

Specifies the OBS bucket name.

object

Yes

String

Specifies the path for storing logs. If this parameter is left blank, logs are stored in the root directory of the OBS bucket.

Response

None

Example

  • Example request
    { 
      "operation":"collect_log",
      "params":
      { 
       "bucket":"logbucket",
       "object":"logfile"
      }
    } 
  • Example response

    None

Status Codes

See Status Codes.