All Products
Search
Document Center

Security Center:UpdateImageEventOperation

Last Updated:Jun 16, 2026

Updates an alert handling rule.

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:UpdateImageEventOperation

update

*ImageEventOperation

acs:yundun-sas:{#regionId}:{#accountId}:imageeventoperation/{#ImageEventOperationId}

None None

Request parameters

Parameter

Type

Required

Description

Example

Id

integer

Yes

The ID of the alert handling rule.

Note

You can call DescribeImageEventOperationPage to obtain this parameter.

814163

Scenarios

string

No

The rule scope. The value is in JSON format. The following keys are supported:

  • type: the scope type.

  • value: the scope value.

Note

This parameter and Source cannot both be empty. If Source is set to agentless, this parameter does not take effect.

{\"type\": \"repo\", \"value\": \"test-aaa/shenzhen-repo-01\"}

Source

string

No

The whitelist source. Valid values:

  • image: image.

  • agentless: agentless detection.

Note

This parameter and Scenarios cannot both be empty. If this parameter is set to agentless, the Scenarios parameter does not take effect.

agentless

Conditions

string

Yes

The rule conditions. The value is in JSON format. The following keys are supported:

  • condition: the matching condition.

  • type: the matching type.

  • value: the matching value.

[{\"condition\": \"MD5\", \"type\": \"equals\", \"value\": \"0083a31cc0083a31ccf7c10367a6e****\"}]

Note

string

No

The remarks to add.

test

Response elements

Element

Type

Description

Example

object

The response.

Data

object

The returned data.

Id

integer

The ID of the alert handling rule, which is the same as the alert handling rule ID in the request parameters.

67429

Success

boolean

The status of the request response. Valid values:

  • true: The request was successful.

  • false: The request failed.

true

Code

string

The status code returned by the API request.

200

Message

string

The message returned for the request.

successful

RequestId

string

The unique request ID.

7532B7EE-7CE7-5F4D-BF04-B12447DD****

Examples

Success response

JSON format

{
  "Data": {
    "Id": 67429
  },
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "RequestId": "7532B7EE-7CE7-5F4D-BF04-B12447DD****"
}

Error codes

HTTP status code

Error code

Error message

Description

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.