doc-exports/docs/bms/api-ref/en-us_topic_0131629817.html
guoyanyan c311ecafe3 bms_api_0510
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
2023-10-11 08:28:11 +00:00

74 lines
7.4 KiB
HTML

<a name="EN-US_TOPIC_0131629817"></a><a name="EN-US_TOPIC_0131629817"></a>
<h1 class="topictitle1">Deleting the Password of a Windows <span id="text752113236377">BMS</span><span id="text18723016376"></span></h1>
<div id="body1537169277701"><div class="section" id="EN-US_TOPIC_0131629817__section57769674"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0131629817__p6915811">This API is used to delete the random password generated during initial Windows <span id="EN-US_TOPIC_0131629817__text15102104745220">BMS</span><span id="EN-US_TOPIC_0131629817__text1336165216529"></span> installation. After the password is deleted, you can still use your password to log in to your <span id="EN-US_TOPIC_0131629817__text531335817523">BMS</span><span id="EN-US_TOPIC_0131629817__text063013119537"></span>. However, you cannot use the Get Password function to recover the <span id="EN-US_TOPIC_0131629817__text927217813539">BMS</span><span id="EN-US_TOPIC_0131629817__text156321511195313"></span> initial password.</p>
<p id="EN-US_TOPIC_0131629817__p5126143715303">If the <span id="EN-US_TOPIC_0131629817__en-us_topic_0131629816_text20175226135214">BMS</span><span id="EN-US_TOPIC_0131629817__en-us_topic_0131629816_text1183542919526"></span> is created from a private image, ensure that Cloudbase-Init has been installed. Cloudbase-Init is installed on public images by default.</p>
</div>
<div class="section" id="EN-US_TOPIC_0131629817__section50165025"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0131629817__p18937144714511">DELETE /v1/{project_id}/baremetalservers/{server_id}/os-server-password</p>
<p id="EN-US_TOPIC_0131629817__p891571520420"><a href="#EN-US_TOPIC_0131629817__table23262209">Table 1</a> lists the parameters.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0131629817__table23262209"></a><a name="table23262209"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0131629817__table23262209" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0131629817__row32406826"><th align="left" class="cellrowborder" valign="top" width="26.602660266026607%" id="mcps1.3.2.4.2.4.1.1"><p id="EN-US_TOPIC_0131629817__p7707213">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="27.852785278527854%" id="mcps1.3.2.4.2.4.1.2"><p id="EN-US_TOPIC_0131629817__p20304554">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="45.54455445544555%" id="mcps1.3.2.4.2.4.1.3"><p id="EN-US_TOPIC_0131629817__p34056167">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0131629817__row7086124"><td class="cellrowborder" valign="top" width="26.602660266026607%" headers="mcps1.3.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0131629817__p37105186">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="27.852785278527854%" headers="mcps1.3.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0131629817__p52730096">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="45.54455445544555%" headers="mcps1.3.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0131629817__p37593705">Specifies the project ID.</p>
<p id="EN-US_TOPIC_0131629817__p652825144113">For details about how to obtain the project ID, see <a href="en-us_topic_0171277624.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0131629817__row1829803718504"><td class="cellrowborder" valign="top" width="26.602660266026607%" headers="mcps1.3.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0131629817__p183003372507">server_id</p>
</td>
<td class="cellrowborder" valign="top" width="27.852785278527854%" headers="mcps1.3.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0131629817__p5300113705012">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="45.54455445544555%" headers="mcps1.3.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0131629817__p830083715506">Specifies the <span id="EN-US_TOPIC_0131629817__text15211355142520">BMS</span><span id="EN-US_TOPIC_0131629817__text621185512511"></span> ID.</p>
<p id="EN-US_TOPIC_0131629817__p29791113277">You can obtain the BMS ID from the <span id="EN-US_TOPIC_0131629817__en-us_topic_0113746489_text013014803615">BMS</span><span id="EN-US_TOPIC_0131629817__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>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0131629817__section48832041"><h4 class="sectiontitle">Request</h4><ul id="EN-US_TOPIC_0131629817__ul7991164133213"><li id="EN-US_TOPIC_0131629817__li61614285475">Request parameters<p id="EN-US_TOPIC_0131629817__p129363294711"><a name="EN-US_TOPIC_0131629817__li61614285475"></a><a name="li61614285475"></a>None</p>
</li><li id="EN-US_TOPIC_0131629817__li999119483212">Example request<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0131629817__screen69011312203210"><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">//{BMS Endpoint}/v1/bbf1946d374b44a0a2a95533562ba954/baremetalservers/cf2a8b97-b5c6-47ef-9714-eb27adf26e5b/os-server-password</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0131629817__section1927776"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0131629817__p45028263">N/A</p>
</div>
<div class="section" id="EN-US_TOPIC_0131629817__section7610951"><h4 class="sectiontitle">Returned Values</h4><div class="p" id="EN-US_TOPIC_0131629817__p297919160563">Normal values
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0131629817__en-us_topic_0106040941_table753804619176" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0131629817__en-us_topic_0106040941_row10735134615172"><th align="left" class="cellrowborder" valign="top" width="42.42%" id="mcps1.3.5.2.1.1.3.1.1"><p id="EN-US_TOPIC_0131629817__en-us_topic_0106040941_p19735204616177">Returned Value</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.58%" id="mcps1.3.5.2.1.1.3.1.2"><p id="EN-US_TOPIC_0131629817__en-us_topic_0106040941_p207355465176">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0131629817__en-us_topic_0106040941_row1473514621713"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0131629817__en-us_topic_0106040941_p13735144611178">202</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0131629817__p2086782719363">The request has been accepted, but the processing has been delayed.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p id="EN-US_TOPIC_0131629817__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_0131629817__section14752650154917"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0131629817__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_0131629814.html">BMS Password Management</a></div>
</div>
</div>