bucket notification-rule update
Allows updating notification rule of the given bucket.
Warning
Event Notifications feature is in “Private Preview” state and may change without notice. See https://www.backblaze.com/blog/announcing-event-notifications/ for details.
Examples:
b2 notification-rule update b2://bucketName/newPath/ ruleName --disable --event-type "b2:ObjectCreated:*" --event-type "b2:ObjectHidden:*"
b2 notification-rule update b2://bucketName/newPath/ ruleName --enable
Requires capability:
readBucketNotifications
writeBucketNotifications
b2 bucket notification-rule update [-h] [--event-type EVENT_TYPE]
[--webhook-url WEBHOOK_URL]
[--sign-secret SIGN_SECRET]
[--custom-header CUSTOM_HEADER] [--enable]
[--disable] [--json]
B2_URI ruleName
Positional Arguments
- B2_URI
B2 URI of the bucket with optional path prefix, e.g. b2://bucketName or b2://bucketName/optionalSubPath/
- ruleName
Name of the rule
Named Arguments
- --event-type
Events scope, e.g., ‘b2:ObjectCreated:*’. Can be used multiple times to set multiple scopes.
- --webhook-url
URL to send the notification to
- --sign-secret
optional signature key consisting of 32 alphanumeric characters
- --custom-header
Custom header to be sent with the notification. Can be used multiple times to set multiple headers. Format: HEADER_NAME=VALUE
- --enable
Flag to enable the notification rule
- --disable
Flag to disable the notification rule
Default: True
- --json
output in JSON format to use in scripts
Default: False