forked from docs/doc-exports
Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
227 lines
16 KiB
HTML
227 lines
16 KiB
HTML
<a name="antiddos_02_0041"></a><a name="antiddos_02_0041"></a>
|
|
|
|
<h1 class="topictitle1">Updating Alarm Configuration</h1>
|
|
<div id="body1595904757719"><div class="section" id="antiddos_02_0041__section55096476"><h4 class="sectiontitle">Functions</h4><p id="antiddos_02_0041__p19173388">This API allows you to update alarm configuration, such as whether a certain type of alarms will be received, and whether alarms are received through SMS messages or emails.</p>
|
|
</div>
|
|
<div class="section" id="antiddos_02_0041__section26106237"><h4 class="sectiontitle">URI</h4><ul id="antiddos_02_0041__ul9540605"><li id="antiddos_02_0041__li18756585">URI format<p id="antiddos_02_0041__p53512344152251"><a name="antiddos_02_0041__li18756585"></a><a name="li18756585"></a>POST /v2/{project_id}/warnalert/alertconfig/update</p>
|
|
</li><li id="antiddos_02_0041__li42888430">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0041__table51410791" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0041__row16041741"><th align="left" class="cellrowborder" valign="top" width="21.9%" id="mcps1.3.2.2.2.1.1.5.1.1"><p id="antiddos_02_0041__p24312641">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="26.55%" id="mcps1.3.2.2.2.1.1.5.1.2"><p id="antiddos_02_0041__p23166934">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20.62%" id="mcps1.3.2.2.2.1.1.5.1.3"><p id="antiddos_02_0041__p64582388">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="30.930000000000003%" id="mcps1.3.2.2.2.1.1.5.1.4"><p id="antiddos_02_0041__p63790914">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="antiddos_02_0041__row66790376"><td class="cellrowborder" valign="top" width="21.9%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="antiddos_02_0041__p41311375">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.55%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="antiddos_02_0041__p57887070">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.62%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="antiddos_02_0041__p58341118">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.930000000000003%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="antiddos_02_0041__p28010135">User ID</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="antiddos_02_0041__section34230492"><h4 class="sectiontitle">Request</h4><ul id="antiddos_02_0041__ul48654403"><li id="antiddos_02_0041__li35236445">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0041__table48692557" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0041__row57013647"><th align="left" class="cellrowborder" valign="top" width="23.66%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="antiddos_02_0041__p54702703">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.28%" id="mcps1.3.3.2.1.1.1.5.1.2"><p id="antiddos_02_0041__p1733939">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="26.529999999999998%" id="mcps1.3.3.2.1.1.1.5.1.3"><p id="antiddos_02_0041__p6231364">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="26.529999999999998%" id="mcps1.3.3.2.1.1.1.5.1.4"><p id="antiddos_02_0041__p34978441">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="antiddos_02_0041__row14681450"><td class="cellrowborder" valign="top" width="23.66%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="antiddos_02_0041__p48346833">warn_config</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.28%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="antiddos_02_0041__p23779363">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="antiddos_02_0041__p47080266">List data structure</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="antiddos_02_0041__p28885026">Alarm configuration</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0041__row58638646"><td class="cellrowborder" valign="top" width="23.66%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="antiddos_02_0041__p52109899">topic_urn</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.28%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="antiddos_02_0041__p60152276">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="antiddos_02_0041__p40496186">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="antiddos_02_0041__p58965604">ID of an alarm group</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0041__row60928390"><td class="cellrowborder" valign="top" width="23.66%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="antiddos_02_0041__p36252562">display_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.28%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="antiddos_02_0041__p50776406">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="antiddos_02_0041__p19248251">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="antiddos_02_0041__p15604521">Specifies the name of the SMN topic used for sending alarm notifications.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="antiddos_02_0041__li6222962">Data structure description of <strong id="antiddos_02_0041__b84235270695528">warn_config</strong>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0041__table56006663" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0041__row16420978"><th align="left" class="cellrowborder" valign="top" width="21.43%" id="mcps1.3.3.2.2.2.1.5.1.1"><p id="antiddos_02_0041__p55030817">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.46%" id="mcps1.3.3.2.2.2.1.5.1.2"><p id="antiddos_02_0041__p28311181">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.16%" id="mcps1.3.3.2.2.2.1.5.1.3"><p id="antiddos_02_0041__p11504285">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="43.95%" id="mcps1.3.3.2.2.2.1.5.1.4"><p id="antiddos_02_0041__p59431865">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="antiddos_02_0041__row49251786"><td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.3.2.2.2.1.5.1.1 "><p id="antiddos_02_0041__p29971768">antiDDoS</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.46%" headers="mcps1.3.3.2.2.2.1.5.1.2 "><p id="antiddos_02_0041__p11794154">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.16%" headers="mcps1.3.3.2.2.2.1.5.1.3 "><p id="antiddos_02_0041__p15802441">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.95%" headers="mcps1.3.3.2.2.2.1.5.1.4 "><p id="antiddos_02_0041__p4929340">DDoS attacks</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0041__row44364065"><td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.3.2.2.2.1.5.1.1 "><p id="antiddos_02_0041__p36719502">bruce_force</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.46%" headers="mcps1.3.3.2.2.2.1.5.1.2 "><p id="antiddos_02_0041__p21489667">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.16%" headers="mcps1.3.3.2.2.2.1.5.1.3 "><p id="antiddos_02_0041__p62941481">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.95%" headers="mcps1.3.3.2.2.2.1.5.1.4 "><p id="antiddos_02_0041__p65095207">Brute force cracking (system logins, FTP, and DB)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0041__row48985959"><td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.3.2.2.2.1.5.1.1 "><p id="antiddos_02_0041__p8439774">remote_login</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.46%" headers="mcps1.3.3.2.2.2.1.5.1.2 "><p id="antiddos_02_0041__p12533056">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.16%" headers="mcps1.3.3.2.2.2.1.5.1.3 "><p id="antiddos_02_0041__p8544631">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.95%" headers="mcps1.3.3.2.2.2.1.5.1.4 "><p id="antiddos_02_0041__p21026539">Alarms about remote logins</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0041__row55021127"><td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.3.2.2.2.1.5.1.1 "><p id="antiddos_02_0041__p27526304">weak_password</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.46%" headers="mcps1.3.3.2.2.2.1.5.1.2 "><p id="antiddos_02_0041__p15038186">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.16%" headers="mcps1.3.3.2.2.2.1.5.1.3 "><p id="antiddos_02_0041__p10133581">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.95%" headers="mcps1.3.3.2.2.2.1.5.1.4 "><p id="antiddos_02_0041__p15513712">Weak passwords (system and database)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0041__row5405681"><td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.3.2.2.2.1.5.1.1 "><p id="antiddos_02_0041__p35206999">high_privilege</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.46%" headers="mcps1.3.3.2.2.2.1.5.1.2 "><p id="antiddos_02_0041__p33194707">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.16%" headers="mcps1.3.3.2.2.2.1.5.1.3 "><p id="antiddos_02_0041__p4416714">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.95%" headers="mcps1.3.3.2.2.2.1.5.1.4 "><p id="antiddos_02_0041__p22209574">Overly high rights of a database process</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0041__row65668446"><td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.3.2.2.2.1.5.1.1 "><p id="antiddos_02_0041__p17543884">back_doors</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.46%" headers="mcps1.3.3.2.2.2.1.5.1.2 "><p id="antiddos_02_0041__p11768466">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.16%" headers="mcps1.3.3.2.2.2.1.5.1.3 "><p id="antiddos_02_0041__p13721689">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.95%" headers="mcps1.3.3.2.2.2.1.5.1.4 "><p id="antiddos_02_0041__p37715016">Webshells</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0041__row3890831"><td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.3.2.2.2.1.5.1.1 "><p id="antiddos_02_0041__p46721870">waf</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.46%" headers="mcps1.3.3.2.2.2.1.5.1.2 "><p id="antiddos_02_0041__p26375114">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.16%" headers="mcps1.3.3.2.2.2.1.5.1.3 "><p id="antiddos_02_0041__p56009450">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.95%" headers="mcps1.3.3.2.2.2.1.5.1.4 "><p id="antiddos_02_0041__p40471574">Reserved</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0041__row49427073194532"><td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.3.2.2.2.1.5.1.1 "><p id="antiddos_02_0041__p63319096194541">send_frequency</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.46%" headers="mcps1.3.3.2.2.2.1.5.1.2 "><p id="antiddos_02_0041__p28573150194541">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.16%" headers="mcps1.3.3.2.2.2.1.5.1.3 "><p id="antiddos_02_0041__p1789380615303">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.95%" headers="mcps1.3.3.2.2.2.1.5.1.4 "><p id="antiddos_02_0041__p33380830194541">Possible values:</p>
|
|
<ul id="antiddos_02_0041__ul31992022194541"><li id="antiddos_02_0041__li19492746194541"><span class="parmvalue" id="antiddos_02_0041__parmvalue1724117791011"><b>0</b></span>: indicates that alarms are sent once a day.</li><li id="antiddos_02_0041__li41216986194541"><span class="parmvalue" id="antiddos_02_0041__parmvalue1640814851020"><b>1</b></span>: indicates that alarms are sent once every half hour.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="note" id="antiddos_02_0041__note137401655102314"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="antiddos_02_0041__p8742855192313">SFTP is more secure than FTP. To secure data transmission, use SFTP to transfer files.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="antiddos_02_0041__section25104311547"><h4 class="sectiontitle">Response Message</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0041__table19277114418546" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0041__row227714414549"><th align="left" class="cellrowborder" valign="top" width="30.84%" id="mcps1.3.4.2.1.4.1.1"><p id="antiddos_02_0041__p927714445417">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="34.58%" id="mcps1.3.4.2.1.4.1.2"><p id="antiddos_02_0041__p327714442549">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="34.58%" id="mcps1.3.4.2.1.4.1.3"><p id="antiddos_02_0041__p122772044185412">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="antiddos_02_0041__row192775441542"><td class="cellrowborder" valign="top" width="30.84%" headers="mcps1.3.4.2.1.4.1.1 "><p id="antiddos_02_0041__p124656562548">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="34.58%" headers="mcps1.3.4.2.1.4.1.2 "><p id="antiddos_02_0041__p124641556175411">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="34.58%" headers="mcps1.3.4.2.1.4.1.3 "><p id="antiddos_02_0041__p1546312567548">Internal error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0041__row2277174445411"><td class="cellrowborder" valign="top" width="30.84%" headers="mcps1.3.4.2.1.4.1.1 "><p id="antiddos_02_0041__p18463195685418">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="34.58%" headers="mcps1.3.4.2.1.4.1.2 "><p id="antiddos_02_0041__p646265695420">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="34.58%" headers="mcps1.3.4.2.1.4.1.3 "><p id="antiddos_02_0041__p16462956185415">Internal error description</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0041__row19277114418543"><td class="cellrowborder" valign="top" width="30.84%" headers="mcps1.3.4.2.1.4.1.1 "><p id="antiddos_02_0041__p546185685415">task_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="34.58%" headers="mcps1.3.4.2.1.4.1.2 "><p id="antiddos_02_0041__p646185616541">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="34.58%" headers="mcps1.3.4.2.1.4.1.3 "><p id="antiddos_02_0041__p194373569542">Task ID</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="antiddos_02_0041__section144001912849"><h4 class="sectiontitle">Example</h4><ul id="antiddos_02_0041__ul1771274275511"><li id="antiddos_02_0041__li87121542125519">Example request<pre class="screen" id="antiddos_02_0041__screen1644131219411">{
|
|
"warn_config": {
|
|
"antiDDoS": true,
|
|
"bruce_force": false,
|
|
"remote_login": false,
|
|
"weak_password": false,
|
|
"high_privilege": false,
|
|
"back_doors": false,
|
|
"waf": false
|
|
},
|
|
"topic_urn": "urn:smn:eu-de:67641fe6886f43fcb78edbbf0ad0b99f:test_soft",
|
|
"display_name": "group_1"
|
|
}</pre>
|
|
</li><li id="antiddos_02_0041__li15151124635515">Example response<pre class="screen" id="antiddos_02_0041__screen9882185219556">{
|
|
"error_code" : "10000000",
|
|
"error_msg" : "Ok",
|
|
"task_id" : ""
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="antiddos_02_0041__section39638980"><h4 class="sectiontitle">Status Code</h4><p id="antiddos_02_0041__p1504051">For details, see <a href="antiddos_02_0031.html">Status Code</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="antiddos_02_0028.html">Alarm Reminding APIs</a></div>
|
|
</div>
|
|
</div>
|
|
|