You can call this operation to create a cache analysis task.

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 No CreateCacheAnalysisJob

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

InstanceId String No r-xxxxxx

The ID of the instance.

NodeId String No r-xxxxx-db-0

The ID of the sharded instance.

Response parameters

Parameter Type Example Description
Code String 200

The returned status code.

Data String r-xxxxxx

The returned data.

Message String None

Indicates the reason why an error occurred in taskState.

RequestId String B6D17591-B48B-4D31-9CD6-9B9796B2270A

The ID of the request.

Success String true

Indicates whether the request was successful. Valid values:

  • true
  • False

Examples

Sample requests

http(s)://dbs-api.cn-hangzhou.aliyuncs.com/? Action=CreateCacheAnalysisJob
&<Common request parameters>

Sample success responses

XML format

<CreateCacheAnalysisJobReponse>
  <Message>None</Message>
  <RequestId> B6D17591-B48B-4D31-9CD6-9B9796B2270A</RequestId>
  <Data>r-xxxxxx</Data>
  <Code>200</Code>
  <Success>true</Success>
</CreateCacheAnalysisJobReponse>

JSON format

{"Message":"None",
"RequestId":" B6D17591-B48B-4D31-9CD6-9B9796B2270A",
"Data":"r-xxxxxx",
"Code":"200",
"Success":"true"}

Error codes

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