forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
78 lines
12 KiB
HTML
78 lines
12 KiB
HTML
<a name="en-us_topic_0066088963"></a><a name="en-us_topic_0066088963"></a>
|
|
|
|
<h1 class="topictitle1">Configuring SMN-Enabled Event Notification</h1>
|
|
<div id="body1499758606807"><p id="en-us_topic_0066088963__p1195915314414">This section describes how to configure an SMN-enabled event notification rule on OBS Console.</p>
|
|
<div class="section" id="en-us_topic_0066088963__section72855457345"><h4 class="sectiontitle">Background Information</h4><p id="en-us_topic_0066088963__p76811548103411">For details, see <a href="en-us_topic_0045853816.html">SMN-Enabled Event Notifications</a>.</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0066088963__section4422459618019"><h4 class="sectiontitle">Procedure</h4><ol id="en-us_topic_0066088963__ol6247704518019"><li id="en-us_topic_0066088963__li99821455306"><span>In the bucket list, click the bucket you want to operate. The <strong id="en-us_topic_0066088963__obs_03_0307_b144421021120">Overview</strong> page is displayed.</span></li><li id="en-us_topic_0066088963__li18830181855820"><span>In the <strong id="en-us_topic_0066088963__b98291154185118">Basic Configurations</strong> area, click <strong id="en-us_topic_0066088963__b1082935455110">Event Notification</strong>. The <strong id="en-us_topic_0066088963__b1482955414517">Event Notification</strong> page is displayed.</span><p><p id="en-us_topic_0066088963__p471425117139">Alternatively, you can choose <strong id="en-us_topic_0066088963__b37321058164212">Basic Configurations</strong> > <strong id="en-us_topic_0066088963__b167381858114211">Event Notification</strong> in the navigation pane.</p>
|
|
</p></li><li id="en-us_topic_0066088963__li108481812202814"><span>Click <strong id="en-us_topic_0066088963__b10410184615474">Create</strong>. The <strong id="en-us_topic_0066088963__b5197637481">Create Event Notification</strong> dialog box is displayed. See <a href="#en-us_topic_0066088963__fig17847723015">Figure 1</a> for details.</span><p><div class="fignone" id="en-us_topic_0066088963__fig17847723015"><a name="en-us_topic_0066088963__fig17847723015"></a><a name="fig17847723015"></a><span class="figcap"><b>Figure 1 </b>Creating an event notification rule</span><br><span><img id="en-us_topic_0066088963__image1754618155260" src="en-us_image_0145117970.png" title="Click to enlarge" class="imgResize"></span></div>
|
|
</p></li><li id="en-us_topic_0066088963__li879014539554"><span>Configure event notification parameters, as described in <a href="#en-us_topic_0066088963__aobs_console_0039_mmccppss_table01">Table 1</a>.</span><p>
|
|
<div class="tablenoborder"><a name="en-us_topic_0066088963__aobs_console_0039_mmccppss_table01"></a><a name="aobs_console_0039_mmccppss_table01"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0066088963__aobs_console_0039_mmccppss_table01" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Event notification parameters</caption><thead align="left"><tr id="en-us_topic_0066088963__row2055942"><th align="left" class="cellrowborder" valign="top" width="34%" id="mcps1.3.3.2.4.2.1.2.3.1.1"><p id="en-us_topic_0066088963__p32313598">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="66%" id="mcps1.3.3.2.4.2.1.2.3.1.2"><p id="en-us_topic_0066088963__p155758">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0066088963__row12616447"><td class="cellrowborder" valign="top" width="34%" headers="mcps1.3.3.2.4.2.1.2.3.1.1 "><p id="en-us_topic_0066088963__p15299288">Name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66%" headers="mcps1.3.3.2.4.2.1.2.3.1.2 "><p id="en-us_topic_0066088963__p31282850">Name of the event. If the event name is left blank, the system will automatically assign a globally unique ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0066088963__row13110201"><td class="cellrowborder" valign="top" width="34%" headers="mcps1.3.3.2.4.2.1.2.3.1.1 "><p id="en-us_topic_0066088963__p55293359">Events</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66%" headers="mcps1.3.3.2.4.2.1.2.3.1.2 "><p id="en-us_topic_0066088963__p49577065">Various types of events. Currently, OBS supports event notification for the following types of events:</p>
|
|
<ul id="en-us_topic_0066088963__ul43540403"><li id="en-us_topic_0066088963__li27132010154639"><strong id="en-us_topic_0066088963__b1299204055715">ObjectCreated</strong>: all kinds of object creation operations, including PUT, POST, COPY, and part assembling<ul id="en-us_topic_0066088963__ul1323810371222"><li id="en-us_topic_0066088963__li30342728173714"><strong id="en-us_topic_0066088963__b67958315317">Put</strong>: Creates or overwrites an object using the PUT method.</li><li id="en-us_topic_0066088963__li1115034173727"><strong id="en-us_topic_0066088963__b1820810923211">Post</strong>: Creates or overwrites an object using the POST (browser-based upload) method.</li><li id="en-us_topic_0066088963__li56319311"><strong id="en-us_topic_0066088963__b7694413123218">Copy</strong>: Creates or overwrites an object using the COPY method.</li><li id="en-us_topic_0066088963__li197831545173313"><strong id="en-us_topic_0066088963__b157561432376">CompleteMultipartUpload</strong>: Assembles parts of a multipart upload.</li></ul>
|
|
</li><li id="en-us_topic_0066088963__li17115829154654"><strong id="en-us_topic_0066088963__b1247145233716">ObjectRemoved</strong>: Deletes an object.<ul id="en-us_topic_0066088963__ul119351546723"><li id="en-us_topic_0066088963__li39439006"><strong id="en-us_topic_0066088963__b102321594591">Delete</strong>: Deletes an object with a specified version ID.</li><li id="en-us_topic_0066088963__li54653604"><strong id="en-us_topic_0066088963__b146469154595">DeleteMarkerCreated</strong>: Deletes an object without specifying a version ID.</li></ul>
|
|
</li></ul>
|
|
<p id="en-us_topic_0066088963__p64865822">Multiple event types can be applied to the same object. For example, if you have selected <strong id="en-us_topic_0066088963__b2091313193599">Put</strong>, <strong id="en-us_topic_0066088963__b1691461905913">Copy</strong>, and <strong id="en-us_topic_0066088963__b1591591955916">Delete</strong> in the same event notification rule, a notification will be sent to you when the specified object is uploaded to, copied to, or deleted from the bucket. <strong id="en-us_topic_0066088963__b10982172711591">ObjectCreated</strong> contains <strong id="en-us_topic_0066088963__b9983132755917">Put</strong>, <strong id="en-us_topic_0066088963__b15984827185911">Post</strong>, <strong id="en-us_topic_0066088963__b11984927175910">Copy</strong>, and <strong id="en-us_topic_0066088963__b79851127195916">CompleteMultipartUpload</strong>. If you select <strong id="en-us_topic_0066088963__b9986132712595">ObjectCreated</strong>, the events <strong id="en-us_topic_0066088963__b158921377114">ObjectCreated</strong> contains are automatically selected. Similarly, if you select <strong id="en-us_topic_0066088963__b918816366592">ObjectRemoved</strong>, <strong id="en-us_topic_0066088963__b818911360595">Delete</strong> and <strong id="en-us_topic_0066088963__b91901136185910">DeleteMarkerCreated</strong> are automatically selected.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0066088963__row47353991"><td class="cellrowborder" valign="top" width="34%" headers="mcps1.3.3.2.4.2.1.2.3.1.1 "><p id="en-us_topic_0066088963__p10468038">Prefix</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66%" headers="mcps1.3.3.2.4.2.1.2.3.1.2 "><p id="en-us_topic_0066088963__p42604738">Object name prefix for which notifications will be triggered.</p>
|
|
<div class="note" id="en-us_topic_0066088963__note13847653113412"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="en-us_topic_0066088963__p138481553193416">If neither the <strong id="en-us_topic_0066088963__b11129141033217">Prefix</strong> nor the <strong id="en-us_topic_0066088963__b3429101412321">Suffix</strong> is configured, the event notification rule applies to all objects in the bucket.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0066088963__row16547757"><td class="cellrowborder" valign="top" width="34%" headers="mcps1.3.3.2.4.2.1.2.3.1.1 "><p id="en-us_topic_0066088963__p65299951">Suffix</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66%" headers="mcps1.3.3.2.4.2.1.2.3.1.2 "><p id="en-us_topic_0066088963__p54804702">Object name suffix for which notifications will be triggered.</p>
|
|
<div class="note" id="en-us_topic_0066088963__note64263792115"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="en-us_topic_0066088963__ul75801343183518"><li id="en-us_topic_0066088963__li195809435352">A folder path ends with a slash (/). Therefore, if you want to configure event notification rules for operations on folders and you need to filter folders by suffix, the suffix must also end with a slash (/).</li><li id="en-us_topic_0066088963__li168661347193517">If neither the <strong id="en-us_topic_0066088963__b14649194213219">Prefix</strong> nor the <strong id="en-us_topic_0066088963__b16651104273212">Suffix</strong> is configured, the event notification rule applies to all objects in the bucket.</li></ul>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0066088963__row16019620144324"><td class="cellrowborder" rowspan="2" valign="top" width="34%" headers="mcps1.3.3.2.4.2.1.2.3.1.1 "><p id="en-us_topic_0066088963__p28106203">SMN Topic</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66%" headers="mcps1.3.3.2.4.2.1.2.3.1.2 "><p id="en-us_topic_0066088963__p28828893173745">Project: The project that contains the SMN topic you want to select.</p>
|
|
<p id="en-us_topic_0066088963__p66230298175226">Projects are used to manage and classify cloud resources, including SMN topics. Each project contains different SMN topics. Select a project first and then a topic.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0066088963__row13603062"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.2.1.2.3.1.1 "><div class="p" id="en-us_topic_0066088963__p62009948">Topic: specifies the SMN topic that authorizes OBS to publish messages. You can create such topics on the SMN management console.<div class="note" id="en-us_topic_0066088963__note21218627"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="en-us_topic_0066088963__ul290173585413"><li class="NotesTextinTable" id="en-us_topic_0066088963__li849610397548">Once SMN topics are selected for pushing OBS event notifications, do not delete them or cancel their authorizations to OBS.</li><li class="NotesTextinTable" id="en-us_topic_0066088963__li174571750165410">If the topics are deleted or their authorizations to OBS are canceled, the following conditions may occur:<p class="NotesTextinTable" id="en-us_topic_0066088963__p162521921105510"><a name="en-us_topic_0066088963__li174571750165410"></a><a name="li174571750165410"></a>a. The subscriber of the topic cannot receive messages.</p>
|
|
<p class="NotesTextinTable" id="en-us_topic_0066088963__p198921517175511">b. Event notifications associated with unavailable topics are automatically cleared.</p>
|
|
</li><li id="en-us_topic_0066088963__li27046247563">For details about how to use SMN, see sections "Creating a Topic", "Adding a Subscription", and "Configuring Topic Policies" in the <em id="en-us_topic_0066088963__i028282204217">Simple Message Notification User Guide</em>.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li><li id="en-us_topic_0066088963__li40751614144143"><span>Click <strong id="en-us_topic_0066088963__b148248112017144">OK</strong>.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0066088963__section183921920123113"><h4 class="sectiontitle">Related Operations</h4><p id="en-us_topic_0066088963__p63278262318">You can click <strong id="en-us_topic_0066088963__b142889712509">Edit</strong> in the <strong id="en-us_topic_0066088963__b88459435509">Operation</strong> column of an event notification rule, to edit the notification rule, or click <strong id="en-us_topic_0066088963__b7836162611519">Delete</strong> to delete the rule.</p>
|
|
<p id="en-us_topic_0066088963__p7112172923412">If you want to batch delete event notification rules, select the rules to delete and click <strong id="en-us_topic_0066088963__b420214845319">Delete</strong> above the list.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0147.html">Event Notifications</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |