All Products
Search
Document Center

Security Center:HandleSimilarSecurityEvents

Last Updated:Jun 17, 2026

Batch processes alert events based on the same IP rule or type.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sas:HandleSimilarSecurityEvents

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

SourceIp

string

No

The IP address of the access source.

192.168.XX.XX

TaskId

integer

Yes

The ID of the task that batch processes all alert events of the same type.

Note

Call the CreateSimilarSecurityEventsQueryTask operation to obtain this parameter.

666038

OperationCode

string

Yes

The type of operation for batch processing alert events of the same type.

Note

Call the DescribeSecurityEventOperations operation to obtain this parameter.

offline_handled

OperationParams

string

No

The configuration of the sub-operation for handling alerting events. The value is in JSON format.

Note

This parameter is required when OperationCode is set to kill_and_quara, block_ip, or virus_quara. For other values of OperationCode, this parameter can be left empty.

Note

When OperationCode is set to block_ip, the following field is included:

  • expireTime: the lock expiration time. Unit: milliseconds.

When OperationCode is set to kill_and_quara, the following field is included:

  • subOperation: the method used to scan and remove threats. Valid values:
    • killAndQuaraFileByMd5andPath: terminates the process and moves the file to the quarantined file.

    • killByMd5andPath: terminates the running process.

When OperationCode is set to virus_quara, the following field is included:

  • subOperation: the method used to scan and remove threats. Valid values:
    • quaraFileByMd5andPath: moves the source file of the process to the quarantined file.

{"expireTime":1646208726195}

MarkMissParam

string

No

The rule for adding items to the whitelist. For example, to add a whitelist rule based on file MD5 where the file contains the string "a", set this parameter to {"field":"md5","operate":"contains","fieldValue":"aa"}.

{"field":"md5","operate":"contains","fieldValue":"aa"}

Remark

string

No

The remarks for the operation.

remark test.

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues.

A3653911-33A6-5268-8B91-7690471F7AA1

Examples

Success response

JSON format

{
  "RequestId": "A3653911-33A6-5268-8B91-7690471F7AA1"
}

Error codes

HTTP status code

Error code

Error message

Description

400 DataRetrieveNotFinished Data retrieving not finished yet
400 IllegalParam Illegal param
400 OperationTaskNotExists The specified operation task does not exist
400 MissingTaskId Task id is mandatory for this action.
400 InvalidOperationForEvent The operation is invalid for the event.
500 ServerError ServerError
403 NoPermission caller has no permission

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.