Changes the password for a RAM user.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes ChangePassword

The name of this action.

Value: ChangePassword

NewPassword String Yes aw$2****

The new password. It must meet the password strength requirements. For information about how to set a strong password, see SetPasswordPolicy.

OldPassword String Yes 12**** The password to be changed.

Response parameters

Parameter Type Example value Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368 The request ID.

Example

Request example

https://ram.aliyuncs.com/?Action=ChangePassword
&NewPassword=aw$2****
&OldPassword=12****
&<Common parameters>

Response example

XML format

<ChangePassword>
  <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</ChangePassword>

JSON format

{
    "RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368"
}

Errors

For a list of error codes, visit the API Error Center.