Modifies configuration parameters of an ApsaraDB for Redis instance.

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 ModifyInstanceConfig

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

RegionId String No cn-hangzhou

The region ID of the instance.

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance.

Config String Yes null

The configuration parameters of the instance in the JSON format.

Note For more information, see Supported parameters.

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=ModifyInstanceConfig
&InstanceId=r-bp1zxszhcgatnx****
&Config={"maxmemory-policy":"volatile-lru","zset-max-ziplist-entries":128,"zset-max-ziplist-value":64,"hash-max-ziplist-entries":512,"set-max-intset-entries":512}
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyInstanceConfigResponse>
    <requestId>8D0C0AFC-E9CD-47A4-8395-5C31BF9B****</requestId>
</ModifyInstanceConfigResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

Error codes

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

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