Updated on 2025-08-07 GMT+08:00

Creating an Event Subscription

Constraints

  • If you specify an object name prefix or suffix, only events with the prefix or suffix will be processed. If not specified, events of any object will be processed.
  • If the selected OBS bucket is invoked by other event subscriptions, ensure that the object name prefix and suffix are different from those configured in other event subscriptions. Otherwise, an error message is displayed.

Procedure

  1. Log in to the EG console.
  2. In the navigation pane, choose Event Subscriptions.
  3. Click Create Event Subscription.
  4. Click next to the default subscription name.
  5. Enter a new subscription name and description, and click OK.
  6. Configure an event source.

    Table 1 Parameter description

    Parameter

    Description

    Provider

    Select Cloud services.

    Event Source

    Select OBS Application Service.

    Bucket

    Select an OBS bucket.

    Event Type

    Select the desired event types.

    Object Name Prefix

    Only events with this specified object suffix will be processed.

    Object Name Suffix

    Only events with this specified object suffix will be processed.

    Object Name Encoding

    Enable it.

    Filter Rule

    Retain the default. For details about how to configure a filtering rule, see Filter Rule Parameters.

  7. Configure an event target.

    Table 2 Parameter description

    Parameter

    Description

    Provider

    Select Cloud services.

    Event Target

    Select FunctionGraph (function computing).

    Function

    Select the function created for OBS data synchronization.

    Version

    Configure as needed.

    Execute

    Configure as needed.

    Agency

    If no agency is available, click Create Agency to generate one named EG_TARGET_AGENCY.

    Transform Type

    Configure as needed.