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

Reporting Data Migration Progress

Function

This API is called the migration Agent installed on the source server during data migration to report the migration progress to the SMS server.

This API is automatically called by the migration Agent to report migration progress to SMS. You do not need to make calls to this API.

URI

PUT /v1/sms/tasks/{task_id}/progress

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

Parameter

Mandatory

Description

task_id

Yes

Specifies the task ID.

Request

Request parameters

For details about the request parameters, see Table 2.

Table 2 Request parameters

Parameter

Mandatory

Type

Description

subtask_name

Yes

String

Specifies the subtask name.

progress

Yes

Integer

Specifies the progress of a subtask. The value is an integer ranging from 0 to 100.

migrate_speed

No

Double

Specifies the migration speed in MByte/s.

Response

None

Example

  • Example request
    { 
    "subtask_name":"ATTACH_AGENT_IMAGE",  
    "progress":100
    } 
  • Example response

    None

Status Codes

See Status Codes.