edit-icon download-icon

ChangePassword

Last Updated: Mar 18, 2018

Interface description

Change RAM user password

Request parameters

Action

  • Type: String
  • Required: Yes
  • Description: Operation interface. System required parameter. Value: ChangePassword.

OldPassword

  • Type: String
  • Required: Yes
  • Description: Old password

NewPassword

  • Type: String
  • Required: Yes
  • Description: Specify the password, which must meet the complexity requirements. For details about the interface for setting password complexity, see <SetPasswordPolicy>.

Return parameter

Only public return parameters apply. See Public return parameters for details.

Required permissions

Action

ram:ChangePassword

Resource

acs:ram:*:${AccountId}:user/${UserName}

Error message

NotSupport.Account
  • HTTP Status:400
  • Error Message:This method can be only invoked by sub user.
InvalidParameter.OldPassword.Incorrect
  • HTTP Status:400
  • Error Message:The parameter - “OldPassword” is incorrect.
InvalidParameter.NewPassword.TooWeak
  • HTTP Status:400
  • Error Message:The parameter - “NewPassword” is not compliant with the password policy.
InvalidParameter.NewPassword.ReusePrevention
  • HTTP Status:400
  • Error Message:The parameter - “NewPassword” is not compliant with the reuse prevention password policy.

Operation example

Request example

  1. https://ram.aliyuncs.com/?Action=ChangePassword
  2. &OldPassword=123456
  3. &NewPassword=aw$2ad)d
  4. &<Common Request Parameter>

Response example

XML format

  1. <ChangePassword>
  2. <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
  3. </ChangePassword>

JSON format

  1. {
  2. "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
  3. }
Thank you! We've received your feedback.