Manually creates an offline key analysis task.

Billing

Note ApsaraDB for Redis has optimized the cache analytics feature to improve user experience. This API operation is phased out and replaced with a new API operation. For more information, see API operations for cache analysis will be upgraded.

Before you call this API operation, make sure that the ApsaraDB for Redis instance meets the following requirements:

After you call this operation, you can call the DescribeCacheAnalysisReport operation to view the analytic results.

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 CreateCacheAnalysisTask

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

RegionId String No cn-hangzhou

The region ID of the instance. You can call the DescribeInstances operation to query the region ID of instance.

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance. You can call the DescribeInstances operation to query the ID of the instance.

Response parameters

Parameter Type Example Description
RequestId String BBC1E3D6-7C88-4DF5-9A3D-0DB1E6D9****

The ID of the request.

Examples

Sample requests

https://r-kvstore.aliyuncs.com/?Action=CreateCacheAnalysisTask
&InstanceId=r-bp1zxszhcgatnx****
&<Common request parameters>

Sample success responses

XML format

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

<CreateCacheAnalysisTaskResponse>
    <RequestId>BBC1E3D6-7C88-4DF5-9A3D-0DB1E6D9****</RequestId>
</CreateCacheAnalysisTaskResponse>

JSON format

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

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

Error codes

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