Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell EMC ObjectScale 1.2.x Administration Guide

Setting up bucket event notifications

ObjectScale supports the configuration of bucket level event notification to allow you to easily monitor when certain configurable events occur within the bucket, such as when objects are created or deleted within the bucket. Bucket event notifications can be utilized to build out distributed and decoupled modern applications.

To set up ObjectScale's bucket event notification feature, you must configure two independent components:

  • Configure the destination WebHook server
  • Configure the Bucket Event Notifications

Configure the destination WebHook server Overview

For ObjectScale the only supported destination is a WebHook. WebHooks are a way to receive information when it happens, rather than continually polling for that data.

The following is the expected schema for configuring the WebhookConfig element:

    <WebhookConfig>
      <AuthToken>token</AuthToken>
      <BackupLimit>1000</BackupLimit>
      <Comment>comment</Comment>
      <Endpoint>http://10.55.66.77:3000/hook</Endpoint>
      <Name>MyWebhook</Name>
    </WebhookConfig>
WebHook Config syntax Description
Name Identifier which uniquely identifies this destination among all other WebHook configured within an account in the object store.
Endpoint Webhook server endpoint.
AuthToken Opaque string or JWT authorization token.
BackupLimit Maximum limit size for undelivered messages.
Comment (Optional) Comment to this setting.

The WebHook name must be unique among WebHooks within an account in the object store. Once configured, ObjectScale will internally build the <Urn> element, which you can collect with a GET.

ObjectScale supports these Destination Configuration Manager (DCM) APIs for interacting with the destination WebHook server:

  • GetEventDestinationConfiguration (type, name)
  • DeleteEventDestinationConfiguration (type, name)
  • ListEventDestinationConfigurations (type)
  • PutEventDestinationConfiguration (type, name, config)

Configure the Bucket Event Notifications Overview

You can use the ObjectScale UI or the S3 API for PutBucketNotificationConfiguration and/or GetBucketNotificationConfiguration to configure bucket event notifications by creating an Event Rule that will trigger an event notification when the event occurs.

Each bucket uses an Event Rule section with the required fields to configure event notifications for that bucket. Using the ObjectScale UI, you can create a new bucket or modify an existing bucket to add, edit, or delete event rules.

Figure 1. Edit Bucket - Event Rule
  • Event Rule Name - Type a name for the new event.
  • Events - Select one or more event types that will trigger this event notification.
  • Prefix/Suffix - Type the object name prefix or suffix values that will trigger this event notification.
  • Send To - Select the notification destination to be used to send the notifications for the configured event(s).

You must have at least one notification destination for this account to set up a bucket event notification rule.

NOTE: Click on Add Event Rule to add multiple event rules. But, you cannot create configurations on the same bucket that share a common event type.

When using the API, a notification configuration for a bucket is an XML document describing zero or more topic configurations. If no configuration is set on a bucket, it will implicitly have an empty NotificationConfiguration element.

For example, shown below is the request.body of the NotificationConfiguration without any topic configurations:

<NotificationConfiguration>
</NotificationConfiguration>

When creating new bucket notifications, use the following syntax for the request.body of the BucketNotificationConfiguration xml:

<NotificationConfiguration>
    <TopicConfiguration>
        <Id>Name</Id>
        <Event>event-type</Event>
        ...
        <Filter>
            <S3Key>
                <FilterRule>
                    <Name>(prefix|suffix)</Name>
                    <Value>string</Value>
                </FilterRule>
                ...
            </S3Key>
        </Filter>
        <Topic>webhook-urn</Topic>
    </TopicConfiguration>
    ...
</NotificationConfiguration>
NotificationConfiguration syntax Description
TopicConfiguration May contain zero or more TopicConfigurations
ID Optional. If unspecified, ObjectScale will generate one
Event Must be one or more from
  • s3:ObjectCreated:*
  • s3:ObjectCreated:Put
  • s3:ObjectCreated:Copy
  • s3:ObjectCreated:CompleteMultipartUpload
  • s3:ObjectRemoved:*
  • s3:ObjectRemoved:Delete
  • s3:ObjectRemoved:DeleteMarkerCreated
  • s3:Replication:OperationFailedReplication
Topic Webhook URN referring to a webhook configuration in DCM
Filter Optional. May contain 0 or 1 S3Key filters
S3Key Optional. May contain 0-2 FilterRules
FilterRule Optional.
Name Optional. Must be one of prefix | suffix. Only one FilterRule of each type may be specified in an S3Key filter.
Value Optional.

For example, the following NotificationConfiguration file shows how to configure a notification to a webhook any time an object is created.

<NotificationConfiguration>
    <TopicConfiguration>
        <Id>CreateEvents</Id>
        <Topic>createWebhook</Topic>
        <Event>s3:ObjectCreated:*</Event>
    </TopicConfiguration>
</NotificationConfiguration>

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\