Deletes a stress testing task.

Database Autonomy Service (DAS) provides the intelligent stress testing feature. This feature helps you check whether your instance needs to be scaled up to handle traffic spikes in an effective manner. For more information, see Intelligent stress testing.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteCloudBenchTask

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

TaskId String Yes e5cec704-0518-430f-8263-76f4dcds****

The ID of the stress testing task. You can call the DescribeCloudBenchTasks operation to query the ID.

Response parameters

Parameter Type Example Description
RequestId String B6D17591-B48B-4D31-9CD6-9B9796B2****

The ID of the request.

Message String Successful

The message that is returned for the request.

Note If the request is successful, Successful is returned. If the request fails, an error message such as an error code is returned.
Data String None

A reserved parameter.

Code String 200

The returned HTTP status code.

Success String true

Indicates whether the request is successful. Valid values:

  • true
  • false

Examples

Sample requests

http(s)://das.cn-shanghai.aliyuncs.com/?Action=DeleteCloudBenchTask
&TaskId=e5cec704-0518-430f-8263-76f4dcds****
&<Common request parameters>

Sample success responses

XML format

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

<DeleteCloudBenchTaskResponse>
    <RequestId>B6D17591-B48B-4D31-9CD6-9B9796B2****</RequestId>
    <Message>Successful</Message>
    <Code>200</Code>
    <Success>true</Success>
</DeleteCloudBenchTaskResponse>

JSON format

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

{
  "RequestId" : "B6D17591-B48B-4D31-9CD6-9B9796B2****",
  "Message" : "Successful",
  "Code" : "200",
  "Success" : "true"
}

Error codes

HttpCode Error code Error message Description
400 InvalidParams The request parameters are invalid. The error message returned because the specified request parameters are invalid.

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