Change Password
PUT /user/password
Sets local user password for the specified user identifier.
Required Roles
This call has no restrictions.
Prerequisites
The following conditions must be met in order to call this operation.
Request Payload
<mgmt_user_password_update>
<password></password>
<oldPassword></oldPassword>
</mgmt_user_password_update>
{
"password": "",
"oldPassword": ""
}
All parameters are required unless otherwise stated.
| Field |
Description |
Type |
Notes |
| mgmt_user_password_update |
|
|
|
| password |
password for the management user |
String |
|
| oldPassword |
old password for the management user |
String |
|
Response Body
Response indicating Success or Failure to update local user information
Examples
Request
PUT https://192.168.0.0:4443/user/password
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
<mgmt_user_password_update>
<oldPassword>OldPassword@123</oldPassword>
<password>NewPassword@12345</password>
</mgmt_user_password_update>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
Request
PUT https://192.168.0.0:4443/user/password
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
{
"oldPassword" : "OldPassword@123"
"password" : "NewPassword@12345"
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
Request
cat body.txt
<mgmt_user_password_update>
<oldPassword>OldPassword@123</oldPassword>
<password>NewPassword@12345</password>
</mgmt_user_password_update>
curl -H $token -H "Content-Type: application/xml" -X PUT --data @body.txt https://$nodeIp:4443/user/password
Response
HTTP/1.1 200 OK
Content-Type: application/xml