This command creates a definition of an event notification to publish events to an event broker.
Usage
eventnotification create --name NAME --view-id ID --broker-id ID --topic TOPIC --triggers EVENTS [--prefix-filter FILTER_STRING] [--prefix-filter FILTER_STRING]
Required Parameters
| A unique name for the new event notification. |
| The ID of the view for which event will be published. The view must have S3 protocol enabled and be controlled with S3 Native security flavor. |
| The ID of the event broker to which events will be published. The event broker must be defined on the VAST cluster. |
| The name of the topic to which to publish events. |
| Specify a comma-separated list of events for which you want to send notifications. Valid keywords for
For example: |
Options
| Sends notifications only for those events that have an object key prefix matching the filter string. For example: |
| Sends notifications only for those events that have an object key prefix matching the filter string. For example: |
Example
To send an event notification each time when a new object is created in the ABC folder on view 12:
vcli: admin> eventnotification create --name ev --view-id 12 --kafka-broker 1 --triggers S3_OBJECT_CREATED_ALL