You can call this operation to unlock an account of an ApsaraDB RDS for PostgreSQL instance that uses cloud disks.

You cannot use a locked account to log on to the corresponding instance. You must first unlock the account. For more information, see Unlock and delete an 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 UnlockAccount

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

AccountName String Yes testaccount

The account that you want to unlock. You can unlock only one account at a time.

DBInstanceId String Yes pgm-bpxxxxx

The ID of the ApsaraDB RDS for PostgreSQL instance.

Response parameters

Parameter Type Example Description
RequestId String AA65190D-852A-4C9B-88DA-E92698CAA350

The ID of the request.

Examples

Sample requests

http(s)://rds.aliyuncs.com/? Action=UnlockAccount
&AccountName=testaccount
&DBInstanceId=pgm-bpxxxxx
&<Common request parameters>

Sample success responses

XML format

<UnlockAccountResponse>
  <RequestId>AA65190D-852A-4C9B-88DA-E92698CAA350</RequestId>
</UnlockAccountResponse>

JSON format

{
    "RequestId": "AA65190D-852A-4C9B-88DA-E92698CAA350"
}

Error codes

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