Skip to main content

tigris buckets set-notifications

Configure object event notifications on a bucket. Sends webhook requests to a URL when objects are created, updated, or deleted.

Usage

tigris buckets set-notifications <name> [flags]
t3 b set-notifications <name> [flags]

Flags

NameRequiredDefaultDescription
--urlNoWebhook URL to send notifications to (must be http or https)
--filterNoSQL WHERE clause to filter events by key (e.g. WHERE `key` REGEXP "^images")
--tokenNoToken for webhook authentication
--usernameNoUsername for basic webhook authentication
--passwordNoPassword for basic webhook authentication
--enableNoEnable notifications on the bucket (uses existing config)
--disableNoDisable notifications on the bucket (preserves existing config)
--resetNoClear all notification settings on the bucket

Examples

# Set up webhook notifications
tigris buckets set-notifications my-bucket --url https://example.com/webhook

# With token authentication
tigris buckets set-notifications my-bucket --url https://example.com/webhook --token secret123

# With basic authentication
tigris buckets set-notifications my-bucket --url https://example.com/webhook --username admin --password secret

# Only receive notifications for keys with the prefix images/
tigris buckets set-notifications my-bucket --url https://example.com/webhook --filter 'WHERE `key` REGEXP "^images"'

# Enable existing notification config
tigris buckets set-notifications my-bucket --enable

# Disable notifications (preserves config)
tigris buckets set-notifications my-bucket --disable

# Clear all notification settings
tigris buckets set-notifications my-bucket --reset