Obtaining Commands from SMS
Function
This API is called by the migration Agent to obtain instructions sent from the SMS server to the migration Agent on a specified source server.
This API is automatically called by the migration Agent to obtain migration instruction sent by the SMS server. You do not need to make calls to this API.
Request
None
Response
Response parameters
For details about the response parameters, see Table 2.
| Parameter | Type | Description |
|---|---|---|
| command_name | String | Specifies the command name. The options can be START, STOP, DELETE, and SYNC. |
| command_param | Json | Command parameters. For details, see Table 3. |
Example
- Example request
None
- Example response
- Starting a migration task
{ "command_name":"START", "command_param":{ "task_id":"2c0689c860ad4728a497c91ec0844384" } }
- Stopping a migration task
{ "command_name":"STOP", "command_param":{ "task_id":"2c0689c860ad4728a497c91ec0844384" } } - Synchronizing data after a migration task is complete
{ "command_name":"SYNC" "command_param":{ "task_id":"2c0689c860ad4728a497c91ec0844384" } } - Deleting a migration task
{ "command_name":"DELETE" "command_param":{ "task_id":"2c0689c860ad4728a497c91ec0844384" } } - Collecting migration logs to a specified OBS bucket
{ "command_name":"UPLOAD_LOG" "command_param":{ "bucket":"logbucket" "object":"" } }
- Starting a migration task
Status Code
For details about the status code, see Status Code.
Error Code
For details, see Error Code.
Last Article: Command Management
Next Article: Reporting the Migration Instruction Execution Result to the SMS Server
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.