doc-exports/docs/dds/api-ref/dds_api_0075.html
zhangyue fa66099c04 DDS API DOC
Reviewed-by: Drobnak, David <david.drobnak@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2023-09-19 08:15:02 +00:00

102 lines
7.8 KiB
HTML

<a name="dds_api_0075"></a><a name="dds_api_0075"></a>
<h1 class="topictitle1">Changing the Password of a Database User</h1>
<div id="body1606734638741"><div class="section" id="dds_api_0075__section4850156117316"><h4 class="sectiontitle">Function</h4><p id="dds_api_0075__p3631239417316">This API is used to change the password of a database user</p>
</div>
<div class="section" id="dds_api_0075__section1239972118494"><h4 class="sectiontitle">Constraints</h4><p id="dds_api_0075__p10612134919203">This operation cannot be performed on frozen or abnormal instances.</p>
</div>
<div class="section" id="dds_api_0075__section28961517113719"><h4 class="sectiontitle">URI</h4><ul id="dds_api_0075__ul3084351717316"><li id="dds_api_0075__li915620217316">URI format<p id="dds_api_0075__p912862005412"><a name="dds_api_0075__li915620217316"></a><a name="li915620217316"></a>PUT https://{Endpoint}/v3/{project_id}/instances/{instance_id}/reset-password</p>
</li><li id="dds_api_0075__li15430535">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dds_api_0075__table4657088" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="dds_api_0075__row60083059"><th align="left" class="cellrowborder" valign="top" width="24%" id="mcps1.3.3.2.2.1.2.4.1.1"><p id="dds_api_0075__p34889605">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.9%" id="mcps1.3.3.2.2.1.2.4.1.2"><p id="dds_api_0075__p7485743">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.1%" id="mcps1.3.3.2.2.1.2.4.1.3"><p id="dds_api_0075__p2775334615440">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dds_api_0075__row57385070"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.3.2.2.1.2.4.1.1 "><p id="dds_api_0075__p17679057">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="24.9%" headers="mcps1.3.3.2.2.1.2.4.1.2 "><p id="dds_api_0075__p22717550">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="51.1%" headers="mcps1.3.3.2.2.1.2.4.1.3 "><p id="dds_api_0075__p57877484163525">Specifies the project ID of a tenant in a region.</p>
</td>
</tr>
<tr id="dds_api_0075__row2864326155157"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.3.2.2.1.2.4.1.1 "><p id="dds_api_0075__p41557789155220">instance_id</p>
</td>
<td class="cellrowborder" valign="top" width="24.9%" headers="mcps1.3.3.2.2.1.2.4.1.2 "><p id="dds_api_0075__p10737742155220">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="51.1%" headers="mcps1.3.3.2.2.1.2.4.1.3 "><p id="dds_api_0075__p64450739155220">Specifies the instance ID, which can be obtained by calling the API for querying instances. If you do not have an instance, you can call the API used for creating an instance.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="dds_api_0075__section3074340117316"><h4 class="sectiontitle">Requests</h4><ul id="dds_api_0075__ul5099287616954"><li id="dds_api_0075__li5628270116954">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dds_api_0075__table3678226816954" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="dds_api_0075__row1340482316954"><th align="left" class="cellrowborder" valign="top" width="17.169999999999998%" id="mcps1.3.4.2.1.1.2.5.1.1"><p id="dds_api_0075__p1204887716954">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.75%" id="mcps1.3.4.2.1.1.2.5.1.2"><p id="dds_api_0075__p15184124818564">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21.64%" id="mcps1.3.4.2.1.1.2.5.1.3"><p id="dds_api_0075__p3643495116954">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="43.44%" id="mcps1.3.4.2.1.1.2.5.1.4"><p id="dds_api_0075__p222501215320">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dds_api_0075__row9578718173514"><td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.4.2.1.1.2.5.1.1 "><p id="dds_api_0075__p115071927173511">user_name</p>
</td>
<td class="cellrowborder" valign="top" width="17.75%" headers="mcps1.3.4.2.1.1.2.5.1.2 "><p id="dds_api_0075__p150762718355">No</p>
</td>
<td class="cellrowborder" valign="top" width="21.64%" headers="mcps1.3.4.2.1.1.2.5.1.3 "><p id="dds_api_0075__p15507112793518">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.44%" headers="mcps1.3.4.2.1.1.2.5.1.4 "><p id="dds_api_0075__p14507172719350">Specifies the database username. The default value is <strong id="dds_api_0075__b16667121119414">"rwuser"</strong>.</p>
<p id="dds_api_0075__p1494617101855">The value must be 1 to 64 characters and can contain only letters (from A to Z or from a to z), digits (from 0 to 9), hyphens (-), and periods (.).</p>
</td>
</tr>
<tr id="dds_api_0075__row794180116954"><td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.4.2.1.1.2.5.1.1 "><p id="dds_api_0075__p205972365486">user_pwd</p>
</td>
<td class="cellrowborder" valign="top" width="17.75%" headers="mcps1.3.4.2.1.1.2.5.1.2 "><p id="dds_api_0075__p0597736114818">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="21.64%" headers="mcps1.3.4.2.1.1.2.5.1.3 "><p id="dds_api_0075__p1159783614484">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.44%" headers="mcps1.3.4.2.1.1.2.5.1.4 "><p id="dds_api_0075__p15597336144813">Specifies the database password.</p>
<ul id="dds_api_0075__ul18964116453"><li id="dds_api_0075__li109610194512">The value must be 8 to 32 characters in length and contain uppercase letters (A to Z), lowercase letters (a to z), digits (0 to 9), and special characters, such as ~!@#%^*-_=+?</li><li id="dds_api_0075__li16435234452">Enter a strong password to improve security, preventing security risks such as brute force cracking.</li></ul>
</td>
</tr>
<tr id="dds_api_0075__row78024035819"><td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.4.2.1.1.2.5.1.1 "><p id="dds_api_0075__p10455113019207">db_name</p>
</td>
<td class="cellrowborder" valign="top" width="17.75%" headers="mcps1.3.4.2.1.1.2.5.1.2 "><p id="dds_api_0075__p13169231164515">No</p>
</td>
<td class="cellrowborder" valign="top" width="21.64%" headers="mcps1.3.4.2.1.1.2.5.1.3 "><p id="dds_api_0075__p4425124715456">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.44%" headers="mcps1.3.4.2.1.1.2.5.1.4 "><p id="dds_api_0075__p141696311459">Specifies the database name. The default value is <strong id="dds_api_0075__b6881530412">"admin"</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="dds_api_0075__ul1041877316954"><li id="dds_api_0075__li2666010016954">Request example<pre class="codeblock" id="dds_api_0075__codeblock57848163174212">{
"user_name": "rwuser",
"user_pwd": "******"
}</pre>
</li></ul>
</div>
<div class="section" id="dds_api_0075__section28521534113742"><h4 class="sectiontitle">Responses</h4><ul id="dds_api_0075__ul16665627"><li id="dds_api_0075__li15772917">Response example<pre class="codeblock" id="dds_api_0075__codeblock660937479172">{}</pre>
</li></ul>
</div>
<div class="section" id="dds_api_0075__section255485081219"><h4 class="sectiontitle">Status Code</h4><p id="dds_api_0075__dds_api_0018_p16131712193312">Status Code:200.</p>
<p id="dds_api_0075__dds_api_0018_p480617135329">For more information, see <a href="dds_status_code.html">Status Code</a>.</p>
</div>
<div class="section" id="dds_api_0075__section95551950141212"><h4 class="sectiontitle">Error Code</h4><p id="dds_api_0075__dds_api_0018_p20466124120334">For more information, see <a href="dds_error_code.html">Error Code</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dds_api_0070.html">Managing Databases and Users</a></div>
</div>
</div>