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 on the left, choose Event Bus > Event Subscriptions. Then, click Create Event Subscription in the upper right corner.
  3. On the event subscription editing page, click in the upper left corner, enter the subscription name and description, and click OK.
  4. Configure the event source. The event source parameters are as follows. For more information about event subscriptions, see Creating an Event Subscription.

    1. Provider: Select Cloud services.
    2. Event Source: Select OBS Application Service.
    3. Bucket: Select the bucket created in Creating an OBS Bucket.
    4. Event Type: Select the desired event types.
    5. Object Name Prefix: If this parameter is set, an event can be triggered only when the name matches the specified prefix. By default, this parameter is left blank, indicating that all objects are matched.
    6. Object Name Suffix: If this parameter is set, an event can be triggered only when the name matches the specified suffix. By default, this parameter is left blank, indicating that all objects are matched.
    7. Object Name Encoding: This function is enabled by default.
    8. Filter Rule: For details about how to configure a filtering rule, see Filter Rule Parameters.

  5. Configure the event target. The parameters are as follows:

    1. Provider: Select Custom.
    2. URL: Enter the IP address of the ECS instance created in Purchasing an ECS. The URL format is https://x.x.x.x:8000.
    3. Connection: Select the connection created in Creating a Connection.

    Retain the default values for other parameters.

  6. After all parameters are configured, click Save in the upper right corner. The event subscription is created.