Changes the password for a sub-account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateAccountPassword

The operation that you want to perform. Set the value to UpdateAccountPassword.

AccountName String Yes amind123

The username of the sub-account.

RegionId String Yes cn-hangzhou

The region ID.

IsShort Boolean No false

Specifies whether to use an abbreviation.

Password String No 2%¥@! 12b

The password of the sub-account.

EnableKMS Boolean No false

Specifies whether to use Key Management Service (KMS) to manage the password.

UseRandomPassword Boolean No false

Specifies whether to use a random password.

Response parameters

Parameter Type Example Description
Account Struct

The information of the sub-account.

Password String 12@&qwqew1

The password of the sub-account.

UserName String ad12fd

The username of the sub-account.

RegionId String cn-hangzhou

The region ID.

RequestId String BE365DEC-A7CF-4E0F-A55E-CDD8BFFF2847

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=UpdateAccountPassword
&AccountName=amind123
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<Account>
    <UserName>ad12fd</UserName>
    <Password>12@&amp;qwqew1</Password>
</Account>
<RequestId>BE365DEC-A7CF-4E0F-A55E-CDD8BFFF2847</RequestId>
<RegionId>cn-hangzhou</RegionId>

JSON format

{"Account":{"UserName":"ad12fd","Password":"12@&qwqew1"},"RequestId":"BE365DEC-A7CF-4E0F-A55E-CDD8BFFF2847","RegionId":"cn-hangzhou"}

Error codes

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