An enterprise has a large number of files to archive but it does not want to put efforts on storage resources. Once they have subscribed to OBS for storing the files, the enterprise expects that all operations performed on OBS and included in event notification can be sent to a certain employee by email.
Click Create Bucket in the upper right corner of the page. Figure 1 displays the Create Bucket page. Select Region, select Storage Class, enter the bucket name, and click Create Now. In the following example, testbucket is the bucket name.
Click the bucket created in Step 2 to go to the Summary page. Choose Objects > Create Folder, enter the folder name, and click OK. Figure 2 displays Summary Page and illustrates these operations. In the following example, SMN is the folder name.
Use SMN to create a notification topic for OBS as follows:
For details, see Table 1.
According to the configurations in the following figure, all operations performed on folder SMN in bucket testbucket and included in event notification can be sent to certain employees by email. For details about parameters, see Table 1.
After the file is uploaded, an employee receives an email similar to the one shown in Figure 4. Keyword ObjectCreated:Post in the email indicates that the object is successfully uploaded.
After the file is successfully deleted, an employee receives an email similar to the one shown in Figure 5. Keyword ObjectRemoved:DeleteMarkerCreated in the email indicates that the object is successfully deleted.