Modifies the description of an account of an ApsaraDB for Redis instance.

Note The engine version of the ApsaraDB for Redis instance must be Redis 4.0 and later.

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 ModifyAccountDescription

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

AccountDescription String Yes testescription

The description of the account.

  • It must start with a Chinese character or a letter and cannot start with http:// or https://.
  • It can contain letters, digits, underscores (_), and hyphens (-).
  • It must be 2 to 256 characters in length.
AccountName String Yes demoaccount

The name of the account.

  • It must start with a lowercase letter.
  • It can contain lowercase letters, digits, and underscores (_).
  • It must be 1 to 16 characters in length.
InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance.

RegionId String No cn-hangzhou

The ID of the region where the instance is deployed.

Response parameters

Parameter Type Example Description
RequestId String 8D0C0AFC-E9CD-47A4-8395-5C31BF9B****

The ID of the request.

Examples

Sample requests

https://r-kvstore.aliyuncs.com/?Action=ModifyAccountDescription
&AccountDescription=testescription
&AccountName=demoaccount
&InstanceId=r-bp1zxszhcgatnx****
&<Common request parameters>

Sample success responses

XML format

<ModifyAccountDescriptionResponse>
      <RequestId>8D0C0AFC-E9CD-47A4-8395-5C31BF9B****</RequestId>
</ModifyAccountDescriptionResponse>

JSON format

{
  "RequestId":"8D0C0AFC-E9CD-47A4-8395-5C31BF9B****"
}

Error codes

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