forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
129 lines
11 KiB
HTML
129 lines
11 KiB
HTML
<a name="EN-US_TOPIC_0000001186151628"></a><a name="EN-US_TOPIC_0000001186151628"></a>
|
|
|
|
<h1 class="topictitle1">Resetting a Password</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001186151628__en-us_topic_0000001145896585_s7aa3de1b44f14c0487bab690bb5702d6"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001186151628__en-us_topic_0000001145896585_af45ba7dd71a6422c9a39c39b44dbd8a8">This API is used to reset the password of cluster administrator.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001186151628__en-us_topic_0000001145896585_s9db56e76e7694a5cbfd993c7d1db0606"><h4 class="sectiontitle">URI</h4><pre class="screen" id="EN-US_TOPIC_0000001186151628__en-us_topic_0000001145896585_screen17156164716589">POST /v1.0/{project_id}/clusters/{cluster_id}/reset-password</pre>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001186151628__table388853432817" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001186151628__row18871234152819"><th align="left" class="cellrowborder" valign="top" width="19.64%" id="mcps1.3.2.3.2.5.1.1"><p id="EN-US_TOPIC_0000001186151628__p18886163415281"><strong id="EN-US_TOPIC_0000001186151628__b4511825598202">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.58%" id="mcps1.3.2.3.2.5.1.2"><p id="EN-US_TOPIC_0000001186151628__p5887163402817"><strong id="EN-US_TOPIC_0000001186151628__en-us_topic_0000001145896585_b92531155133416">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.299999999999999%" id="mcps1.3.2.3.2.5.1.3"><p id="EN-US_TOPIC_0000001186151628__p158871934162815"><strong id="EN-US_TOPIC_0000001186151628__en-us_topic_0000001145896585_b114191857251">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.48%" id="mcps1.3.2.3.2.5.1.4"><p id="EN-US_TOPIC_0000001186151628__p9887113414282"><strong id="EN-US_TOPIC_0000001186151628__en-us_topic_0000001145896585_b1334420616258">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001186151628__row15888734112813"><td class="cellrowborder" valign="top" width="19.64%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001186151628__p0887634162813">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.58%" headers="mcps1.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001186151628__p988723482816">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.299999999999999%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001186151628__p1788733482814">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.48%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001186151628__p118881134122813"><span id="EN-US_TOPIC_0000001186151628__en-us_topic_0000001145896585_text10261133413315">Project ID</span>. For details about how to obtain the ID, see <a href="dws_02_0011.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001186151628__row4888113442816"><td class="cellrowborder" valign="top" width="19.64%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001186151628__p208881634192816">cluster_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.58%" headers="mcps1.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001186151628__p19888143422816">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.299999999999999%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001186151628__p488820347287">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.48%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001186151628__p788813482810">ID of the cluster whose password is to be reset. For details about how to obtain the ID, see <a href="dws_02_00068.html">Obtaining the Cluster ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001186151628__section13536811162916"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001186151628__table115971827182919" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001186151628__row1359717274293"><th align="left" class="cellrowborder" valign="top" width="20.36%" id="mcps1.3.3.2.2.5.1.1"><p id="EN-US_TOPIC_0000001186151628__p4597192715290"><strong id="EN-US_TOPIC_0000001186151628__b20858656338202">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.94%" id="mcps1.3.3.2.2.5.1.2"><p id="EN-US_TOPIC_0000001186151628__p45981027132919"><strong id="EN-US_TOPIC_0000001186151628__b202297376">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.03%" id="mcps1.3.3.2.2.5.1.3"><p id="EN-US_TOPIC_0000001186151628__p13598102712299"><strong id="EN-US_TOPIC_0000001186151628__b1899713274">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54.669999999999995%" id="mcps1.3.3.2.2.5.1.4"><p id="EN-US_TOPIC_0000001186151628__p19598727132912"><strong id="EN-US_TOPIC_0000001186151628__en-us_topic_0000001145896585_b3195015122513">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001186151628__row1459810271293"><td class="cellrowborder" valign="top" width="20.36%" headers="mcps1.3.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001186151628__p135981827122913">new_password</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.94%" headers="mcps1.3.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001186151628__p1859818275292">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.03%" headers="mcps1.3.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001186151628__p17598132732916">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.669999999999995%" headers="mcps1.3.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001186151628__p2598152713299">New administrator password for logging in to a data warehouse cluster</p>
|
|
<p id="EN-US_TOPIC_0000001186151628__p10598112792912">A password must conform to the following rules:</p>
|
|
<ul id="EN-US_TOPIC_0000001186151628__ul10599202712913"><li id="EN-US_TOPIC_0000001186151628__li9599132742917">Contains 12 to 32 characters.</li><li id="EN-US_TOPIC_0000001186151628__li1159912274298">Cannot be the same as the username or the username written in reverse order.</li><li id="EN-US_TOPIC_0000001186151628__li1359932711295">Contains at least three types of the following:<ul id="EN-US_TOPIC_0000001186151628__ul1159916271291"><li id="EN-US_TOPIC_0000001186151628__li1259992719299">Lowercase letters</li><li id="EN-US_TOPIC_0000001186151628__li1659910274294">Uppercase letters</li><li id="EN-US_TOPIC_0000001186151628__li9599172702918">Digits</li><li id="EN-US_TOPIC_0000001186151628__li105993273290">Special characters: ~!?,.:;-_'"(){}[]/<>@#%^&*+|\=</li></ul>
|
|
</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001186151628__ul17599927142912"><li id="EN-US_TOPIC_0000001186151628__li45991727172917">Cannot be the same as previous passwords.</li><li id="EN-US_TOPIC_0000001186151628__li960017271296">Cannot be a weak password.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001186151628__en-us_topic_0000001145896585_sa64d5fde1cb94be29689b1aab5bc2bb2"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="EN-US_TOPIC_0000001186151628__screen212118301885">POST https://{Endpoint}/v1.0/89cd04f168b84af6be287f71730fdb4b/clusters/4ca46bf1-5c61-48ff-b4f3-0ad4e5e3ba90/reset-password
|
|
|
|
{
|
|
"new_password" : "NewPassword!"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001186151628__en-us_topic_0000001145896585_saf8285fea2964e558a059d985c498559"><h4 class="sectiontitle">Response Example</h4><p id="EN-US_TOPIC_0000001186151628__p15185522296">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001186151628__en-us_topic_0000001145896585_s318da95b204f47c4bef42e78b54a9089"><h4 class="sectiontitle">Status Code</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001186151628__en-us_topic_0000001387658464_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001186151628__row3197161131419"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.6.2.1.3.1.1"><p id="EN-US_TOPIC_0000001186151628__p2019915119141">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.6.2.1.3.1.2"><p id="EN-US_TOPIC_0000001186151628__p52002115143"><strong id="EN-US_TOPIC_0000001186151628__b344947533">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001186151628__row171983191418"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001186151628__p12201111151411">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.6.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001186151628__p102036115145">The password is reset.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001186151628__row319815118142"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001186151628__p22046181410">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.6.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001186151628__p92041312148">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001186151628__row719819110141"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001186151628__p12051181417">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.6.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001186151628__p15205815141">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001186151628__row41987101414"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001186151628__p14206219143">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.6.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001186151628__p120615151418">You do not have required permissions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001186151628__row131981121416"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001186151628__p1620701121419">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.6.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001186151628__p1120711181410">No resources found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001186151628__row9198151181410"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001186151628__p52086161417">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.6.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001186151628__p520813113148">Internal service error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001186151628__row1199171161417"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001186151628__p220914114145">503</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.6.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001186151628__p920913118148">Service unavailable.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_02_0017.html">Managing Clusters</a></div>
|
|
</div>
|
|
</div>
|
|
|