- Documentation
Torch Object Storage
SDK Reference
C++
Bucket Interface
Manage Bucket Configuration
Managing Event Notifications (C++ SDK)
Manage Bucket Configuration
Managing Event Notifications (C++ SDK)
Managing Event Notifications (C++ SDK)
TOS supports delivering changes of certain events to the function service. If you wish to monitor resource changes in TOS in real time, you can configure event notification rules. This article presents sample code for event notification.
Configure Event Notification Rules
warning
- A maximum of 10 event notification rules can be created for a single storage bucket.
- An event notification rule can specify only one push target, which must be a function service.
- An object cannot match multiple rules that contain the same event type; that is, within the same bucket, the ranges of type + prefix/suffix combinations among different rules must not overlap.
Sample Code
The following code is used to configure event notification rules for the bucket examplebucket.
Retrieve Event Notification Rules
warning
By default, you must be the bucket owner to obtain the event notification rules for a bucket.
Sample Code
The following code is used to retrieve the event notification rules for the bucket 'examplebucket'.
Relevant Documentation
Last updated: 2025.09.25 14:22:46