All Products
Search
Document Center

PolarDB:ModifyAccountPassword

Last Updated:Jul 17, 2024

Changes the password of a database account for a specified PolarDB cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DBClusterIdstringYes

The cluster ID.

pc-************
AccountNamestringYes

The username of the account.

testacc
NewAccountPasswordstringYes

The new password of the account. The new password must meet the following requirements:

  • It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
  • It must be 8 to 32 characters in length.
  • Special characters include ! @ # $ % ^ & * ( ) _ + - =
Pw123456
PasswordTypestringNo

The password type.

Tair

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

2FED790E-FB61-4721-8C1C-07C627******

Examples

Sample success responses

JSONformat

{
  "RequestId": "2FED790E-FB61-4721-8C1C-07C627******"
}

Error codes

HTTP status codeError codeError messageDescription
400EngineMigration.ActionDisabledSpecified action is disabled while custins is in engine migration.The specified operation is disabled when custins is being migrated across engines.
400LockTimeoutThe request processing has failed due to lock timeout.Failed to process the request due to a lock timeout.
400InvalidAccountPassword.MalformedThe specified parameter AccountPassword is not valid.The specified AccountPassword parameter is invalid.
404InvalidDBCluster.NotFoundThe DBClusterId provided does not exist in our records.The specified DBClusterId parameter does not exist in the current record.
404InvalidDBClusterId.MalformedThe specified parameter DBClusterId is not valid.The specified DBClusterId parameter is invalid.
404InvalidDBClusterId.NotFoundThe DBInstanceId provided does not exist in our records.The specified DBClusterId parameter does not exist in the current record.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-03-13The Error code has changed. The request parameters of the API has changedView Change Details
2023-12-12The Error code has changedView Change Details
2023-09-12The Error code has changedView Change Details