Initiates a cache analysis task.

Note Alibaba Cloud has optimized the cache analysis feature of ApsaraDB for Redis to improve user experience. This API operation is deprecated and you can use the new API operation for cache analysis. For more information, see API operations for cache analysis will be upgraded.

Before you call this operation, make sure that the following requirements are met:

After you initiate a cache analysis task, you can call the DescribeCacheAnalysisReport operation to view the analysis result.


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 CreateCacheAnalysisTask

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

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 BBC1E3D6-7C88-4DF5-9A3D-0DB1E6D9****

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "BBC1E3D6-7C88-4DF5-9A3D-0DB1E6D9****"

Error codes

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