forked from docs/doc-exports
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>
56 lines
4.8 KiB
HTML
56 lines
4.8 KiB
HTML
<a name="EN-US_TOPIC_0031176554"></a><a name="EN-US_TOPIC_0031176554"></a>
|
|
|
|
<h1 class="topictitle1">Deleting the Password for Logging In to an ECS</h1>
|
|
<div id="body1464594869795"><div class="section" id="EN-US_TOPIC_0031176554__section57769674"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0031176554__p6915811">This API is used to delete the random password records generated during initial installation of a Windows <span id="EN-US_TOPIC_0031176554__text10245749185320">ECS</span>. After the password is deleted, you can still use your password to log in to your <span id="EN-US_TOPIC_0031176554__text43276159598">ECS</span>. However, you cannot use the <strong id="EN-US_TOPIC_0031176554__b33271315185916">Get Password</strong> function to recover the <span id="EN-US_TOPIC_0031176554__text93278150597">ECS</span> initial password.</p>
|
|
<p id="EN-US_TOPIC_0031176554__p1494615391595">Linux ECSs do not use this API to delete a password.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0031176554__section50165025"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0031176554__p10222132152510">DELETE /v2.1/{project_id}/servers/{server_id}/os-server-password</p>
|
|
<p id="EN-US_TOPIC_0031176554__p789519554152">DELETE /v2/{project_id}/servers/{server_id}/os-server-password</p>
|
|
<div class="p" id="EN-US_TOPIC_0031176554__p87371014155612"><a href="#EN-US_TOPIC_0031176554__table46110007">Table 1</a> describes the parameters in the URI.
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0031176554__table46110007"></a><a name="table46110007"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0031176554__table46110007" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0031176554__row14148614"><th align="left" class="cellrowborder" valign="top" width="17.169999999999998%" id="mcps1.3.2.4.2.2.4.1.1"><p id="EN-US_TOPIC_0031176554__p5187119">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.169999999999998%" id="mcps1.3.2.4.2.2.4.1.2"><p id="EN-US_TOPIC_0031176554__p17503500">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="65.66%" id="mcps1.3.2.4.2.2.4.1.3"><p id="EN-US_TOPIC_0031176554__p8497414">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0031176554__row17201924"><td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.2.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0031176554__p51178607">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.2.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0031176554__p51826478">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.66%" headers="mcps1.3.2.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0031176554__p37593705">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0031176554__row615338831654"><td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.2.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0031176554__p519996316521">server_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.2.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0031176554__p5588153816521">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.66%" headers="mcps1.3.2.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0031176554__p1719074216521">Specifies the <span id="EN-US_TOPIC_0031176554__text17187816105911">ECS</span> ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0031176554__section48832041"><h4 class="sectiontitle">Request</h4><p id="EN-US_TOPIC_0031176554__p3303707">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0031176554__section1927776"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0031176554__p45028263">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0031176554__section118665219435"><h4 class="sectiontitle">Example Request</h4><p id="EN-US_TOPIC_0031176554__p672142672611">Delete the password records generated during initial installation of a Windows ECS.</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0031176554__screen573664352810">DELETE https://{endpoint}/v2/{project_id}/servers/{server_id}/os-server-password
|
|
DELETE https://{endpoint}/v2.1/{project_id}/servers/{server_id}/os-server-password</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0031176554__section19716123044320"><h4 class="sectiontitle">Example Response</h4><p id="EN-US_TOPIC_0031176554__p15562123319432">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0031176554__section17349988"><h4 class="sectiontitle">Returned Values</h4><p id="EN-US_TOPIC_0031176554__p23410681">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_0020212675.html">Key and Password Management</a></div>
|
|
</div>
|
|
</div>
|
|
|