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

Note Only ApsaraDB for Redis instances of Redis 4.0 or later are supported.

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.

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

The name of the account. You can call the DescribeAccounts operation to obtain the name of the account.

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance.

RegionId String No cn-hangzhou

The region ID of the instance.

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.