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.4 KiB
HTML
82 lines
6.4 KiB
HTML
<a name="mrs_02_0088"></a><a name="mrs_02_0088"></a>
|
|
|
|
<h1 class="topictitle1">Terminating a Job</h1>
|
|
<div id="body1561793573955"><div class="section" id="mrs_02_0088__section4408504619327"><h4 class="sectiontitle">Function</h4><p id="mrs_02_0088__p5843728119329">This API is used to terminate a specified job in an MRS cluster.</p>
|
|
</div>
|
|
<div class="section" id="mrs_02_0088__section10186656193217"><h4 class="sectiontitle">URI</h4><ul id="mrs_02_0088__ul2809877319471"><li id="mrs_02_0088__li5177607319471">Format<p id="mrs_02_0088__p133107519237"><a name="mrs_02_0088__li5177607319471"></a><a name="li5177607319471"></a>POST /v2/{project_id}/clusters/{cluster_id}/job-executions/{job_execution_id}/kill</p>
|
|
</li><li id="mrs_02_0088__li2957566119471">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_0088__table49499141194754" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameter description</caption><thead align="left"><tr id="mrs_02_0088__en-us_topic_0176790808_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_0088__en-us_topic_0176790808_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_0088__en-us_topic_0176790808_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_0088__en-us_topic_0176790808_p11454278194812">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_02_0088__en-us_topic_0176790808_row39786771142917"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.4.1.1 "><p id="mrs_02_0088__en-us_topic_0176790808_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_0088__en-us_topic_0176790808_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_0088__en-us_topic_0176790808_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_0088__en-us_topic_0176790808_row3457216201210"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.4.1.1 "><p id="mrs_02_0088__en-us_topic_0176790808_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_0088__en-us_topic_0176790808_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_0088__en-us_topic_0176790808_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>
|
|
<tr id="mrs_02_0088__en-us_topic_0176790808_row121835121146"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.1.2.4.1.1 "><p id="mrs_02_0088__en-us_topic_0176790808_p218419125412">job_execution_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_0088__en-us_topic_0176790808_p16184161212420">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_0088__en-us_topic_0176790808_p121844121440">Job ID. For details on how to obtain the job ID, see <a href="mrs_02_0091.html#mrs_02_0091__section247234143612">Obtaining a Job ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_02_0088__section673761354213"><h4 class="sectiontitle">Request</h4><p id="mrs_02_0088__p1842961591514"><strong id="mrs_02_0088__b178210433498">Request parameters</strong></p>
|
|
<p id="mrs_02_0088__p106160258151">None</p>
|
|
</div>
|
|
<div class="section" id="mrs_02_0088__section775516131425"><h4 class="sectiontitle">Response</h4><p id="mrs_02_0088__p4719183584417"><strong id="mrs_02_0088__b956555014912">Response parameters</strong></p>
|
|
<p id="mrs_02_0088__p11719113511446">None</p>
|
|
</div>
|
|
<div class="section" id="mrs_02_0088__section1210015461189"><h4 class="sectiontitle">Example</h4><ul id="mrs_02_0088__ul1958913536182"><li id="mrs_02_0088__li1558945321814">Example request<p id="mrs_02_0088__p83171441151516"><a name="mrs_02_0088__li1558945321814"></a><a name="li1558945321814"></a>None</p>
|
|
</li><li id="mrs_02_0088__li543710159193">Example response<ul id="mrs_02_0088__ul2727165412244"><li id="mrs_02_0088__li1742435962416">Example of a successful response<p id="mrs_02_0088__p141455910259"><a name="mrs_02_0088__li1742435962416"></a><a name="li1742435962416"></a>None</p>
|
|
</li><li id="mrs_02_0088__li1480742111816">Example of a failed response<pre class="screen" id="mrs_02_0088__screen9377651201811">{
|
|
"error_msg": "Failed to terminate the job."
|
|
"error_code":"0175"
|
|
}</pre>
|
|
</li></ul>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_02_0088__section4391766619434"><h4 class="sectiontitle">Status Code</h4><p id="mrs_02_0088__p5547365016031"><a href="#mrs_02_0088__table1584477916050">Table 2</a> describes status codes.</p>
|
|
|
|
<div class="tablenoborder"><a name="mrs_02_0088__table1584477916050"></a><a name="table1584477916050"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_0088__table1584477916050" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Status code</caption><thead align="left"><tr id="mrs_02_0088__row1339492016050"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.6.3.2.3.1.1"><p id="mrs_02_0088__p3411176516050">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.6.3.2.3.1.2"><p id="mrs_02_0088__p1158961516050">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_02_0088__row3719767816050"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.6.3.2.3.1.1 "><p id="mrs_02_0088__p6022194016050">202</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.6.3.2.3.1.2 "><p id="mrs_02_0088__p4613894216050">The job termination request has been accepted. Please wait.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="mrs_02_0088__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>
|
|
|