All Products
Search
Document Center

ApsaraDB for MongoDB:CancelActiveOperationTasks

Last Updated:Jan 26, 2026

Cancels Operations and Maintenance (O&M) events in a batch.

Operation description

An O&M event cannot be canceled in the following scenarios:

  • The event is not cancelable if the value of the AllowCancel parameter is 0.

  • The scheduled start time of the O&M event has passed.

  • The status of the O&M event is not Pending if the value of the Status parameter is not 3.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Ids

string

Yes

The IDs of the O&M events to cancel. Separate multiple IDs with commas (,).

1508850,1508310,1507849,1506274,1505811

ResourceGroupId

string

No

The ID of the resource group.

rg-xxxx

Response elements

Element

Type

Description

Example

object

Ids

string

The IDs of the canceled O&M events. Multiple IDs are separated by commas (,).

1508850,1508310,1507849,1506274,1505811

RequestId

string

The request ID.

55A2504F-xxxx-xxxx-xxxx-C7C5E57350A6

Examples

Success response

JSON format

{
  "Ids": "1508850,1508310,1507849,1506274,1505811",
  "RequestId": "55A2504F-xxxx-xxxx-xxxx-C7C5E57350A6"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.