Changes the password that is used to log on to the console for a Resource Access Management (RAM) user.
Note This operation is available only for RAM users. Before you call this operation, make
sure that
AllowUserToChangePassword
in SetSecurityPreference is set to True
. The value True indicates that RAM users can change their passwords.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ChangePassword |
The operation that you want to perform. Set the value to ChangePassword. |
OldPassword | String | Yes | mypassword |
The old password that is used to log on to the console. |
NewPassword | String | Yes | newpassword |
The new password that is used to log on to the console. The password must meet the complexity requirements. For more information, see GetPasswordPolicy. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 |
The ID of the request. |
Examples
Sample requests
https://[Endpoint]/?Action=ChangePassword
&OldPassword=mypassword
&NewPassword=newpassword
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version="1.0" encoding="UTF-8" ?>
<ChangePasswordResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</ChangePasswordResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "04F0F334-1335-436C-A1D7-6C044FE73368"
}
Error codes
For a list of error codes, visit the API Error Center.