Files
doc-exports/docs/ces/api-ref/BatchEnableAlarmRules.html
qiujiandong1 e9265fb6b0 CES API Update -20250521 version
Reviewed-by: Ziuzko, Alevtina <alevtina.ziuzko@t-systems.com>
Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com>
Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
2025-12-05 10:48:24 +00:00

255 lines
23 KiB
HTML

<a name="BatchEnableAlarmRules"></a><a name="BatchEnableAlarmRules"></a>
<h1 class="topictitle1">Enabling or Disabling Alarm Rules in Batches</h1>
<div id="body8662426"><div class="section" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_section1978010130464"><h4 class="sectiontitle">Function</h4><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p15780181310466">This API is used to enable or disable alarm rules in batches.</p>
</div>
<div class="section" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_section1978041312466"><h4 class="sectiontitle">URI</h4><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p14780191374614">POST /v2/{project_id}/alarms/action</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_table778118137462" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row12780101334611"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p117811713184618">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p17781213164615">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p19781181310464">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p57811813134614">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row11781113164615"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p14781151354613">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p11781121319464">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p2781161344619">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="BatchEnableAlarmRules__p42316702175455">Project ID.</p>
<p id="BatchEnableAlarmRules__p191415137612">For details about how to obtain the project ID, see <a href="ces_03_0057.html">Obtaining a Project ID</a>.</p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001646899046_p18100524114814">Minimum: <strong id="BatchEnableAlarmRules__b211547238334051">1</strong></p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001646899046_p81001524104817">Maximum: <strong id="BatchEnableAlarmRules__b96284741283253">64</strong></p>
<p id="BatchEnableAlarmRules__p4697184133915"><strong id="BatchEnableAlarmRules__b3346015382511">Regular expression matching</strong>: ^[a-zA-Z0-9-]{1,64}$</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_section1478181313464"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row11782171318466"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1878291384618">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p778221364614">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p6782161317462">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1782413184617">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row87821113134614"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1178271311469">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p15782201394617">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p278217131462">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1678281384615">MIME type of the request body. The default value is <strong id="BatchEnableAlarmRules__b107105901152752">application/json; charset=UTF-8</strong>.</p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p10782171317467">Default: <strong id="BatchEnableAlarmRules__b207971734993923">application/json; charset=UTF-8</strong></p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p17821513184613">Minimum: <strong id="BatchEnableAlarmRules__b199976025434051">1</strong></p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p19782151384611">Maximum: <strong id="BatchEnableAlarmRules__b20680578683253">64</strong></p>
</td>
</tr>
<tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row16782413174610"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p7783121314465">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p147831213134618">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1078321344613">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="BatchEnableAlarmRules__p1798642515348">User token. It is a response to the API for obtaining a user token. This API is the only one that does not require authentication. After a response is returned, the value of <strong id="BatchEnableAlarmRules__b11126930333857">X-Subject-Token</strong> in the response header is the token.</p>
<p id="BatchEnableAlarmRules__p6986825113415">Minimum: <strong id="BatchEnableAlarmRules__b151125336134051">1</strong></p>
<p id="BatchEnableAlarmRules__p149863252347">Maximum: <strong id="BatchEnableAlarmRules__b623669551438">16384</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_request_BatchEnableAlarmsRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row15783613104620"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p8783191354617">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p187831113174612">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p97831213144611">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p117831113164614">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row77836136463"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p5784101334611">alarm_ids</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p12784131394615">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p17841513124610">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p5784121364619">IDs of alarm rules to be enabled or disabled in batches.</p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p778411316461">Array length: <strong id="BatchEnableAlarmRules__b226753174716">1</strong> to <strong id="BatchEnableAlarmRules__b62674317473">100</strong></p>
</td>
</tr>
<tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row1578381315462"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p187849134460">alarm_enabled</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p878414133465">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1784181320468">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p0784121384612">Whether to generate alarms when the alarm triggering conditions are met.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_section678419131463"><h4 class="sectiontitle">Response Parameters</h4><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1978412130461"><strong id="BatchEnableAlarmRules__b114249270082946">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_response_BatchEnableAlarmsResp" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row678491319467"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1778531314611">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p87851213114612">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p137859135462">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row578412134461"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1878514139464">alarm_ids</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p878520134463">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p378516136462">IDs of alarm rules that were enabled or disabled.</p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p6785181315461">Array length: <strong id="BatchEnableAlarmRules__b13589049124616">1</strong> to <strong id="BatchEnableAlarmRules__b1758914934615">100</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p278541314463"><strong id="BatchEnableAlarmRules__b169219805454016">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_response_GoAPIErrorResponseV2" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row9785181324615"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p15785201310465">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p187861013154613">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p2078617137465">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row19785313184618"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p878614137463">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1778621374618">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1786171364617">Status code customized by each cloud service when a request error occurs.</p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p2786141319469">Minimum: <strong id="BatchEnableAlarmRules__b81705392774749">0</strong></p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1786713164614">Maximum: <strong id="BatchEnableAlarmRules__b93915603451216">256</strong></p>
</td>
</tr>
<tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row578591313468"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p117861134467">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p078641318469">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p8786171316465">Request error message.</p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p2786313114610">Minimum: <strong id="BatchEnableAlarmRules__b101892077474749">0</strong></p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p2786121312469">Maximum: <strong id="BatchEnableAlarmRules__b155003021251216">256</strong></p>
</td>
</tr>
<tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row9785141310463"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p157861213104611">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p11786413104615">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p13786111364619">Request ID.</p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p17864138468">Minimum: <strong id="BatchEnableAlarmRules__b99110971574749">0</strong></p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p67868135469">Maximum: <strong id="BatchEnableAlarmRules__b209453065551216">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p157862135468"><strong id="BatchEnableAlarmRules__b56372160131933">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_table978612137466" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row978711324610"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p47871713134619">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p5787191334615">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p4787171394617">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row16787013194610"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1787713174612">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1078714135461">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p19787413124619">Status code customized by each cloud service when a request error occurs.</p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p3787113194619">Minimum: <strong id="BatchEnableAlarmRules__b18682089474749">0</strong></p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p13787191334617">Maximum: <strong id="BatchEnableAlarmRules__b26131839151216">256</strong></p>
</td>
</tr>
<tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row18787313144616"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p878711314617">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1278713135463">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p87871513194619">Request error message.</p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p17878139461">Minimum: <strong id="BatchEnableAlarmRules__b118279713174749">0</strong></p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p8788111312466">Maximum: <strong id="BatchEnableAlarmRules__b207648978951216">256</strong></p>
</td>
</tr>
<tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row978712137465"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p117886135462">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p11788113114613">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1778811318469">Request ID.</p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1578817139467">Minimum: <strong id="BatchEnableAlarmRules__b57661952174749">0</strong></p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p19788111384610">Maximum: <strong id="BatchEnableAlarmRules__b28801218951216">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_section16788121344618"><h4 class="sectiontitle">Example Requests</h4><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p15788141354613">Enable or disable alarm rules in batches.</p>
<pre class="screen" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_screen13788141394618">{
"alarm_ids" : [ "al12345678901234567890" ],
"alarm_enabled" : true
}</pre>
</div>
<div class="section" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_section3788111344619"><h4 class="sectiontitle">Example Responses</h4><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p18788113144613"><strong id="BatchEnableAlarmRules__b102932197482946">Status code: 200</strong></p>
<p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p18788111319467">Alarm rules enabled or disabled.</p>
<pre class="screen" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_screen16788181311469">{
"alarm_ids" : [ "alCzk8o9dtSQHtiDgb44Eepw" ]
}</pre>
</div>
<div class="section" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_section11788313154610"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row13789161313464"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p6789913174615">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p9789191394616">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row1278951315461"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p9789413154616">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p5789191314619">Alarm rules enabled or disabled.</p>
</td>
</tr>
<tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row678991394610"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p278971374614">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1878911319462">Parameter verification failed.</p>
</td>
</tr>
<tr id="BatchEnableAlarmRules__en-us_topic_0000001695218721_row1678921394616"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p5789201310469">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p167891513164617">Failed to complete the request because of an internal server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="BatchEnableAlarmRules__en-us_topic_0000001695218721_section2789161324610"><h4 class="sectiontitle">Error Codes</h4><p id="BatchEnableAlarmRules__en-us_topic_0000001695218721_p1378971318460">See <a href="ErrorCode.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="topic_300000000.html">Alarm Rules</a></div>
</div>
</div>