doc-exports/docs/drs/api-ref/drs_03_0130.html
Wang , Deng Ke 231618c804 DRS API 2.0.38SP23 version
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2022-11-24 16:49:13 +00:00

307 lines
22 KiB
HTML

<a name="drs_03_0130"></a><a name="drs_03_0130"></a>
<h1 class="topictitle1">Setting Flow Control for Tasks</h1>
<div id="body719912545019"><div class="section" id="drs_03_0130__section919922518502"><h4 class="sectiontitle">Function</h4><p id="drs_03_0130__p31992252503">This API is used to enable or disable flow control for tasks. By default, the migration speed is not limited after a task is created.</p>
<ul id="drs_03_0130__ul1519915258501"><li id="drs_03_0130__li119952516505">You can customize the maximum migration speed.</li><li id="drs_03_0130__li13200525205017">If the migration speed is not limited, the outbound bandwidth of the source database is maximally used, which causes read consumption on the source database accordingly. For example, if the outbound bandwidth of the source database is 100 MB/s and 80% bandwidth is used, the I/O consumption on the source database is 80 MB/s.</li></ul>
</div>
<div class="section" id="drs_03_0130__section12001825195010"><h4 class="sectiontitle">Constraints</h4><ul id="drs_03_0130__ul169943312218"><li id="drs_03_0130__li136992335225">You can set the time range based on your service requirements. Flow can be controlled all day or during specific time ranges. The default value is <strong id="drs_03_0130__b166921753113117">All day</strong>.</li><li id="drs_03_0130__li17538153619227">A maximum of three time ranges can be set, and they cannot overlap.</li><li id="drs_03_0130__li1870253992216">The start time cannot be the same as the end time.</li><li id="drs_03_0130__li457494319222">If the start time is 16:00 and the end time is 15:59, the bandwidth is limited for the whole day.</li><li id="drs_03_0130__li32921449142217">If <strong id="drs_03_0130__b62274413218">speed_limit</strong> is set to <strong id="drs_03_0130__b17620204615329">[]</strong>, the speed is not limited.</li><li id="drs_03_0130__li178571241516">The minute in the start time is ignored. The end time must be ended with 59. For example, 03:59 is equivalent to 04:00 (UTC) and the hour is a two-digit number.</li><li id="drs_03_0130__li91061335132211">In the dual-active DR scenario, the parent task cannot call the API.</li><li id="drs_03_0130__li6365144517529">This API cannot be used when the task mode is <strong id="drs_03_0130__b111951134471">INCR_TRANS</strong>.</li></ul>
</div>
<div class="section" id="drs_03_0130__section142000255509"><h4 class="sectiontitle">URI</h4><p id="drs_03_0130__p112001125145018">PUT /v3/{project_id}/jobs/batch-limit-speed</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0130__table7201132519504" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="drs_03_0130__row10201525205015"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="drs_03_0130__p7201122565019">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="drs_03_0130__p1201725195019">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="drs_03_0130__p1020142512506">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="drs_03_0130__p1720232518509">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0130__row172010251507"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="drs_03_0130__p152020254505">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="drs_03_0130__p1820216256501">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="drs_03_0130__p8202192512505">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="drs_03_0130__p1520222511509">Project ID of a tenant in a region</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="drs_03_0130__section72022025195011"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0130__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="drs_03_0130__row420352525011"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="drs_03_0130__p15203132545016">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.05%" id="mcps1.3.4.2.2.5.1.2"><p id="drs_03_0130__p1720302516505">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.950000000000003%" id="mcps1.3.4.2.2.5.1.3"><p id="drs_03_0130__p15204152519506">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="drs_03_0130__p1820415253508">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0130__row1920392513509"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="drs_03_0130__p112057251500">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20.05%" headers="mcps1.3.4.2.2.5.1.2 "><p id="drs_03_0130__p1320515253503">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="19.950000000000003%" headers="mcps1.3.4.2.2.5.1.3 "><p id="drs_03_0130__p19205102519509">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="drs_03_0130__p6648400198">The content type.</p>
<p id="drs_03_0130__p123256415450">The default value is <strong id="drs_03_0130__b12115545181912">application/json</strong>.</p>
</td>
</tr>
<tr id="drs_03_0130__row1620342517500"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="drs_03_0130__p3205122555016">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20.05%" headers="mcps1.3.4.2.2.5.1.2 "><p id="drs_03_0130__p1320522517504">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="19.950000000000003%" headers="mcps1.3.4.2.2.5.1.3 "><p id="drs_03_0130__p72061425115019">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="drs_03_0130__p1420617258505">User token obtained from IAM.</p>
</td>
</tr>
<tr id="drs_03_0130__row162034250509"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="drs_03_0130__p18206102514506">X-Language</p>
</td>
<td class="cellrowborder" valign="top" width="20.05%" headers="mcps1.3.4.2.2.5.1.2 "><p id="drs_03_0130__p220672555017">No</p>
</td>
<td class="cellrowborder" valign="top" width="19.950000000000003%" headers="mcps1.3.4.2.2.5.1.3 "><p id="drs_03_0130__p182060256503">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="drs_03_0130__p420612258509">Request language type</p>
<p id="drs_03_0130__p68691956125917">Default value: <strong id="drs_03_0130__b1786912566599">en-us</strong></p>
<p id="drs_03_0130__p1386915625912">Values:</p>
<ul id="drs_03_0130__ul1586965613591"><li id="drs_03_0130__li1886915655910"><strong id="drs_03_0130__b158691656145912">en-us</strong></li><li id="drs_03_0130__li17869125685916"><strong id="drs_03_0130__b12869175615914">zh-cn</strong></li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0130__requestParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="drs_03_0130__row3207112512500"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="drs_03_0130__p19207102515017">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.2"><p id="drs_03_0130__p2207142513509">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.3"><p id="drs_03_0130__p520718250503">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.3.2.5.1.4"><p id="drs_03_0130__p1920852513501">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0130__row10207132555012"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="drs_03_0130__p17208142517508">speed_limits</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="drs_03_0130__p1120815259505">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="drs_03_0130__p62081025175014">Array of <a href="#drs_03_0130__request_LimitSpeedReq">LimitSpeedReq</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="drs_03_0130__p172085258508">Speed limit in DR.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="drs_03_0130__request_LimitSpeedReq"></a><a name="request_LimitSpeedReq"></a><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0130__request_LimitSpeedReq" frame="border" border="1" rules="all"><caption><b>Table 4 </b>LimitSpeedReq</caption><thead align="left"><tr id="drs_03_0130__row18209725175019"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.1"><p id="drs_03_0130__p6209192519505">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.2"><p id="drs_03_0130__p820902516508">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.3"><p id="drs_03_0130__p9209142595016">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.4.2.5.1.4"><p id="drs_03_0130__p16210112565013">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0130__row11209182512508"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="drs_03_0130__p52103255507">job_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="drs_03_0130__p921062595014">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="drs_03_0130__p1821092505016">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="drs_03_0130__p82101525115013">Task ID.</p>
</td>
</tr>
<tr id="drs_03_0130__row11209172513507"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="drs_03_0130__p32105250507">speed_limit</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="drs_03_0130__p6211122525012">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="drs_03_0130__p10211325185014">Array of <a href="#drs_03_0130__request_SpeedLimitInfo">SpeedLimitInfo</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="drs_03_0130__p02111254507">Request body of flow control information.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="drs_03_0130__request_SpeedLimitInfo"></a><a name="request_SpeedLimitInfo"></a><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0130__request_SpeedLimitInfo" frame="border" border="1" rules="all"><caption><b>Table 5 </b>SpeedLimitInfo</caption><thead align="left"><tr id="drs_03_0130__row1321112258506"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.5.1.1"><p id="drs_03_0130__p1621202575020">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.5.1.2"><p id="drs_03_0130__p5212182555010">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.5.1.3"><p id="drs_03_0130__p921216252502">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.5.2.5.1.4"><p id="drs_03_0130__p121232515505">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0130__row102111925175016"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="drs_03_0130__p9213525155019">begin</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="drs_03_0130__p182132256503">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="drs_03_0130__p3213825185010">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="drs_03_0130__p1721372514509">Start time (UTC) of flow control. The start time is an integer in hh:mm format and the minutes part is ignored. <strong id="drs_03_0130__b3227132353810">hh</strong> indicates the hour, for example, 01:00.</p>
</td>
</tr>
<tr id="drs_03_0130__row15211162518509"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="drs_03_0130__p17213202515019">end</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="drs_03_0130__p1421362555010">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="drs_03_0130__p3214525115010">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="drs_03_0130__p11321123775518">End time (UTC) in the format of hh:mm, for example, 15:59. The value must end with 59.</p>
</td>
</tr>
<tr id="drs_03_0130__row121262517504"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="drs_03_0130__p18215925185019">speed</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="drs_03_0130__p112151125205015">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="drs_03_0130__p1921515255506">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="drs_03_0130__p11208854155517">Speed. The value ranges from 1 to 9,999, in MB/s.</p>
</td>
</tr>
<tr id="drs_03_0130__row1518342861317"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="drs_03_0130__p10749943913">is_utc</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="drs_03_0130__p13749445911">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="drs_03_0130__p1474910411916">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="drs_03_0130__p18749741999">Whether the UTC time is used.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="drs_03_0130__section521522512502"><h4 class="sectiontitle">Response Parameters</h4><p id="drs_03_0130__p1221517253501"><strong id="drs_03_0130__b921518256506">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0130__responseParameter" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="drs_03_0130__row15216925105018"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="drs_03_0130__p10216122545019">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.2"><p id="drs_03_0130__p4216162565019">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.3.2.4.1.3"><p id="drs_03_0130__p8216102515017">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0130__row12216172520507"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="drs_03_0130__p1421792513507">count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="drs_03_0130__p1521712251506">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="drs_03_0130__p1421717253503">Total number.</p>
</td>
</tr>
<tr id="drs_03_0130__row192161125125019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="drs_03_0130__p6217825155017">results</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="drs_03_0130__p421710251507">Array of <a href="#drs_03_0130__response_ModifyJobResp">ModifyJobResp</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="drs_03_0130__p82181254501">List of tasks that are modified in batches.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="drs_03_0130__response_ModifyJobResp"></a><a name="response_ModifyJobResp"></a><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0130__response_ModifyJobResp" frame="border" border="1" rules="all"><caption><b>Table 7 </b>ModifyJobResp</caption><thead align="left"><tr id="drs_03_0130__row0218325185012"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.1"><p id="drs_03_0130__p182191925115013">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.2"><p id="drs_03_0130__p8219725155018">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.4.2.4.1.3"><p id="drs_03_0130__p182191525105018">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0130__row1221862517509"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="drs_03_0130__p4219125155017">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="drs_03_0130__p121913251506">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="drs_03_0130__p142191925105016">Task ID.</p>
</td>
</tr>
<tr id="drs_03_0130__row321814254501"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="drs_03_0130__p13220122518509">status</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="drs_03_0130__p522002517502">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="drs_03_0130__p162209255503">Status Values:</p>
<ul id="drs_03_0130__ul5220725175015"><li id="drs_03_0130__li722002575014"><strong id="drs_03_0130__b84235270617175">success</strong>: The task is successful.</li><li id="drs_03_0130__li17220925205017"><strong id="drs_03_0130__b842352706171654">failed</strong>: The task fails.</li></ul>
</td>
</tr>
<tr id="drs_03_0130__row13218025195015"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="drs_03_0130__p122119256507">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="drs_03_0130__p422119252506">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="drs_03_0130__p2221225175014">Error code, which is optional and indicates the returned information about the failure status.</p>
</td>
</tr>
<tr id="drs_03_0130__row1218112516503"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="drs_03_0130__p15221122510506">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="drs_03_0130__p102213259508">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="drs_03_0130__p02221625195019">Error message, which is optional and indicates the returned information about the failure status.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="drs_03_0130__section142220255502"><h4 class="sectiontitle">Example Request</h4><p id="drs_03_0130__p1022272565010">Example of setting flow control for DR tasks in batches:</p>
<pre class="screen" id="drs_03_0130__screen21428470481">https://{Endpoint}/v3/054ba152d480d55b2f5dc0069e7ddef0/jobs/batch-limit-speed</pre>
<pre class="screen" id="drs_03_0130__screen76485569480">{
"speed_limits" : [ {
"job_id" : "7d0504f1-aba3-435f-914f-936b861jb502",
"speed_limit" : [ {
"begin" : "16:00",
"end" : "15:59",
"speed" : "15"
} ]
} ]
}</pre>
</div>
<div class="section" id="drs_03_0130__section1522414258508"><h4 class="sectiontitle">Example Response</h4><p id="drs_03_0130__p1422412585018"><strong id="drs_03_0130__b13224202525017">Status code: 200</strong></p>
<p id="drs_03_0130__p1722492575013">OK</p>
<pre class="screen" id="drs_03_0130__screen102241225135012">{
"results" : [ {
"id" : "efa2bd29-8780-494f-a2ee-188b003ejb11",
"status" : "success"
} ],
"count" : 1
}</pre>
</div>
<div class="section" id="drs_03_0130__section4225132505019"><h4 class="sectiontitle">Status Code</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0130__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="drs_03_0130__row6225525145018"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="drs_03_0130__p522614253506">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="drs_03_0130__p112261025115014">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0130__row12225172515016"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="drs_03_0130__p32269258506">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="drs_03_0130__p57611637181416">OK</p>
</td>
</tr>
<tr id="drs_03_0130__row82259259502"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="drs_03_0130__p1122615254500">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="drs_03_0130__p522632512507">Bad Request</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="drs_03_0130__section1422632505017"><h4 class="sectiontitle">Error Code</h4><p id="drs_03_0130__p1022762512504">For details, see <a href="drs_05_0004.html">Error Code</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="drs_03_0101.html">Public API Management</a></div>
</div>
</div>