forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com> Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
78 lines
5.9 KiB
HTML
78 lines
5.9 KiB
HTML
<a name="deh_02_0024"></a><a name="deh_02_0024"></a>
|
|
|
|
<h1 class="topictitle1">Releasing a DeH</h1>
|
|
<div id="body1512563929533"><div class="section" id="deh_02_0024__section43680716"><h4 class="sectiontitle">Function</h4><p id="deh_02_0024__p41815528">This API is used to release a DeH.</p>
|
|
</div>
|
|
<div class="section" id="deh_02_0024__section48477080"><h4 class="sectiontitle">Constraints</h4><p id="deh_02_0024__p40011092">A DeH accommodating ECSs cannot be released.</p>
|
|
</div>
|
|
<div class="section" id="deh_02_0024__section57582125"><h4 class="sectiontitle">URI</h4><p id="deh_02_0024__p17716181815617">DELETE /v1.0/{project_id}/dedicated-hosts/{dedicated_host_id}</p>
|
|
<p id="deh_02_0024__p4242153035813"><a href="#deh_02_0024__table572214121015">Table 1</a> describes the parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="deh_02_0024__table572214121015"></a><a name="table572214121015"></a><table cellpadding="4" cellspacing="0" summary="" id="deh_02_0024__table572214121015" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters description</caption><thead align="left"><tr id="deh_02_0024__row572516410109"><th align="left" class="cellrowborder" valign="top" width="21.23787621237876%" id="mcps1.3.3.4.2.5.1.1"><p id="deh_02_0024__p107252049107"><strong id="deh_02_0024__b3748104017259">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.44765523447655%" id="mcps1.3.3.4.2.5.1.2"><p id="deh_02_0024__p726975522919"><strong id="deh_02_0024__b1611144220256">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.48755124487551%" id="mcps1.3.3.4.2.5.1.3"><p id="deh_02_0024__p072564201017"><strong id="deh_02_0024__b189294272515">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="30.826917308269174%" id="mcps1.3.3.4.2.5.1.4"><p id="deh_02_0024__p47253421017"><strong id="deh_02_0024__b1570119439251">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="deh_02_0024__row107256481017"><td class="cellrowborder" valign="top" width="21.23787621237876%" headers="mcps1.3.3.4.2.5.1.1 "><p id="deh_02_0024__p1872514451016">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.44765523447655%" headers="mcps1.3.3.4.2.5.1.2 "><p id="deh_02_0024__p12269175511291">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.48755124487551%" headers="mcps1.3.3.4.2.5.1.3 "><p id="deh_02_0024__p147251646108">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.826917308269174%" headers="mcps1.3.3.4.2.5.1.4 "><p id="deh_02_0024__p6725747104">Specifies the project ID.</p>
|
|
<p id="deh_02_0024__p7376194915119">For details about 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="deh_02_0024__row184436404555"><td class="cellrowborder" valign="top" width="21.23787621237876%" headers="mcps1.3.3.4.2.5.1.1 "><p id="deh_02_0024__p164455404556">dedicated_host_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.44765523447655%" headers="mcps1.3.3.4.2.5.1.2 "><p id="deh_02_0024__p29241051175512">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.48755124487551%" headers="mcps1.3.3.4.2.5.1.3 "><p id="deh_02_0024__p1592535185519">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.826917308269174%" headers="mcps1.3.3.4.2.5.1.4 "><p id="deh_02_0024__p1544524011550">Specifies the DeH ID.</p>
|
|
<p id="deh_02_0024__p858154817367">You can obtain the value from the DeH console or using the API in <a href="deh_02_0020.html">Querying DeHs</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="deh_02_0024__section34329433"><h4 class="sectiontitle">Request</h4><p id="deh_02_0024__p5836131813571">None</p>
|
|
</div>
|
|
<div class="section" id="deh_02_0024__section40529449"><h4 class="sectiontitle">Response</h4><p id="deh_02_0024__p6731132485713">None</p>
|
|
</div>
|
|
<div class="section" id="deh_02_0024__section1768432015261"><h4 class="sectiontitle">Example Request</h4><p id="deh_02_0024__p14480192271112">Release the DeH <strong id="deh_02_0024__b1085818912259">74259164-e63a-4ad9-9c77-a1bd2c9aa187</strong>.</p>
|
|
<pre class="screen" id="deh_02_0024__screen13879133243712">DELETE https://{Endpoint}/v1.0/9c53a566cb3443ab910cf0daebca90c4/dedicated-hosts/74259164-e63a-4ad9-9c77-a1bd2c9aa187</pre>
|
|
</div>
|
|
<div class="section" id="deh_02_0024__section156132912611"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="deh_02_0024__screen20104132953714">Http Response Code: 204</pre>
|
|
</div>
|
|
<div class="section" id="deh_02_0024__section18068697"><h4 class="sectiontitle">Status Code</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="deh_02_0024__table1281322293615" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Returned error codes</caption><thead align="left"><tr id="deh_02_0024__row198131822123618"><th align="left" class="cellrowborder" valign="top" width="38.71%" id="mcps1.3.8.2.2.3.1.1"><p id="deh_02_0024__p682815319368">Error Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="61.29%" id="mcps1.3.8.2.2.3.1.2"><p id="deh_02_0024__p1282833112369">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="deh_02_0024__row148131822123619"><td class="cellrowborder" valign="top" width="38.71%" headers="mcps1.3.8.2.2.3.1.1 "><p id="deh_02_0024__p382833103613">409 Conflict</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.29%" headers="mcps1.3.8.2.2.3.1.2 "><p id="deh_02_0024__p118292318362">A DeH accommodating ECSs cannot be released.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="deh_02_0024__p25445523">For more status codes, see <a href="deh_02_0016.html">Status Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="deh_02_0017.html">API</a></div>
|
|
</div>
|
|
</div>
|
|
|