HandleObjectScanEvent

Updated at:

Handles malicious file detection alerts.

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 syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

EventId

string

No

The ID of the event.

81****

Status

integer

No

The target status for the event. Valid values:

  • 0: Pending

  • 1: Handled manually

  • 2: Whitelisted

  • 3: Ignored

  • 4: Access denied

0

BatchType

string

No

The method for batching similar alerts. Valid values:

  • sha256: By file content hash

  • eventName: By alert name

sha256

RuleConditionList

array<object>

No

The conditions for the whitelist rule. This parameter applies only when Status is set to 2.

object

No

Key

string

No

The whitelist field. Valid values:

  • ossKey: file path

  • bucketName: bucket name

  • md5: file MD5

  • sha256: file SHA-256

ossKey

Operate

string

No

The operator. Valid values:

  • contains: contains

  • not_contains: does not contain

  • str_equal: equals

  • str_not_equal: does not equal

  • regex: Regular expression

contains

Value

string

No

The value to match.

sshe

Remark

string

No

The remark.

test

Lang

string

No

The language for the request and response. Default value: zh. Valid values:

  • zh: Chinese

  • en: English

zh

EventIdList

array

No

The event IDs.

integer

No

An event ID.

42799634

Response elements

Element

Type

Description

Example

object

The returned data.

RequestId

string

A unique identifier for the request, generated by Alibaba Cloud. Use this ID to troubleshoot issues.

0614B89B-1CA9-50B2-A89A-2C66BB32B801

Examples

Success response

JSON format

{
  "RequestId": "0614B89B-1CA9-50B2-A89A-2C66BB32B801"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.