CancelSqlPatternCompareReport
Cancels an SQL Pattern comparison report.
Operation description
Cancels a specified SQL Pattern comparison report. Reports in the following statuses can be canceled:
PENDING: Waiting to be generated.RUNNING: Being generated.
Only reports with
CancelAvailableset totruecan be canceled.Reports that are completed, failed, or expired cannot be canceled.
When you cancel an already canceled report again,
Canceledstill returnstrue, andCancelTimeretains the time of the first cancellation.Reports are isolated by instance and Alibaba Cloud account.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. |
cn-beijing |
| DBClusterId |
string |
Yes |
The AnalyticDB for MySQL instance ID. |
am-2ze1234567890**** |
| ReportId |
integer |
Yes |
The SQL Pattern comparison report ID. |
1001 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The report cancellation result. |
||
| CancelTime |
string |
The time when the report was first canceled. The time is in UTC in the yyyy-MM-ddTHH:mmZ format. |
2026-09-08T01:06Z |
| Canceled |
boolean |
Indicates whether the report is canceled. The value true is returned when the report is successfully canceled or canceled again. |
true |
| ReportId |
integer |
The SQL Pattern comparison report ID. |
1001 |
| RequestId |
string |
The request ID. |
9A1B2C3D-4E5F-6789-ABCD-0123456789AB |
Examples
Success response
JSON format
{
"CancelTime": "2026-09-08T01:06Z",
"Canceled": true,
"ReportId": 1001,
"RequestId": "9A1B2C3D-4E5F-6789-ABCD-0123456789AB"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.