forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: wanghuijuan738 <wanghuijuan738@huawei.com> Co-committed-by: wanghuijuan738 <wanghuijuan738@huawei.com>
84 lines
12 KiB
HTML
84 lines
12 KiB
HTML
<a name="EN-US_TOPIC_0000002340222816"></a><a name="EN-US_TOPIC_0000002340222816"></a>
|
|
|
|
<h1 class="topictitle1">Detaching an EVS Disk from a <span id="en-us_topic_0053158611_text8992548111218">BMS</span><span id="en-us_topic_0053158611_text15803221423"></span><span id="en-us_topic_0053158611_text205161451161216"></span></h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_section53922917165259"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p5680132165259">This API is used to detach an EVS disk from a <span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text596318507556">BMS</span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text496319500555"></span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text0963150115515"></span>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_section64211377173223"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p50846285142457">If a <span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text15191125413558">BMS</span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text9191165475519"></span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text319112542558"></span> is stopped, disks can be detached from it without any limitation on the OS. If a <span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text185369581551">BMS</span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text853619587555"></span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text1353605805519"></span> is running, the constraints are as follows:</p>
|
|
<ul id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_ul6504732142640"><li id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_li30953406142640">Before detaching an EVS disk from a Linux <span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text863513415614">BMS</span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text126351642561"></span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text19635143567"></span>, log in to the <span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text1928382567">BMS</span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text3928587569"></span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text99285885612"></span>, run <strong id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_b2066740651163621">unmount</strong> to unmount the disk from the file system, and ensure that no program is reading data from or writing data into the disk. Otherwise, the disk will fail to be detached.</li><li id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_li13879338142640">Before detaching an EVS disk from a Windows <span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text1727312144567">BMS</span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text1727371412562"></span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text1227313145567"></span>, ensure that no program is reading data from or writing data into the disk. Otherwise, data will be lost.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_section51121191165259"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p63141473165259">DELETE /v2.1/{project_id}/servers/{server_id}/os-volume_attachments/{volume_id}</p>
|
|
<p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p132791319185314"><a href="#EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_table88181828105313">Table 1</a> lists the parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_table88181828105313"></a><a name="en-us_topic_0053158611_table88181828105313"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_table88181828105313" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_row15819112816535"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.4.2.4.1.1"><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p58268319165259">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.4.2.4.1.2"><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p22113407165259">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.4.2.4.1.3"><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p46355523165259">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_row18819132875319"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p1217433165259">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p31503226165259">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p1624545165259">Specifies the project ID.</p>
|
|
<p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p13397185821014">For how to obtain the project ID, see <a href="https://docs.otc.t-systems.com/en-us/api/apiug/apig-en-api-180328009.html" target="_blank" rel="noopener noreferrer">Obtaining Required Information</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_row15819152825317"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p28142050151519">server_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p64913614151519">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p23511349151519">Specifies the <span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text16563976299145">BMS</span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text13363426949145"></span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text10498469789145"></span> ID.</p>
|
|
<p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p29791113277">You can obtain the BMS ID from the <span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0113746489_text895314101319">BMS</span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0113746489_text1695320481317"></span> console or by calling the API <a href="en-us_topic_0000002340063012.html">Querying BMSs</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_row16819182805319"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p44090003175857">volume_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p14520484175857">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p35308521175857">Specifies the EVS disk ID.</p>
|
|
<p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p102916285214">You can query attached EVS disks attached to a <span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0053158665_text1798918157392">BMS</span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0053158665_text10990131533919"></span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0053158665_text114684354498"></span> using the <a href="en-us_topic_0000002340063040.html#EN-US_TOPIC_0000002340063040">Querying Information About EVS Disks Attached to a BMS</a> API.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_section8194118165259"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p29473591773">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_section4680142018233"><h4 class="sectiontitle">Example Request</h4><div class="p" id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p2054253916232">Detaching an EVS disk (ID: b53f23bd-ee8f-49ec-9420-d1acfeaf91d6) attached from a <span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text18979102419564">BMS</span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text8979162445616"></span><span id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_text14979142465617"></span> (ID: 95bf2490-5428-432c-ad9b-5e3406f869dd)<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_screen116303409534"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">DELETE</span><span class="w"> </span><span class="n">https</span><span class="p">:</span><span class="c1">//{ECS Endpoint}/v2.1/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428-432c-ad9b-5e3406f869dd/os-volume_attachments/b53f23bd-ee8f-49ec-9420-d1acfeaf91d6</span>
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_section58140617165259"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_p21580833175658">N/A</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_section7610951"><h4 class="sectiontitle">Returned Values</h4><div class="p" id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0106040941_p193201622141412">Normal values
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0106040941_table753804619176" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0106040941_row10735134615172"><th align="left" class="cellrowborder" valign="top" width="42.42%" id="mcps1.3.7.2.1.1.3.1.1"><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0106040941_p19735204616177">Returned Values</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.58%" id="mcps1.3.7.2.1.1.3.1.2"><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0106040941_p207355465176">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0106040941_row1473514621713"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.7.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0106040941_p13735144611178">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.7.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0106040941_p207351246161711">The request has been successfully processed.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0106040941_p47633965">For details about other returned values, see <a href="en-us_topic_0053158690.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_section14752650154917"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000002340222816__en-us_topic_0053158611_en-us_topic_0106040941_p10243161417491">See <a href="en-us_topic_0107541808.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002340222812.html">BMS Disk Management (OpenStack Nova APIs)</a></div>
|
|
</div>
|
|
</div>
|
|
|