Obtaining Commands from SMS
Function
This API is called by the migration Agent to obtain commands 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 command 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 |
Specifies the command parameters. For details, see Table 3. |
Example
- 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
See Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot