Setting the Migration Rate
Function
This API is used to set the migration rate of a migration task.
Request
Request parameters
For details about the request parameter, see Table 2.
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| speed_limit | Yes | Integer | Specifies the information about the time segment when the migration rate is limited. For details, see Table 3. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| start | Yes | String | Specifies the start time of a segment. The format is: XX:XX. |
| end | Yes | String | Specifies the end time of a segment. The format is: XX:XX. |
| speed | Yes | Integer | Specifies the migration rate in a time segment. The value is an integer ranging from 0 to 1000. Unit: Mbit/s. |
Response
N/A
Example
- Example request
POST /v1/sms/tasks/ a45a300b-86b5-4b13-8802-52274fa43016/speed-limit
{ "speed_limit": [ { "start": "0:00", "end": "8:00", "speed": 20 }, { "start": "8:00", "end": "15:00", "speed": 50 }, { "start": "15:00", "end": "24:00", "speed": 25 } ] } - Example response
None
Status Code
For details about the status code, see Status Code.
Error Code
For details, see Error Code.
Last Article: Deleting Migration Tasks in Batches
Next Article: Querying the Migration Rate
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.