forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
229 lines
23 KiB
HTML
229 lines
23 KiB
HTML
<a name="waf_02_0082"></a><a name="waf_02_0082"></a>
|
|
|
|
<h1 class="topictitle1">Updating Alarm Notification Configurations</h1>
|
|
<div id="body19683591"><div class="section" id="waf_02_0082__section12455270"><h4 class="sectiontitle">Function Description</h4><p class="msonormal" id="waf_02_0082__p50867040">This API is used to update alarm notification configurations.</p>
|
|
</div>
|
|
<div class="section" id="waf_02_0082__section2243982"><h4 class="sectiontitle">URI</h4><ul id="waf_02_0082__ul6274829"><li id="waf_02_0082__li56473463">URI format<p id="waf_02_0082__p38499120"><a name="waf_02_0082__li56473463"></a><a name="li56473463"></a>PUT /v1/{project_id}/waf/config/alert/{alertconfig_id}</p>
|
|
</li><li id="waf_02_0082__li10947761">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0082__table31420987" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="waf_02_0082__row6087910"><th align="left" class="cellrowborder" valign="top" width="17.528247175282473%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="waf_02_0082__p23358735"><strong id="waf_02_0082__b84708559510">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.58804119588041%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="waf_02_0082__p13009388"><strong id="waf_02_0082__b1977525605112">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.58804119588041%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="waf_02_0082__p47127526"><strong id="waf_02_0082__b423135825113">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="43.295670432956705%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="waf_02_0082__p59233252"><strong id="waf_02_0082__b176521659165114">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0082__row33164111"><td class="cellrowborder" valign="top" width="17.528247175282473%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="waf_02_0082__p1938446">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="waf_02_0082__p22796426">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="waf_02_0082__p34571178">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.295670432956705%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="waf_02_0082__p48802006">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0082__row36564877"><td class="cellrowborder" valign="top" width="17.528247175282473%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="waf_02_0082__p8965047">alertconfig_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="waf_02_0082__p55080226">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="waf_02_0082__p32313334">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.295670432956705%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="waf_02_0082__p134361">Specifies the ID of the alarm notification configuration to be updated. For details about how to query the alarm configuration ID, see <a href="waf_02_0081.html">Querying Alarm Notification Configurations</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="waf_02_0082__section20195840"><h4 class="sectiontitle">Request</h4><div class="p" id="waf_02_0082__p1863223212165">Request parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0082__table30841001" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="waf_02_0082__row28720700"><th align="left" class="cellrowborder" valign="top" width="17.528247175282473%" id="mcps1.3.3.2.1.2.5.1.1"><p id="waf_02_0082__p44675403"><strong id="waf_02_0082__b1194253735211">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.58804119588041%" id="mcps1.3.3.2.1.2.5.1.2"><p id="waf_02_0082__p61937923"><strong id="waf_02_0082__b2439239195213">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.58804119588041%" id="mcps1.3.3.2.1.2.5.1.3"><p id="waf_02_0082__p50915851"><strong id="waf_02_0082__b15881184045211">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="43.295670432956705%" id="mcps1.3.3.2.1.2.5.1.4"><p id="waf_02_0082__p30543243"><strong id="waf_02_0082__b171701442135213">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0082__row58083628"><td class="cellrowborder" valign="top" width="17.528247175282473%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0082__p7153429">enabled</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0082__p42556911">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0082__p24557794">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.295670432956705%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0082__p155702112116">Specifies whether to send an alarm notification.</p>
|
|
<ul id="waf_02_0082__ul11892104301314"><li id="waf_02_0082__li1689211436134"><strong id="waf_02_0082__b1054620558265">true</strong>: Send the alarm notification.</li><li id="waf_02_0082__li11612188201419"><strong id="waf_02_0082__b487454872614">false</strong>: Do not send the alarm notification.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0082__row51674174"><td class="cellrowborder" valign="top" width="17.528247175282473%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0082__p24858548">topic_urn</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0082__p276544">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0082__p22400071">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.295670432956705%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0082__p2466483">Specifies the SMN topic to which an alarm is sent.</p>
|
|
<div class="note" id="waf_02_0082__note154521052162615"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="waf_02_0082__p1045313528261">The selected topic must be a topic whose subscription information has been configured on the SMN console.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0082__row22198355"><td class="cellrowborder" valign="top" width="17.528247175282473%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0082__p53236305">sendfreq</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0082__p17173415">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0082__p48869374">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.295670432956705%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0082__p12326947425">Specifies the minimum interval between two alarms in minutes. The options are <strong id="waf_02_0082__b598212207298">5</strong>, <strong id="waf_02_0082__b1498210208299">15</strong>, <strong id="waf_02_0082__b8983172018297">30</strong>, and <strong id="waf_02_0082__b1298392016292">60</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0082__row58076012"><td class="cellrowborder" valign="top" width="17.528247175282473%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0082__p6536507">times</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0082__p59695047">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0082__p3460599">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.295670432956705%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0082__p833113471522">Specifies the alarm threshold. Alarm notifications are sent when the number of attacks is greater than or equal to the threshold within the configured period. This value is greater than or equal to <strong id="waf_02_0082__b179911625162711">1</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0082__row39748818"><td class="cellrowborder" valign="top" width="17.528247175282473%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0082__p65537676">threat</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0082__p6951559">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0082__p26205419">List<String></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.295670432956705%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0082__p42264158">Specifies the list of event types.</p>
|
|
<ul id="waf_02_0082__ul527919447315"><li id="waf_02_0082__li171963573210"><strong id="waf_02_0082__b209171815103210">all</strong> refers to all types of events.</li><li id="waf_02_0082__li19621591320"><span class="parmvalue" id="waf_02_0082__parmvalue950934320599"><b>cc</b></span> refers to CC attack.</li><li id="waf_02_0082__li1388451193217"><span class="parmvalue" id="waf_02_0082__parmvalue8746852848"><b>cmdi</b></span> refers to command injection.</li><li id="waf_02_0082__li1940231473216"><span class="parmvalue" id="waf_02_0082__parmvalue1293617551746"><b>custom</b></span> refers to Precise Protection events.</li><li id="waf_02_0082__li8753131816327"><span class="parmvalue" id="waf_02_0082__parmvalue4445735943"><b>illegal</b></span> refers to invalid requests.</li><li id="waf_02_0082__li2523192283217"><span class="parmvalue" id="waf_02_0082__parmvalue095312591241"><b>sqli</b></span> refers to SQL injection.</li><li id="waf_02_0082__li965492411328"><span class="parmvalue" id="waf_02_0082__parmvalue561033517"><b>lfi</b></span> refers to local file inclusion.</li><li id="waf_02_0082__li2420122611320"><strong id="waf_02_0082__b11501862511">robot</strong> refers to malicious crawlers.</li><li id="waf_02_0082__li7313142833213"><span class="parmvalue" id="waf_02_0082__parmvalue1078113311833"><b>antitamper</b></span> refers to Web Tamper Protection events.</li><li id="waf_02_0082__li6286930183216"><span class="parmvalue" id="waf_02_0082__parmvalue137765121957"><b>rfi</b></span> refers to remote file inclusion.</li><li id="waf_02_0082__li81331934133216"><span class="parmvalue" id="waf_02_0082__parmvalue1092168516"><b>vuln</b></span> refers to other types of attacks.</li><li id="waf_02_0082__li1145873753210"><span class="parmvalue" id="waf_02_0082__parmvalue18629181910520"><b>xss</b></span> refers to XSS attack.</li><li id="waf_02_0082__li19608239183220"><span class="parmvalue" id="waf_02_0082__parmvalue255119221157"><b>whiteblackip</b></span> refers to Blacklist and Whitelist events.</li><li id="waf_02_0082__li627911445311"><span class="parmvalue" id="waf_02_0082__parmvalue1943011268512"><b>webshell</b></span> refers to webshells.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0082__row44833110"><td class="cellrowborder" valign="top" width="17.528247175282473%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0082__p7603302">locale</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0082__p11887706">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.58804119588041%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0082__p23380123">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.295670432956705%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0082__p14741776">Specifies the language configuration. Only <strong id="waf_02_0082__b189224610456">zh-cn</strong> and <strong id="waf_02_0082__b1392114611454">en-us</strong> are supported. The default value is <strong id="waf_02_0082__b510013461451">en-us</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="waf_02_0082__section47544838"><h4 class="sectiontitle">Response</h4><div class="p" id="waf_02_0082__p819155551614">Response parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0082__table64771846" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameter description</caption><thead align="left"><tr id="waf_02_0082__row64088200"><th align="left" class="cellrowborder" valign="top" width="17.169999999999998%" id="mcps1.3.4.2.1.2.4.1.1"><p id="waf_02_0082__p23761692"><strong id="waf_02_0082__b335911034612">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.189999999999998%" id="mcps1.3.4.2.1.2.4.1.2"><p id="waf_02_0082__p45648893"><strong id="waf_02_0082__b1775510964614">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="63.63999999999999%" id="mcps1.3.4.2.1.2.4.1.3"><p id="waf_02_0082__p6572818"><strong id="waf_02_0082__b159781810204613">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0082__row62636227"><td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0082__p40369658">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.189999999999998%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0082__p48716828">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.63999999999999%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0082__p53749011">Specifies the unique ID of an alarm configuration.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0082__row13979058"><td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0082__p58561923">enabled</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.189999999999998%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0082__p45895324">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.63999999999999%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0082__p68819531435">Specifies whether to send an alarm notification.</p>
|
|
<ul id="waf_02_0082__ul1488225312313"><li id="waf_02_0082__li1488316538319"><strong id="waf_02_0082__b18957132842816">true</strong>: Send the alarm notification.</li><li id="waf_02_0082__li588525313313"><strong id="waf_02_0082__b250223222817">false</strong>: Do not send the alarm notification.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0082__row37477597"><td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0082__p15786515">topic_urn</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.189999999999998%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0082__p3639309">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.63999999999999%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0082__p26348595">Specifies the user-defined SMN topic. Users can receive alarm notifications by SMS or email.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0082__row35810771"><td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0082__p14991335">sendfreq</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.189999999999998%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0082__p6338652">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.63999999999999%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0082__p43668826">Specifies the minimum interval between two alarms in minutes. The options are <strong id="waf_02_0082__b117934149302">5</strong>, <strong id="waf_02_0082__b279451493018">15</strong>, <strong id="waf_02_0082__b4794181473010">30</strong>, and <strong id="waf_02_0082__b1879531417304">60</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0082__row57475115"><td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0082__p24972744">times</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.189999999999998%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0082__p9526402">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.63999999999999%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0082__p33441088">Specifies the alarm threshold. Alarm notifications are sent when the number of attacks is greater than or equal to the threshold within the configured period. This value is greater than or equal to <strong id="waf_02_0082__b24872374299">1</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0082__row32534340"><td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0082__p18035908">threat</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.189999999999998%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0082__p51622461">List<String></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.63999999999999%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0082__p20669782">Specifies the list of event types.</p>
|
|
<ul id="waf_02_0082__ul1638611231235"><li id="waf_02_0082__li1238718231133"><strong id="waf_02_0082__b38850355326">all</strong> refers to all types of events.</li><li id="waf_02_0082__li739114237315"><span class="parmvalue" id="waf_02_0082__parmvalue914220448610"><b>cc</b></span> refers to CC attack.</li><li id="waf_02_0082__li5394102315319"><span class="parmvalue" id="waf_02_0082__parmvalue7997147466"><b>cmdi</b></span> refers to command injection.</li><li id="waf_02_0082__li173971231936"><span class="parmvalue" id="waf_02_0082__parmvalue259433114114"><b>custom</b></span> refers to Precise Protection events.</li><li id="waf_02_0082__li44005231312"><span class="parmvalue" id="waf_02_0082__parmvalue6357659162915"><b>illegal</b></span> refers to invalid requests.</li><li id="waf_02_0082__li5405723139"><span class="parmvalue" id="waf_02_0082__parmvalue181171418519"><b>sqli</b></span> refers to SQL injection.</li><li id="waf_02_0082__li3409102316311"><span class="parmvalue" id="waf_02_0082__parmvalue106036153019"><b>lfi</b></span> refers to local file inclusion.</li><li id="waf_02_0082__li20411423437"><strong id="waf_02_0082__b1088417783012">robot</strong> refers to malicious crawlers.</li><li id="waf_02_0082__li16414122311318"><span class="parmvalue" id="waf_02_0082__parmvalue104141723330"><b>antitamper</b></span> refers to Web Tamper Protection events.</li><li id="waf_02_0082__li194164237318"><span class="parmvalue" id="waf_02_0082__parmvalue1246061473016"><b>rfi</b></span> refers to remote file inclusion.</li><li id="waf_02_0082__li7421523237"><span class="parmvalue" id="waf_02_0082__parmvalue91394167302"><b>vuln</b></span> refers to other types of attacks.</li><li id="waf_02_0082__li15424182310312"><span class="parmvalue" id="waf_02_0082__parmvalue180482710516"><b>xss</b></span> refers to XSS attack.</li><li id="waf_02_0082__li19426162318310"><span class="parmvalue" id="waf_02_0082__parmvalue56334710415"><b>whiteblackip</b></span> refers to Blacklist and Whitelist events.</li><li id="waf_02_0082__li1142852317310"><span class="parmvalue" id="waf_02_0082__parmvalue13624173513516"><b>webshell</b></span> refers to webshells.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0082__row51810310"><td class="cellrowborder" valign="top" width="17.169999999999998%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0082__p35885554">locale</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.189999999999998%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0082__p21048787">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.63999999999999%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0082__p27230225">Specifies the language configuration. Only <strong id="waf_02_0082__b07158190325">zh-cn</strong> and <strong id="waf_02_0082__b571641993216">en-us</strong> are supported. The default value is <strong id="waf_02_0082__b0717719123220">en-us</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="waf_02_0082__section9662958171611"><h4 class="sectiontitle">Examples</h4><p id="waf_02_0082__p114259298315"></p>
|
|
<ul id="waf_02_0082__ul1768114581169"><li class="litext" id="waf_02_0082__li126801958131610">Request example<pre class="screen" id="waf_02_0082__screen10681195816169">{
|
|
"enabled": true,
|
|
"topic_urn": "urn:smn:eude:fca6f667ac5f4d9798d1641dfd38106b:wbtest",
|
|
"sendfreq": 5,
|
|
"times": 200,
|
|
"threat": ["xss", "sqli", "cmdi"]
|
|
}</pre>
|
|
</li></ul>
|
|
<ul id="waf_02_0082__ul46817585163"><li id="waf_02_0082__li668111589160">Response example<pre class="screen" id="waf_02_0082__screen1268185841610">{
|
|
"id": "37b4bbe8a562453aa0163a96e6b71dd6",
|
|
"enabled": true,
|
|
"topic_urn": "urn:smn:eude:fca6f667ac5f4d9798d1641dfd38106b:wbtest",
|
|
"sendfreq": 5,
|
|
"times": 200,
|
|
"threat": ["xss", "sqli", "cmdi"],
|
|
"locale": "en-us"
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="waf_02_0082__section25250359"><h4 class="sectiontitle">Status Code</h4><div class="p" id="waf_02_0082__waf_02_0012_a652d4922b7df48fca0a65bc1a38ea5f2"><a href="#waf_02_0082__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0">Table 4</a> describes the normal status code returned by the API.
|
|
<div class="tablenoborder"><a name="waf_02_0082__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0"></a><a name="waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0082__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Status code</caption><thead align="left"><tr id="waf_02_0082__waf_02_0012_r3d6e2f205c444705bdbb9daaac74e575"><th align="left" class="cellrowborder" valign="top" width="22%" id="mcps1.3.6.2.2.2.4.1.1"><p id="waf_02_0082__waf_02_0012_af3c4073076f24eca88d94e3fa1effdc6">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.41%" id="mcps1.3.6.2.2.2.4.1.2"><p id="waf_02_0082__waf_02_0012_en-us_topic_0144911667_p4531342288">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="58.589999999999996%" id="mcps1.3.6.2.2.2.4.1.3"><p id="waf_02_0082__waf_02_0012_ada185614bba24140995b8123b3e9faa8">Meaning</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0082__waf_02_0012_rc7b2adc390904a1ba79e303017797786"><td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.6.2.2.2.4.1.1 "><p id="waf_02_0082__waf_02_0012_a93f3895d44bb4226934cc626ac50e37b">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.41%" headers="mcps1.3.6.2.2.2.4.1.2 "><p id="waf_02_0082__waf_02_0012_en-us_topic_0144911667_p7538425819">OK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.6.2.2.2.4.1.3 "><p id="waf_02_0082__waf_02_0012_en-us_topic_0144911667_p369874114414">The request has succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<p id="waf_02_0082__waf_02_0012_en-us_topic_0144911667_p482819399522">For details about error status codes, see <a href="waf_02_0085.html">Status Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="waf_02_0079.html">Alarm Notification</a></div>
|
|
</div>
|
|
</div>
|
|
|