doc-exports/docs/ecs/api-ref/en-us_topic_0065817691.html
Zaoxu, Li 4edaa4a4cc ECS API 20231016 version
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com>
Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
2024-04-29 11:04:13 +00:00

83 lines
7.1 KiB
HTML

<a name="EN-US_TOPIC_0065817691"></a><a name="EN-US_TOPIC_0065817691"></a>
<h1 class="topictitle1">Unlocking an <span id="text1920213404515">ECS</span></h1>
<div id="body1499652824860"><div class="section" id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_section38263289"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p19470801">This API is used to unlock an <span id="EN-US_TOPIC_0065817691__text158218811587">ECS</span>.</p>
<p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p25311027142119">After an <span id="EN-US_TOPIC_0065817691__text1585871816577">ECS</span> is unlocked, common users are allowed to manage the <span id="EN-US_TOPIC_0065817691__text1119481024616">ECS</span>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_section8825287"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p17816132418199">POST /v2.1/{project_id}/servers/{server_id}/action</p>
<p id="EN-US_TOPIC_0065817691__p486843203014">POST /v2/{project_id}/servers/{server_id}/action</p>
<div class="p" id="EN-US_TOPIC_0065817691__p11693168134911"><a href="#EN-US_TOPIC_0065817691__en-us_topic_0057973176_table32475667">Table 1</a> describes the parameters in the URI.
<div class="tablenoborder"><a name="EN-US_TOPIC_0065817691__en-us_topic_0057973176_table32475667"></a><a name="en-us_topic_0057973176_table32475667"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_table32475667" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_row44937496"><th align="left" class="cellrowborder" valign="top" width="22.24%" id="mcps1.3.2.4.2.2.4.1.1"><p id="EN-US_TOPIC_0065817691__p5187119">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21.87%" id="mcps1.3.2.4.2.2.4.1.2"><p id="EN-US_TOPIC_0065817691__p17503500">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.88999999999999%" id="mcps1.3.2.4.2.2.4.1.3"><p id="EN-US_TOPIC_0065817691__p8497414">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_row1664874"><td class="cellrowborder" valign="top" width="22.24%" headers="mcps1.3.2.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p637140">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="21.87%" headers="mcps1.3.2.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p51608407">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="55.88999999999999%" headers="mcps1.3.2.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0065817691__p37593705">Specifies the project ID.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_row41565035"><td class="cellrowborder" valign="top" width="22.24%" headers="mcps1.3.2.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p11324657">server_id</p>
</td>
<td class="cellrowborder" valign="top" width="21.87%" headers="mcps1.3.2.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p44882061">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="55.88999999999999%" headers="mcps1.3.2.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p11568292">Specifies the <span id="EN-US_TOPIC_0065817691__text73201845165817">ECS</span> ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_section58292189"><h4 class="sectiontitle">Request</h4><p id="EN-US_TOPIC_0065817691__p8565175194911"><a href="#EN-US_TOPIC_0065817691__en-us_topic_0057973176_table65978805">Table 2</a> describes the request parameters.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0065817691__en-us_topic_0057973176_table65978805"></a><a name="en-us_topic_0057973176_table65978805"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_table65978805" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_row45865265"><th align="left" class="cellrowborder" valign="top" width="19.77197719771977%" id="mcps1.3.3.3.2.5.1.1"><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p24098979">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.791779177917793%" id="mcps1.3.3.3.2.5.1.2"><p id="EN-US_TOPIC_0065817691__p6342334101715">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.71247124712471%" id="mcps1.3.3.3.2.5.1.3"><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p5860269">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="37.72377237723772%" id="mcps1.3.3.3.2.5.1.4"><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p62959532">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_row66557295"><td class="cellrowborder" valign="top" width="19.77197719771977%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p22431852">unlock</p>
</td>
<td class="cellrowborder" valign="top" width="17.791779177917793%" headers="mcps1.3.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0065817691__p1434216345178">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="24.71247124712471%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p5040713">Null</p>
</td>
<td class="cellrowborder" valign="top" width="37.72377237723772%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p54558660">Unlocks an <span id="EN-US_TOPIC_0065817691__text532952345718">ECS</span>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_section1628434413713"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_p122851044113713">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_section14285144433715"><h4 class="sectiontitle">Example Request</h4><p id="EN-US_TOPIC_0065817691__p016403033116">Unlock a specified ECS.</p>
<pre class="screen" id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_screen3055061917732">POST https://{endpoint}/v2/{project_id}/servers/{server_id}/action
POST https://{endpoint}/v2.1/{project_id}/servers/{server_id}/action
{
"unlock": null
}</pre>
</div>
<div class="section" id="EN-US_TOPIC_0065817691__section177213225519"><h4 class="sectiontitle">Example Response</h4><p id="EN-US_TOPIC_0065817691__p137941727251">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_section1642564"><h4 class="sectiontitle">Returned Values</h4><p id="EN-US_TOPIC_0065817691__en-us_topic_0057973176_en-us_topic_0020212652_p5882489">See <a href="en-us_topic_0022067716.html">Returned Values for General Requests</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0124385016.html">Status Management</a></div>
</div>
</div>