forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
82 lines
6.1 KiB
HTML
82 lines
6.1 KiB
HTML
<a name="mrs_02_0089"></a><a name="mrs_02_0089"></a>
|
|
|
|
<h1 class="topictitle1">Deleting Jobs in Batches</h1>
|
|
<div id="body1564813273439"><div class="section" id="mrs_02_0089__section4408504619327"><h4 class="sectiontitle">Function</h4><p id="mrs_02_0089__p5843728119329">This API is used to delete APIs in batches.</p>
|
|
</div>
|
|
<div class="section" id="mrs_02_0089__section10186656193217"><h4 class="sectiontitle">URI</h4><ul id="mrs_02_0089__ul2809877319471"><li id="mrs_02_0089__li5177607319471">Format<p id="mrs_02_0089__p42083682813"><a name="mrs_02_0089__li5177607319471"></a><a name="li5177607319471"></a>POST /v2/{project_id}/clusters/{cluster_id}/job-executions/batch-delete</p>
|
|
</li><li id="mrs_02_0089__li2957566119471">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_0089__table49499141194754" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameter description</caption><thead align="left"><tr id="mrs_02_0089__en-us_topic_0176713997_row33700024194754"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.2.1.2.4.1.1"><p id="mrs_02_0089__en-us_topic_0176713997_p16571835194812">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.2.1.2.4.1.2"><p id="mrs_02_0089__en-us_topic_0176713997_p141410194812">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.2.2.1.2.4.1.3"><p id="mrs_02_0089__en-us_topic_0176713997_p11454278194812">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_02_0089__en-us_topic_0176713997_row39786771142917"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.4.1.1 "><p id="mrs_02_0089__en-us_topic_0176713997_p1503055142917">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.4.1.2 "><p id="mrs_02_0089__en-us_topic_0176713997_p54638598142917">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.1.2.4.1.3 "><p id="mrs_02_0089__en-us_topic_0176713997_p63650338142917">Project ID. For details on how to obtain the project ID, see <a href="mrs_02_0011.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_02_0089__en-us_topic_0176713997_row3457216201210"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.4.1.1 "><p id="mrs_02_0089__en-us_topic_0176713997_p194589160122">cluster_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.4.1.2 "><p id="mrs_02_0089__en-us_topic_0176713997_p045813165125">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.1.2.4.1.3 "><p id="mrs_02_0089__en-us_topic_0176713997_p1845891641218">Cluster ID. For details on how to obtain the cluster ID, see <a href="mrs_02_0091.html#mrs_02_0091__section177891315153619">Obtaining a Cluster ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_02_0089__section673761354213"><h4 class="sectiontitle">Request</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_0089__table46210785193317" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameter description</caption><thead align="left"><tr id="mrs_02_0089__row34262165193317"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.2.2.5.1.1"><p id="mrs_02_0089__p12621391193317">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.3.2.2.5.1.2"><p id="mrs_02_0089__p15699711193317">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.3.2.2.5.1.3"><p id="mrs_02_0089__p562413019313">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.3.2.2.5.1.4"><p id="mrs_02_0089__p63717051193317">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_02_0089__row36582554193317"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.2.5.1.1 "><p id="mrs_02_0089__p2182648173014">job_id_list</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.2.5.1.2 "><p id="mrs_02_0089__p2181448193015">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.2.5.1.3 "><p id="mrs_02_0089__p3180194813304">Array</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.3.2.2.5.1.4 "><p id="mrs_02_0089__p151790482306">List of job IDs. For details on how to obtain the list of job IDs, see <a href="mrs_02_0091.html#mrs_02_0091__section247234143612">Obtaining a Job ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="mrs_02_0089__section775516131425"><h4 class="sectiontitle">Response</h4><p id="mrs_02_0089__p4719183584417"><strong id="mrs_02_0089__b8711231143820">Response parameters</strong></p>
|
|
<p id="mrs_02_0089__p11719113511446">None</p>
|
|
</div>
|
|
<div class="section" id="mrs_02_0089__section1210015461189"><h4 class="sectiontitle">Example</h4><ul id="mrs_02_0089__ul1958913536182"><li id="mrs_02_0089__li1558945321814">Example request<pre class="screen" id="mrs_02_0089__screen152194016245">{
|
|
"job_id_list": ["c23c1f53-5c8e-4eb8-ab2f-a6acff8ac369", "8f7969b6-d2fb-4442-9533-3fe7d7bdf31b"]
|
|
}</pre>
|
|
</li><li id="mrs_02_0089__li543710159193">Example response<ul id="mrs_02_0089__ul2727165412244"><li id="mrs_02_0089__li1742435962416">Example of a successful response<p id="mrs_02_0089__p141455910259"><a name="mrs_02_0089__li1742435962416"></a><a name="li1742435962416"></a>None</p>
|
|
</li><li id="mrs_02_0089__li1480742111816">Example of a failed response<pre class="screen" id="mrs_02_0089__screen9377651201811">{
|
|
"error_msg": "Failed to delete jobs in batches.",
|
|
"error_code":"0161"
|
|
}</pre>
|
|
</li></ul>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_02_0089__section4391766619434"><h4 class="sectiontitle">Status Code</h4><p id="mrs_02_0089__p1693116917524">For details about status codes, see <a href="mrs_02_0015.html">Status Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_02_0084.html">Job Object APIs (V2)</a></div>
|
|
</div>
|
|
</div>
|
|
|