All Products
Search
Document Center

UpdateAccountPassword

Last Updated: Nov 14, 2019

Description

You can call this operation to update the password for your database account based on input parameters.

Request parameters

Name Type Required Description
Action String Yes The operation that you want to perform. Set the value to UpdateAccountPassword.
RegionID String YesThe ID of the region where you make the request.
AccountName String Yes The full name of the database account for which you want to update the password.
Password String Yes The initial password.

The password consists of letters, digits, and special characters, such as acute accents (`), tildes (~), exclamation marks (!), at signs (@), number signs (#), dollar signs ($), percent signs (%), carets (^), ampersand signs (&), asterisks (*), parentheses (()), underscores (_), plus signs (+), en dashes (-), equal signs (=), brackets ([]), backslashes (), vertical bars (|), semicolons (;), single quotation marks (‘), colons (:), commas (,), periods (.), forward slashes (/), angle brackets (<>), and question marks (?) .

EnableKMS Boolean No Indicates whether KMS is enabled for user password management.

Response parameters

Name Type Description
Common response parameters - For more information.
RequestId String The GUID generated by Alibaba Cloud for the request.
RegionId String The ID of the region where you make the request.

Sample requests

  1. http://openanalytics.cn-hangzhou.aliyuncs.com/?Action=UpdateAccountPassword
  2. &RegionID=<RegionID>, for example, cn-hangzhou
  3. &AccountName=admin_s1863300811000000
  4. &Password=xxxx
  5. &EnableKMS=true
  6. &<Common request parameters>

Sample responses

XML format

  1. <UpdateAccountPasswordResponse>
  2. <RequestId>F3654C0A-C2E4-4569-9C22-3D3A068123A9</RequestId>
  3. <RegionId>cn-hangzhou</RegionId>
  4. </UpdateAccountPasswordResponse>

JSON format

  1. {
  2. "RequestId": "F3654C0A-C2E4-4569-9C22-3D3A068123A9",
  3. "RegionId": "cn-hangzhou"
  4. }