doc-exports/docs/mrs/api-ref/mrs_02_1088.html
Yang, Tong bd2b57f749 MRS API 2.0.38.SP20 version
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2022-11-16 15:06:08 +00:00

117 lines
9.8 KiB
HTML

<a name="mrs_02_1088"></a><a name="mrs_02_1088"></a>
<h1 class="topictitle1">Modifying the Password of the Current Login User</h1>
<div id="body8662426"><div class="section" id="mrs_02_1088__en-us_topic_0125376205_section1656417305558"><h4 class="sectiontitle">Function </h4><p class="msonormal" id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p33097044">This API is used to change the password of the current login user. This API can be used only by security clusters that support Kerberos authentication.</p>
</div>
<div class="section" id="mrs_02_1088__en-us_topic_0125376205_sc9d330ebf874400aaecc23abdde57478"><h4 class="sectiontitle">URI</h4><ul id="mrs_02_1088__en-us_topic_0125376205_ul29952712576"><li id="mrs_02_1088__en-us_topic_0125376205_li109951574578">Format</li></ul>
<p class="msonormal" id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p58579050">POST /web/v1/access/modify_self_password</p>
<ul id="mrs_02_1088__en-us_topic_0125376205_ul131652415571"><li class="litext" id="mrs_02_1088__en-us_topic_0125376205_li416152425716">Parameter description</li></ul>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_table47282592" frame="border" border="1" rules="all"><thead align="left"><tr id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_row45150877"><th align="left" class="cellrowborder" valign="top" width="25.46%" id="mcps1.3.2.5.1.4.1.1"><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p33342387"><strong id="mrs_02_1088__b162774213314533_1">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.46%" id="mcps1.3.2.5.1.4.1.2"><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p16378826">Mandatory or Not</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.08%" id="mcps1.3.2.5.1.4.1.3"><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p52256971"><strong id="mrs_02_1088__b842352706134712">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_row4956220"><td class="cellrowborder" valign="top" width="25.46%" headers="mcps1.3.2.5.1.4.1.1 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p65909534">old_password</p>
</td>
<td class="cellrowborder" valign="top" width="25.46%" headers="mcps1.3.2.5.1.4.1.2 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p37072024">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="49.08%" headers="mcps1.3.2.5.1.4.1.3 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p49815831">Old password</p>
</td>
</tr>
<tr id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_row45689298"><td class="cellrowborder" valign="top" width="25.46%" headers="mcps1.3.2.5.1.4.1.1 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p9845638">new_password</p>
</td>
<td class="cellrowborder" valign="top" width="25.46%" headers="mcps1.3.2.5.1.4.1.2 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p59299207">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="49.08%" headers="mcps1.3.2.5.1.4.1.3 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p53276198">New password</p>
</td>
</tr>
<tr id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_row9723740"><td class="cellrowborder" valign="top" width="25.46%" headers="mcps1.3.2.5.1.4.1.1 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p49425452">confirm_password</p>
</td>
<td class="cellrowborder" valign="top" width="25.46%" headers="mcps1.3.2.5.1.4.1.2 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p44038685">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="49.08%" headers="mcps1.3.2.5.1.4.1.3 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p22074310">Confirm password</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="mrs_02_1088__en-us_topic_0125376205_section72641738175810"><h4 class="sectiontitle">Request</h4><ul id="mrs_02_1088__en-us_topic_0125376205_ul1353812431586"><li id="mrs_02_1088__en-us_topic_0125376205_li7538144311580">Example:<pre class="screen" id="mrs_02_1088__en-us_topic_0125376205_screen2015962710591">POST /web/v1/access/modify_self_password?old_password=null&amp;new_password=null&amp; confirm_password=null HTTP/1.1
Host: example.com
Content-Type: application/json
Accept:application/json</pre>
</li></ul>
</div>
<ul id="mrs_02_1088__en-us_topic_0125376205_ul162985362598"><li id="mrs_02_1088__en-us_topic_0125376205_li1129823665911">Parameter description<p id="mrs_02_1088__en-us_topic_0125376205_p13918184485916"><a name="mrs_02_1088__en-us_topic_0125376205_li1129823665911"></a><a name="en-us_topic_0125376205_li1129823665911"></a>None</p>
</li></ul>
<div class="section" id="mrs_02_1088__en-us_topic_0125376205_s73422f750f424cfa8968c03323c498d5"><h4 class="sectiontitle">Response</h4><ul id="mrs_02_1088__en-us_topic_0125376205_ul4545661067"><li id="mrs_02_1088__en-us_topic_0125376205_li1954513617618">Example:<pre class="screen" id="mrs_02_1088__en-us_topic_0125376205_screen93684431260">HTTP/1.1 200 OK
Data:Wed,02 May 2018 10:10:01 GMT
Server: example-server
Content-Type: application/json
{
"int_result_code": 0,
"result_desc": "string"
}</pre>
</li><li id="mrs_02_1088__en-us_topic_0125376205_li499410571767">Parameter description</li></ul>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_table41167797" frame="border" border="1" rules="all"><thead align="left"><tr id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_row19777822"><th align="left" class="cellrowborder" valign="top" width="20.292029202920293%" id="mcps1.3.5.3.1.5.1.1"><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p58499767"><strong id="mrs_02_1088__b7617970162543">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.292029202920293%" id="mcps1.3.5.3.1.5.1.2"><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p40860656">Mandatory or Not</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.292029202920293%" id="mcps1.3.5.3.1.5.1.3"><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p21378801"><strong id="mrs_02_1088__b98637280951226">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="39.123912391239124%" id="mcps1.3.5.3.1.5.1.4"><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p40932280"><strong id="mrs_02_1088__b592040302">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_row27180396"><td class="cellrowborder" valign="top" width="20.292029202920293%" headers="mcps1.3.5.3.1.5.1.1 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p54128431">int_result_code</p>
</td>
<td class="cellrowborder" valign="top" width="20.292029202920293%" headers="mcps1.3.5.3.1.5.1.2 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p22326828">No</p>
</td>
<td class="cellrowborder" valign="top" width="20.292029202920293%" headers="mcps1.3.5.3.1.5.1.3 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p63642633">INTEGER</p>
</td>
<td class="cellrowborder" valign="top" width="39.123912391239124%" headers="mcps1.3.5.3.1.5.1.4 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p41190130">Code of the return result</p>
</td>
</tr>
<tr id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_row35166858"><td class="cellrowborder" valign="top" width="20.292029202920293%" headers="mcps1.3.5.3.1.5.1.1 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p29943281">result_desc</p>
</td>
<td class="cellrowborder" valign="top" width="20.292029202920293%" headers="mcps1.3.5.3.1.5.1.2 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p9486659">No</p>
</td>
<td class="cellrowborder" valign="top" width="20.292029202920293%" headers="mcps1.3.5.3.1.5.1.3 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p30221930">STRING</p>
</td>
<td class="cellrowborder" valign="top" width="39.123912391239124%" headers="mcps1.3.5.3.1.5.1.4 "><p id="mrs_02_1088__en-us_topic_0125376205_en-us_topic_0110839912_p8729451">Description of the return result</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="mrs_02_1088__en-us_topic_0125376205_section2092982712508"><h4 class="sectiontitle">Status Code</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_1088__en-us_topic_0125376205_table2979011121511" frame="border" border="1" rules="all"><thead align="left"><tr id="mrs_02_1088__en-us_topic_0125376205_row3981161161515"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.6.2.1.3.1.1"><p id="mrs_02_1088__en-us_topic_0125376205_p398115116158">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="83%" id="mcps1.3.6.2.1.3.1.2"><p id="mrs_02_1088__en-us_topic_0125376205_p1798121191515">Description </p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_02_1088__en-us_topic_0125376205_row69813112155"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.6.2.1.3.1.1 "><p id="mrs_02_1088__en-us_topic_0125376205_p15667142018546">200</p>
</td>
<td class="cellrowborder" valign="top" width="83%" headers="mcps1.3.6.2.1.3.1.2 "><p id="mrs_02_1088__en-us_topic_0125376205_p69861225163419">The operation is successful.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="mrs_02_1088__en-us_topic_0125376205_p385511715205">For details about error status codes, see <a href="mrs_02_0015.html">Status Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_02_1086.html">MRS Manager Web APIs</a></div>
</div>
</div>