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>
101 lines
9.2 KiB
HTML
101 lines
9.2 KiB
HTML
<a name="EN-US_TOPIC_0131629816"></a><a name="EN-US_TOPIC_0131629816"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining the Password of a Windows <span id="text18538959115116">BMS</span><span id="text121209314524"></span></h1>
|
|
<div id="body1537169277701"><div class="section" id="EN-US_TOPIC_0131629816__section57769674"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0131629816__p6915811">This API is used to query the random password of the administrator (account <strong id="EN-US_TOPIC_0131629816__b312718617568">Administrator</strong> or an account configured using Cloudbase-Init) generated by the system during the installation of a Windows <span id="EN-US_TOPIC_0131629816__text15440615115217">BMS</span><span id="EN-US_TOPIC_0131629816__text116881619165213"></span>.</p>
|
|
<p id="EN-US_TOPIC_0131629816__p8434857122612">If the <span id="EN-US_TOPIC_0131629816__text20175226135214">BMS</span><span id="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_0131629816__section50165025"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0131629816__p144101651419">GET /v1/{project_id}/baremetalservers/{server_id}/os-server-password</p>
|
|
<p id="EN-US_TOPIC_0131629816__p891571520420"><a href="#EN-US_TOPIC_0131629816__table23262209">Table 1</a> lists the parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0131629816__table23262209"></a><a name="table23262209"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0131629816__table23262209" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0131629816__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_0131629816__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_0131629816__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_0131629816__p34056167">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0131629816__row7086124"><td class="cellrowborder" valign="top" width="26.602660266026607%" headers="mcps1.3.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0131629816__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_0131629816__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_0131629816__p37593705">Specifies the project ID.</p>
|
|
<p id="EN-US_TOPIC_0131629816__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_0131629816__row1829803718504"><td class="cellrowborder" valign="top" width="26.602660266026607%" headers="mcps1.3.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0131629816__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_0131629816__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_0131629816__p830083715506">Specifies the <span id="EN-US_TOPIC_0131629816__text769601232412">BMS</span><span id="EN-US_TOPIC_0131629816__text16696121218246"></span> ID.</p>
|
|
<p id="EN-US_TOPIC_0131629816__p29791113277">You can obtain the BMS ID from the <span id="EN-US_TOPIC_0131629816__en-us_topic_0113746489_text013014803615">BMS</span><span id="EN-US_TOPIC_0131629816__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_0131629816__section12542250184015"><h4 class="sectiontitle">Request</h4><ul id="EN-US_TOPIC_0131629816__ul1662967182917"><li id="EN-US_TOPIC_0131629816__li10733131312473">Request parameters<p id="EN-US_TOPIC_0131629816__p13419218124714"><a name="EN-US_TOPIC_0131629816__li10733131312473"></a><a name="li10733131312473"></a>None</p>
|
|
</li><li id="EN-US_TOPIC_0131629816__li763016718293">Example request<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0131629816__screen98873152292"><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">GET</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_0131629816__section36835188"><h4 class="sectiontitle">Response</h4><ul id="EN-US_TOPIC_0131629816__ul66273709"><li id="EN-US_TOPIC_0131629816__li62260885">Response parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0131629816__table23477058" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0131629816__row2792905"><th align="left" class="cellrowborder" valign="top" width="22.052205220522055%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="EN-US_TOPIC_0131629816__p24898733">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="32.20322032203221%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="EN-US_TOPIC_0131629816__p17614915">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.744574457445744%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="EN-US_TOPIC_0131629816__p17521988">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0131629816__row9994955"><td class="cellrowborder" valign="top" width="22.052205220522055%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0131629816__p4284989">password</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32.20322032203221%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0131629816__p62312200">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.744574457445744%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0131629816__p60002101">Specifies the password in ciphertext.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0131629816__li2069314262516">Example response<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0131629816__screen6039074420158"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span></pre></div></td><td class="code"><div><pre><span></span><span class="p">{</span>
|
|
<span class="w"> </span><span class="s">"password"</span><span class="p">:</span><span class="w"> </span><span class="s">"UHC9+YW1xDC1Yu8Mg9n+tnOp7euEO/cW//9KgdJKWhr5w=="</span>
|
|
<span class="p">}</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0131629816__section868814916514"><h4 class="sectiontitle">Returned Values</h4><div class="p" id="EN-US_TOPIC_0131629816__en-us_topic_0106040941_p193201622141412">Normal values
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0131629816__en-us_topic_0106040941_table753804619176" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0131629816__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_0131629816__en-us_topic_0106040941_p19735204616177">Returned Values</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_0131629816__en-us_topic_0106040941_p207355465176">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0131629816__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_0131629816__en-us_topic_0106040941_p13735144611178">200</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_0131629816__en-us_topic_0106040941_p207351246161711">The request has been successfully processed.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0131629816__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_0131629816__section14752650154917"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0131629816__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>
|
|
|