You can call this operation to modify the configuration parameters of an ApsaraDB for Redis instance.

For more information about how to perform the corresponding operation in the console, see Set parameters.


Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyInstanceConfig

The operation that you want to perform. Set this parameter to ModifyInstanceConfig.

Config String Yes {"EvictionPolicy":"volatile-lru","list-max-ziplist-entries":512,"zset-max-ziplist-entries":128,"hash-max-ziplist-entries":512,"hash-max-ziplist-value":64,"list-max-ziplist-value":64,"set-max-intset-entries":512,"zset-max-ziplist-value":64}

The configuration parameters of the instance, in a JSON string. For more information, see Instance types.

InstanceId String Yes r-bp1xxxxxxxxxxxxx

The ID of the instance for which you want to modify configuration parameters.

AccessKeyId String No Lxxxxxxxxxxxxxxw

The AccessKey ID that Alibaba Cloud provides for you to access services.

Response parameters

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

The ID of the request.


Sample request
? Action=ModifyInstanceConfig
&<Common request parameters>

Sample success response

XML format


JSON format


Error codes

HTTP status code Error code Error message Description
400 InvalidParameters.Format Specified parameters are not valid. The error message returned because the specified parameters are invalid.

View error codes.