forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: guoyanyan <guoyanyan3@huawei.com> Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
84 lines
8.5 KiB
HTML
84 lines
8.5 KiB
HTML
<a name="EN-US_TOPIC_0053158611"></a><a name="EN-US_TOPIC_0053158611"></a>
|
|
|
|
<h1 class="topictitle1">Detaching an EVS Disk from a BMS (Native OpenStack API)</h1>
|
|
<div id="body1489981670257"><div class="section" id="EN-US_TOPIC_0053158611__section53922917165259"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0053158611__p5680132165259">This API is used to detach an EVS disk from a BMS.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0053158611__section64211377173223"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0053158611__p50846285142457">If a BMS is stopped, disks can be detached from it without any limitation on the OS. If a BMS is in running state, the constraints are as follows:</p>
|
|
<ul id="EN-US_TOPIC_0053158611__ul6504732142640"><li id="EN-US_TOPIC_0053158611__li30953406142640">Before detaching an EVS disk from a Linux BMS, log in to the BMS, run the <strong id="EN-US_TOPIC_0053158611__b2066740651163621">unmount</strong> command to disassociate the disk to be detached from the file system, and ensure that no program is reading data from or writing data to the disk. Otherwise, the disk will fail to be detached.</li><li id="EN-US_TOPIC_0053158611__li13879338142640">Before detaching an EVS disk from a running Windows BMS, ensure that no program is reading data from or writing data to the disk. Otherwise, data will be lost.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0053158611__section51121191165259"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0053158611__p63141473165259">DELETE /v2.1/{project_id}/servers/{server_id}/os-volume_attachments/{volume_id}</p>
|
|
<p id="EN-US_TOPIC_0053158611__p132791319185314"><a href="#EN-US_TOPIC_0053158611__table88181828105313">Table 1</a> lists the parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0053158611__table88181828105313"></a><a name="table88181828105313"></a><table cellpadding="4" cellspacing="0" summary="" id="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_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_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_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_0053158611__p46355523165259">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="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_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_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_0053158611__p1624545165259">Specifies the project ID.</p>
|
|
<p id="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_0053158611__row15819152825317"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.1 "><p id="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_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_0053158611__p23511349151519">Specifies the BMS ID.</p>
|
|
<p id="EN-US_TOPIC_0053158611__p29791113277">You can obtain the BMS ID from the <span id="EN-US_TOPIC_0053158611__en-us_topic_0113746489_text013014803615">BMS</span><span id="EN-US_TOPIC_0053158611__en-us_topic_0113746489_text10131448133612"></span> console or by calling the <a href="en-us_topic_0053158693.html">Querying BMSs (Native OpenStack API)</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="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_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_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_0053158611__p35308521175857">Specifies the EVS disk ID.</p>
|
|
<p id="EN-US_TOPIC_0053158611__p102916285214">You can query attached EVS disks attached to a <span id="EN-US_TOPIC_0053158611__en-us_topic_0053158665_text1798918157392">BMS</span><span id="EN-US_TOPIC_0053158611__en-us_topic_0053158665_text10990131533919"></span><span id="EN-US_TOPIC_0053158611__en-us_topic_0053158665_text114684354498"></span> using the <a href="en-us_topic_0053158658.html">Querying Information About the Disks Attached to a BMS (Native OpenStack API)</a> API.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0053158611__section8194118165259"><h4 class="sectiontitle">Request</h4><ul id="EN-US_TOPIC_0053158611__ul1946793112531"><li id="EN-US_TOPIC_0053158611__li1174718551576">Request parameters<p id="EN-US_TOPIC_0053158611__p29473591773"><a name="EN-US_TOPIC_0053158611__li1174718551576"></a><a name="li1174718551576"></a>None</p>
|
|
</li><li id="EN-US_TOPIC_0053158611__li3467173113534">Example request<div class="codecoloring" codetype="Java" id="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>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0053158611__section58140617165259"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0053158611__p21580833175658">N/A</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0053158611__section7610951"><h4 class="sectiontitle">Returned Values</h4><div class="p" id="EN-US_TOPIC_0053158611__en-us_topic_0106040941_p193201622141412">Normal values
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0053158611__en-us_topic_0106040941_table753804619176" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0053158611__en-us_topic_0106040941_row10735134615172"><th align="left" class="cellrowborder" valign="top" width="42.42%" id="mcps1.3.6.2.1.1.3.1.1"><p id="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.6.2.1.1.3.1.2"><p id="EN-US_TOPIC_0053158611__en-us_topic_0106040941_p207355465176">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0053158611__en-us_topic_0106040941_row1473514621713"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.6.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0053158611__en-us_topic_0106040941_p13735144611178">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.6.2.1.1.3.1.2 "><p id="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_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_0053158611__section14752650154917"><h4 class="sectiontitle">Error Codes</h4><p id="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_0053158703.html">BMS Disk Management</a></div>
|
|
</div>
|
|
</div>
|
|
|