You can call this API to change the password for an instance account.

Note The required parameters in this operation contain private data such as passwords. For your data security, you must call this operation over HTTPS.

Request parameters

Name Type Required Description
<Common request parameters> - - For more information, see Common parameters.
Action String Yes Required parameter, and value is ModifyAccountPassword.
InstanceId String Yes The ID of the instance.
AccountName String Yes The name of the account.
OldPassword String Yes The current password.
NewPassword String Yes The new password. The password must be 8-32 characters in length. It must contain at least three types of characters, including uppercase letters, lowercase letters, numbers, and special characters. Special characters can be ! @ # $ % ^ & * ( ) _ + - =.

Response parameters

Name Type Required
<Common response parameters> - For more information, see Common response parameters.

Sample requests
&<[Common request parameters]>

Sample responses

XML format


JSON format