forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
161 lines
12 KiB
HTML
161 lines
12 KiB
HTML
<a name="dli_02_0293"></a><a name="dli_02_0293"></a>
|
|
|
|
<h1 class="topictitle1">Deleting Scheduled CU Changes in Batches (Discarded)</h1>
|
|
<div id="body1594192554763"><div class="section" id="dli_02_0293__section18998185384911"><h4 class="sectiontitle">Function</h4><p id="dli_02_0293__p342141019132">This API is used to delete scheduled CU changes in batches.</p>
|
|
<div class="note" id="dli_02_0293__note794562214412"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dli_02_0293__dli_02_0298_p69451622184111">This API has been discarded and is not recommended.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="dli_02_0293__s9e1b8ec5b57c422a942b19835da7d66e"><h4 class="sectiontitle">URI</h4><ul id="dli_02_0293__en-us_topic_0069077927_ul10082125"><li id="dli_02_0293__en-us_topic_0069077927_li23630265">URI format<p id="dli_02_0293__en-us_topic_0069077927_p11345797"><a name="dli_02_0293__en-us_topic_0069077927_li23630265"></a><a name="en-us_topic_0069077927_li23630265"></a>POST /v1/{project_id}/queues/{queue_name}/plans/batch-delete</p>
|
|
</li><li id="dli_02_0293__li1725612218454">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0293__en-us_topic_0069077803_table60779388" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="dli_02_0293__en-us_topic_0069077803_row61411666"><th align="left" class="cellrowborder" valign="top" width="13.900000000000002%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="dli_02_0293__a420a62a594f9410eaea229ffc8037a61">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="10.42%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="dli_02_0293__en-us_topic_0069077803_p873025824211">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.120000000000001%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="dli_02_0293__p13665149163111">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="63.56%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="dli_02_0293__a692d3cd97b464aed90ba6d841900a4a5">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0293__en-us_topic_0069077803_row48589216"><td class="cellrowborder" valign="top" width="13.900000000000002%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0293__en-us_topic_0069077803_p43412436">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.42%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0293__en-us_topic_0069077803_p26746391">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0293__p966612495312">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.56%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0293__p1310472724012">Project ID, which is used for resource isolation. For details about how to obtain its value, see <a href="dli_02_0183.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0293__row1691519137166"><td class="cellrowborder" valign="top" width="13.900000000000002%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0293__p58451326141618">queue_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.42%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0293__p138451726171613">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0293__p1966684913314">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.56%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0293__p10845102621613">Name of the queue for which the scheduled CU change is to be deleted. The name contains 1 to 128 characters. Use commas (,) to separate multiple queue names.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="dli_02_0293__section20458182103"><h4 class="sectiontitle">Request</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0293__table75729474247" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="dli_02_0293__row55738472249"><th align="left" class="cellrowborder" valign="top" width="16.41%" id="mcps1.3.3.2.2.5.1.1"><p id="dli_02_0293__p11573204732411">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="10.48%" id="mcps1.3.3.2.2.5.1.2"><p id="dli_02_0293__p65731647142420">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.23%" id="mcps1.3.3.2.2.5.1.3"><p id="dli_02_0293__p95731947152415">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60.88%" id="mcps1.3.3.2.2.5.1.4"><p id="dli_02_0293__p8573144792417">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0293__row8573164711249"><td class="cellrowborder" valign="top" width="16.41%" headers="mcps1.3.3.2.2.5.1.1 "><p id="dli_02_0293__p148834461553">plan_ids</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.48%" headers="mcps1.3.3.2.2.5.1.2 "><p id="dli_02_0293__p1888311468556">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.23%" headers="mcps1.3.3.2.2.5.1.3 "><p id="dli_02_0293__p2087014020560">Array of Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.3.2.2.5.1.4 "><p id="dli_02_0293__p17883746185514">Scaling policy IDs of the queues you want to delete. For details, see <a href="dli_02_0292.html">Viewing a Scheduled CU Change (Discarded)</a>. Example: "plan_ids": [8,10]</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0293__sd1ecb66580054b2ea403be8b2272a2c7"><h4 class="sectiontitle">Response</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0293__en-us_topic_0069077927_table56638444" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response parameters</caption><thead align="left"><tr id="dli_02_0293__en-us_topic_0069077927_row48911609"><th align="left" class="cellrowborder" valign="top" width="19.79%" id="mcps1.3.4.2.2.5.1.1"><p id="dli_02_0293__ae076f6b3f1bf463b9cc087fc566253d5">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.43%" id="mcps1.3.4.2.2.5.1.2"><p id="dli_02_0293__p12583123083811">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.9%" id="mcps1.3.4.2.2.5.1.3"><p id="dli_02_0293__a59685f4525af4d82a623288ff8ccb0f4">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60.88%" id="mcps1.3.4.2.2.5.1.4"><p id="dli_02_0293__en-us_topic_0069077927_p632718127368">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0293__en-us_topic_0069077927_row27919264"><td class="cellrowborder" valign="top" width="19.79%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0293__en-us_topic_0069077927_p46867877">is_success</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.43%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0293__p9584230133817">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.9%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0293__en-us_topic_0069077927_p7327597">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0293__en-us_topic_0069077927_p56664447">Indicates whether the request is successfully executed. Value <span class="parmvalue" id="dli_02_0293__parmvalue15544115155755"><b>true</b></span> indicates that the request is successfully executed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0293__en-us_topic_0069077927_row40217981"><td class="cellrowborder" valign="top" width="19.79%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0293__en-us_topic_0069077927_p36431005">message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.43%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0293__p95842301382">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.9%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0293__en-us_topic_0069077927_p49163111">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0293__a4fa277540d3e42e48cec2027a36ca6bc">System prompt. If execution succeeds, the parameter setting may be left blank.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0293__section15772143623410"><h4 class="sectiontitle">Example Request</h4><p id="dli_02_0293__p3562046489">Delete the scaling plans whose IDs are 3 and 4.</p>
|
|
<pre class="screen" id="dli_02_0293__screen764214332619">{
|
|
"plan_ids": [3,4]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="dli_02_0293__section59635464345"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="dli_02_0293__screen4559121772114">{
|
|
"is_success": true,
|
|
"message": ""
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="dli_02_0293__s1b495ba11cd9411c9ad2ee50103334a7"><h4 class="sectiontitle">Status Codes</h4><p id="dli_02_0293__acef1445366354016b2ed90921927a555"><a href="#dli_02_0293__t43c1f1c0ba344f4cbcb270953d9cca2a">Table 4</a> describes status codes.</p>
|
|
|
|
<div class="tablenoborder"><a name="dli_02_0293__t43c1f1c0ba344f4cbcb270953d9cca2a"></a><a name="t43c1f1c0ba344f4cbcb270953d9cca2a"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0293__t43c1f1c0ba344f4cbcb270953d9cca2a" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Status codes</caption><thead align="left"><tr id="dli_02_0293__r2ad0f008ce2248a1800a3e8b77226a56"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.7.3.2.3.1.1"><p id="dli_02_0293__afa33b7f5b0ac4d008ebcf6493f629b24">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.7.3.2.3.1.2"><p id="dli_02_0293__af801170b350b4f8ba3b575c7ddb8b13e">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0293__r0b449b1d3b8c498ea3e6cce16c80a14c"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0293__a8c63a97e3bad402ebaead0bd99cad632">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0293__p528373855714">Deletion succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0293__row1012873412149"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0293__p1912813348145">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0293__p154287617445">Request failure.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0293__row1075072973411"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0293__p18751182983416">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0293__p18603201515359">Internal service error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0293__section13596141025715"><h4 class="sectiontitle">Error Codes</h4><p id="dli_02_0293__dli_02_0225_p420584425712">If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see <a href="dli_02_0056.html">Error Codes</a>.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0293__dli_02_0225_table847819307387" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Error codes</caption><thead align="left"><tr id="dli_02_0293__dli_02_0225_row2479163016383"><th align="left" class="cellrowborder" valign="top" width="14.299999999999999%" id="mcps1.3.8.3.2.3.1.1"><p id="dli_02_0293__dli_02_0225_p114796309389">Error Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85.7%" id="mcps1.3.8.3.2.3.1.2"><p id="dli_02_0293__dli_02_0225_p1647973053817">Error Message</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0293__dli_02_0225_row1047920308387"><td class="cellrowborder" valign="top" width="14.299999999999999%" headers="mcps1.3.8.3.2.3.1.1 "><p id="dli_02_0293__p15201549154516">DLI.0002</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85.7%" headers="mcps1.3.8.3.2.3.1.2 "><p id="dli_02_0293__p3450384467">The plans with id 8, 9 do not exist.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_02_0361.html">Queue-related APIs (Discarded)</a></div>
|
|
</div>
|
|
</div>
|
|
|