doc-exports/docs/cfw/api-ref/AddAclRule.html
2024-05-31 16:33:09 +08:00

1010 lines
68 KiB
HTML

<a name="AddAclRule"></a><a name="AddAclRule"></a>
<h1 class="topictitle1">Creating an ACL Rule</h1>
<div id="body20942115418341"><div class="section" id="AddAclRule__section119428548342"><h4 class="sectiontitle">Function</h4><p id="AddAclRule__p14942454143410">This API is used to create an ACL rule.</p>
</div>
<div class="section" id="AddAclRule__section994315544343"><h4 class="sectiontitle">URI</h4><p id="AddAclRule__p19431454193417">POST /v1/{project_id}/acl-rule</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__table0944195463416" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="AddAclRule__row1094415412343"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="AddAclRule__p20945195417343">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="AddAclRule__p159451254153412">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="AddAclRule__p394575473419">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="AddAclRule__p794612541347">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row20944145453415"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="AddAclRule__p3946154173412">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="AddAclRule__p9946195423414">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="AddAclRule__p1394720542345">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="AddAclRule__p199473546349">Project ID</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__table149483545345" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="AddAclRule__row3947954193411"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="AddAclRule__p10948155433418">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="AddAclRule__p18948254113413">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="AddAclRule__p7949454153416">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="AddAclRule__p119491854123419">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row139476542346"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="AddAclRule__p16949145483416">enterprise_project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="AddAclRule__p395035443415">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="AddAclRule__p89501054183415">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="AddAclRule__p16950195433418">Enterprise project id, the id generated by the enterprise project after the user supports the enterprise project.</p>
</td>
</tr>
<tr id="AddAclRule__row109473541347"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="AddAclRule__p7950354183419">fw_instance_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="AddAclRule__p3951175473419">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="AddAclRule__p1495145415346">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="AddAclRule__p69511754153413">Firewall instance ID, which is automatically generated after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. For details, see the API Explorer and Help Center FAQ.By default, if fw_instance_Id is not specified, information about the first firewall under the account is returned. If fw_instance_Id is specified, information about the firewall with this fw_instance_Id is returned.If object_Id is specified, information about the firewall with this object_Id is returned by default. If both fw_instance_Id and object_Id are specified, the specified object_Id must belong to the specified firewall.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="AddAclRule__section169529544348"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request header parameters</caption><thead align="left"><tr id="AddAclRule__row1395215544346"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="AddAclRule__p1495313543343">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="AddAclRule__p1095395418344">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="AddAclRule__p595445433410">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="AddAclRule__p15954205463420">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row10952165419345"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="AddAclRule__p2954654193415">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="AddAclRule__p6954125433417">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="AddAclRule__p7955165473415">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="AddAclRule__p1395525473410">User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__request_AddRuleAclDto" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Request body parameters</caption><thead align="left"><tr id="AddAclRule__row395565414349"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="AddAclRule__p13956155413416">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="AddAclRule__p1895717547341">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="AddAclRule__p14957175415348">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="AddAclRule__p295785419345">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row1295635403412"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="AddAclRule__p1195785414346">object_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="AddAclRule__p149583545342">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="AddAclRule__p1895835419346">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="AddAclRule__p139581954203418">Protected object ID, which is used to distinguish Internet border protection from VPC border protection after a CFW instance is created. You can obtain the ID by calling the API used for querying a firewall instance. Note that the value 0 indicates the ID of a protected object on the Internet border, and the value 1 indicates the ID of a protected object on the VPC border. For details, see the API Explorer and Help Center FAQ.</p>
</td>
</tr>
<tr id="AddAclRule__row129566541342"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="AddAclRule__p8959115415346">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="AddAclRule__p495920542346">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="AddAclRule__p3960454143419">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="AddAclRule__p3960154133416">Rule type. The value can be 0 (Internet rule), 1 (VPC rule), or 2 (NAT rule).</p>
<p id="AddAclRule__p19960195412344">Enumeration values:</p>
<ul id="AddAclRule__ul9960754123416"><li id="AddAclRule__li896113540343"><strong id="AddAclRule__b1961165417343">0</strong></li><li id="AddAclRule__li9961135473417"><strong id="AddAclRule__b1796116548342">1</strong></li><li id="AddAclRule__li7961145443416"><strong id="AddAclRule__b49616545347">2</strong></li></ul>
</td>
</tr>
<tr id="AddAclRule__row495615433410"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="AddAclRule__p14962185423410">rules</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="AddAclRule__p1396275433411">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="AddAclRule__p1496335410349">Array of <a href="#AddAclRule__request_rules">rules</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="AddAclRule__p296355420341">rules</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="AddAclRule__request_rules"></a><a name="request_rules"></a><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__request_rules" frame="border" border="1" rules="all"><caption><b>Table 5 </b>rules</caption><thead align="left"><tr id="AddAclRule__row149649546345"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="AddAclRule__p20966125418347">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="AddAclRule__p396620549343">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="AddAclRule__p11967105410342">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="AddAclRule__p4967145473412">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row496414544346"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p4967854183420">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p49686543345">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p1296811549345">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p15968185417346">Rule name</p>
</td>
</tr>
<tr id="AddAclRule__row4964854193411"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p096875415347">sequence</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p4969454193412">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p12969454133418"><a href="#AddAclRule__request_OrderRuleAclDto">OrderRuleAclDto</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p896911549341">Rule sequence</p>
</td>
</tr>
<tr id="AddAclRule__row159641854183418"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p1697075413348">address_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p4970135483411">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p2970354153419">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p189702542343">Address type. The value can be 0 (IPv4), 1 (IPv6), or 2 (domain).</p>
<p id="AddAclRule__p7971854123417">Enumeration values:</p>
<ul id="AddAclRule__ul1197145419343"><li id="AddAclRule__li1197135483415"><strong id="AddAclRule__b7971185453413">0</strong></li><li id="AddAclRule__li1597185483415"><strong id="AddAclRule__b59711254203418">1</strong></li><li id="AddAclRule__li199721254183413"><strong id="AddAclRule__b2972254103418">2</strong></li></ul>
</td>
</tr>
<tr id="AddAclRule__row1896405414341"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p297235453419">action_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p5972115416341">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p169724545348">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p69731654153420">Action. 0: allow; 1: deny</p>
</td>
</tr>
<tr id="AddAclRule__row1996435433415"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p16973135410348">status</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p297313544347">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p20974175443415">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p19974954173416">Rule delivery status. 0: disabled; 1: enabled.</p>
<p id="AddAclRule__p597415411340">Enumeration values:</p>
<ul id="AddAclRule__ul13974185411349"><li id="AddAclRule__li16974175473419"><strong id="AddAclRule__b097516543343">0</strong></li><li id="AddAclRule__li119759547349"><strong id="AddAclRule__b109754549341">1</strong></li></ul>
</td>
</tr>
<tr id="AddAclRule__row4965754103417"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p497511548348">applications</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p1397515443415">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p597655417345">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p2976155423412">applications</p>
</td>
</tr>
<tr id="AddAclRule__row1496535412345"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p1897685473418">applicationsJsonString</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p79771654133418">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p397795493419">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p39778540343">applications json string</p>
</td>
</tr>
<tr id="AddAclRule__row496555463417"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p1697885416344">long_connect_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p20978145473414">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p5978554143416">Long</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p14979145483420">Persistent connection duration</p>
</td>
</tr>
<tr id="AddAclRule__row896575419347"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p997975410341">long_connect_time_hour</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p39801454193419">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p18980154153411">Long</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p13980165412347">Persistent connection duration (hour)</p>
</td>
</tr>
<tr id="AddAclRule__row12965954143415"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p99818546342">long_connect_time_minute</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p19981154203418">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p0982154173417">Long</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p179821154133417">Persistent connection duration (minute)</p>
</td>
</tr>
<tr id="AddAclRule__row1696535423419"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p149821654113418">long_connect_time_second</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p1398213540346">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p9983554153415">Long</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p99831254193412">Persistent Connection Duration (second)</p>
</td>
</tr>
<tr id="AddAclRule__row1096565419341"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p998365411341">long_connect_enable</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p99845541345">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p19984185413410">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p498419546344">Whether to support persistent connections. 0: not supported; 1: supported.</p>
<p id="AddAclRule__p7984954133415">Enumeration values:</p>
<ul id="AddAclRule__ul16985254123413"><li id="AddAclRule__li09851254163418"><strong id="AddAclRule__b698519546342">0</strong></li><li id="AddAclRule__li1298585463418"><strong id="AddAclRule__b10985115493418">1</strong></li></ul>
</td>
</tr>
<tr id="AddAclRule__row19654541348"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p99856542342">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p698625412344">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p3986254183416">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p1398655403413">Description</p>
</td>
</tr>
<tr id="AddAclRule__row1396535410347"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p598715483415">direction</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p1198795493414">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p13987165473413">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p49871354123414">Direction: 0 means outside to inside, 1 means inside to outside, direction value is required when rule type is internet or nat.</p>
<p id="AddAclRule__p79881254133416">Enumeration values:</p>
<ul id="AddAclRule__ul19988115414347"><li id="AddAclRule__li16988165411349"><strong id="AddAclRule__b119881754163414">0</strong></li><li id="AddAclRule__li18988854143410"><strong id="AddAclRule__b3988125418349">1</strong></li></ul>
</td>
</tr>
<tr id="AddAclRule__row796595413417"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p149891754183415">source</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p898917546343">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p17989185473413"><a href="#AddAclRule__request_RuleAddressDtoForRequest">RuleAddressDtoForRequest</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p1098925413411">Source address transmission object</p>
</td>
</tr>
<tr id="AddAclRule__row1196515543344"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p199085416349">destination</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p109901154123414">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p129911954133419"><a href="#AddAclRule__request_RuleAddressDtoForRequest">RuleAddressDtoForRequest</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p169911254103413">Destination address transmission object</p>
</td>
</tr>
<tr id="AddAclRule__row139651254183414"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p10991175483412">service</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p59924542347">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p2992165423416"><a href="#AddAclRule__request_RuleServiceDto">RuleServiceDto</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p0992115416344">Service object</p>
</td>
</tr>
<tr id="AddAclRule__row18965175420345"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddAclRule__p12993205423418">tag</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddAclRule__p5993125413346">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddAclRule__p499365417343"><a href="#AddAclRule__request_TagsVO">TagsVO</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddAclRule__p1999495493414">Tag value</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="AddAclRule__request_OrderRuleAclDto"></a><a name="request_OrderRuleAclDto"></a><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__request_OrderRuleAclDto" frame="border" border="1" rules="all"><caption><b>Table 6 </b>OrderRuleAclDto</caption><thead align="left"><tr id="AddAclRule__row9994155418348"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.1"><p id="AddAclRule__p19995654163410">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.2"><p id="AddAclRule__p199951654183415">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.3"><p id="AddAclRule__p2996155415344">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.5.2.5.1.4"><p id="AddAclRule__p14996155423416">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row1499415412346"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="AddAclRule__p14997205417343">dest_rule_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="AddAclRule__p109971254103410">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="AddAclRule__p7997195403413">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="AddAclRule__p8997135463419">ID of the rule that the added rule will follow. This parameter cannot be left blank if the rule is not pinned on top, and is empty when the added rule is pinned on top.</p>
</td>
</tr>
<tr id="AddAclRule__row399495413417"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="AddAclRule__p999835413413">top</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="AddAclRule__p179981354173417">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="AddAclRule__p1998115413414">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="AddAclRule__p7999115453414">Whether to pin on top. The options are as follows: 0: no; 1: yes.</p>
</td>
</tr>
<tr id="AddAclRule__row19994155423412"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="AddAclRule__p11999754153419">bottom</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="AddAclRule__p1299955463420">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="AddAclRule__p15999145416347">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="AddAclRule__p110115510349">Whether to pin on bottom. The options are as follows: 0: no; 1: yes.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="AddAclRule__request_RuleAddressDtoForRequest"></a><a name="request_RuleAddressDtoForRequest"></a><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__request_RuleAddressDtoForRequest" frame="border" border="1" rules="all"><caption><b>Table 7 </b>RuleAddressDtoForRequest</caption><thead align="left"><tr id="AddAclRule__row1311955133411"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.1"><p id="AddAclRule__p0295518349">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.2"><p id="AddAclRule__p14395523416">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.3"><p id="AddAclRule__p11335516349">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.6.2.5.1.4"><p id="AddAclRule__p73555163412">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row41185517342"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="AddAclRule__p174155519349">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="AddAclRule__p1841155123414">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="AddAclRule__p1942553341">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="AddAclRule__p115155510348">Source type. 0: manual input; 1: associated IP address group; 2: domain name; 3: region; 4: domain set 5: multi object, 6: domain set dns, 7: domain url profile</p>
</td>
</tr>
<tr id="AddAclRule__row5135583411"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="AddAclRule__p2555583413">address_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="AddAclRule__p11535573411">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="AddAclRule__p126955133418">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="AddAclRule__p163558340">Source type. 0: IPv4; 1: IPv6</p>
</td>
</tr>
<tr id="AddAclRule__row15195515346"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="AddAclRule__p106145533416">address</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="AddAclRule__p971655103411">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="AddAclRule__p973553349">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="AddAclRule__p127195510343">Source IP address. The value cannot be empty for the manual type, and cannot be empty for the automatic or domain type.</p>
</td>
</tr>
<tr id="AddAclRule__row311155163416"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="AddAclRule__p118205514343">address_set_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="AddAclRule__p68555133418">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="AddAclRule__p99125510348">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="AddAclRule__p1965503414">ID of the associated IP address group. The value cannot be empty for the automatic type or for the manual or domain type.</p>
</td>
</tr>
<tr id="AddAclRule__row141135583418"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="AddAclRule__p690553346">address_set_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="AddAclRule__p1710165513348">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="AddAclRule__p51045512341">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="AddAclRule__p1811955103419">IP address group name</p>
</td>
</tr>
<tr id="AddAclRule__row171105512344"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="AddAclRule__p15111555163415">domain_address_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="AddAclRule__p27791355173416">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="AddAclRule__p2780115583414">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="AddAclRule__p15780115583414">Name of the domain name address. This parameter cannot be left empty for the domain name type, and is empty for the manual or automatic type.</p>
</td>
</tr>
<tr id="AddAclRule__row51205520340"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="AddAclRule__p18780855113420">region_list_json</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="AddAclRule__p678016557345">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="AddAclRule__p12780175593415">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="AddAclRule__p15780105511349">JSON value of the rule region list.</p>
</td>
</tr>
<tr id="AddAclRule__row811855153416"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="AddAclRule__p147801655203419">region_list</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="AddAclRule__p137803559347">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="AddAclRule__p77806558346">Array of <a href="#AddAclRule__request_IpRegionDto">IpRegionDto</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="AddAclRule__p137811555347">Region list of a rule</p>
</td>
</tr>
<tr id="AddAclRule__row13145512344"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="AddAclRule__p9781155153418">domain_set_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="AddAclRule__p1781165553415">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="AddAclRule__p16781135593419">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="AddAclRule__p14781175513417">domain set id</p>
</td>
</tr>
<tr id="AddAclRule__row0115553344"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="AddAclRule__p27812556349">domain_set_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="AddAclRule__p127811255133410">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="AddAclRule__p187818557349">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="AddAclRule__p878265511347">domain set name</p>
</td>
</tr>
<tr id="AddAclRule__row510552348"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="AddAclRule__p15782145513347">ip_address</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="AddAclRule__p97821055153412">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="AddAclRule__p4782145514348">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="AddAclRule__p57828554347">IP address list</p>
</td>
</tr>
<tr id="AddAclRule__row18110556349"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="AddAclRule__p207821755173417">address_set_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="AddAclRule__p187821557348">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="AddAclRule__p12782255193414">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="AddAclRule__p207826557342">Address set type, 0 indicates a custom define address set, 1 indicates a WAF return-to-source IP address set, 2 indicates a DDoS return-to-source IP address set, and 3 indicates a NAT64 translation address set.</p>
</td>
</tr>
<tr id="AddAclRule__row10175516348"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="AddAclRule__p18782185593412">predefined_group</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="AddAclRule__p197831155113415">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="AddAclRule__p19783155143410">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="AddAclRule__p1783855163412">predefined group</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="AddAclRule__request_IpRegionDto"></a><a name="request_IpRegionDto"></a><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__request_IpRegionDto" frame="border" border="1" rules="all"><caption><b>Table 8 </b>IpRegionDto</caption><thead align="left"><tr id="AddAclRule__row1718155593415"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.7.2.5.1.1"><p id="AddAclRule__p878311558340">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.7.2.5.1.2"><p id="AddAclRule__p15783115573410">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.7.2.5.1.3"><p id="AddAclRule__p57841955173411">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.7.2.5.1.4"><p id="AddAclRule__p11784555113412">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row1818255183418"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.1 "><p id="AddAclRule__p878435513416">region_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.2 "><p id="AddAclRule__p27841055193415">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.3 "><p id="AddAclRule__p1478405573410">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.7.2.5.1.4 "><p id="AddAclRule__p1784105593412">region id</p>
</td>
</tr>
<tr id="AddAclRule__row1018165511342"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.1 "><p id="AddAclRule__p17784125511343">description_cn</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.2 "><p id="AddAclRule__p9784955133410">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.3 "><p id="AddAclRule__p678425518341">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.7.2.5.1.4 "><p id="AddAclRule__p1178495516348">cn description</p>
</td>
</tr>
<tr id="AddAclRule__row1518355123410"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.1 "><p id="AddAclRule__p77855555347">description_en</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.2 "><p id="AddAclRule__p0785195514349">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.3 "><p id="AddAclRule__p187851755123410">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.7.2.5.1.4 "><p id="AddAclRule__p147851955143419">en description</p>
</td>
</tr>
<tr id="AddAclRule__row31845573418"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.1 "><p id="AddAclRule__p47851655173415">region_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.2 "><p id="AddAclRule__p17851455183415">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.7.2.5.1.3 "><p id="AddAclRule__p15785455103415">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.7.2.5.1.4 "><p id="AddAclRule__p778575593416">Region type, 0 means country, 1 means province, 2 means continent</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="AddAclRule__request_RuleServiceDto"></a><a name="request_RuleServiceDto"></a><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__request_RuleServiceDto" frame="border" border="1" rules="all"><caption><b>Table 9 </b>RuleServiceDto</caption><thead align="left"><tr id="AddAclRule__row122311558348"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.8.2.5.1.1"><p id="AddAclRule__p1786655183412">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.8.2.5.1.2"><p id="AddAclRule__p97865551348">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.8.2.5.1.3"><p id="AddAclRule__p1978685516341">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.8.2.5.1.4"><p id="AddAclRule__p16786155183415">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row72313553344"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.1 "><p id="AddAclRule__p478695583410">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.2 "><p id="AddAclRule__p147863558348">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.3 "><p id="AddAclRule__p47868558341">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.8.2.5.1.4 "><p id="AddAclRule__p5787205519340">Service input type. The value 0 indicates manual input, and the value 1 indicates automatic input.</p>
</td>
</tr>
<tr id="AddAclRule__row62325515340"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.1 "><p id="AddAclRule__p878795516348">protocol</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.2 "><p id="AddAclRule__p9787135510347">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.3 "><p id="AddAclRule__p18788205533419">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.8.2.5.1.4 "><p id="AddAclRule__p16788125513420">Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.</p>
</td>
</tr>
<tr id="AddAclRule__row624165514346"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.1 "><p id="AddAclRule__p878825523413">protocols</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.2 "><p id="AddAclRule__p1078895520346">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.3 "><p id="AddAclRule__p7788145518342">Array of integers</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.8.2.5.1.4 "><p id="AddAclRule__p67891955113419">Protocols</p>
</td>
</tr>
<tr id="AddAclRule__row824655103416"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.1 "><p id="AddAclRule__p10789145583415">source_port</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.2 "><p id="AddAclRule__p16789185523416">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.3 "><p id="AddAclRule__p078917559345">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.8.2.5.1.4 "><p id="AddAclRule__p1789135510349">Source port</p>
</td>
</tr>
<tr id="AddAclRule__row324855163419"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.1 "><p id="AddAclRule__p378916551349">dest_port</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.2 "><p id="AddAclRule__p5789255103416">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.3 "><p id="AddAclRule__p1078995523414">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.8.2.5.1.4 "><p id="AddAclRule__p13789125510346">Destination port</p>
</td>
</tr>
<tr id="AddAclRule__row14241755143416"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.1 "><p id="AddAclRule__p278913556344">service_set_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.2 "><p id="AddAclRule__p6790655183418">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.3 "><p id="AddAclRule__p12790105523415">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.8.2.5.1.4 "><p id="AddAclRule__p11790255123413">Service group ID. This parameter is left blank for the manual type and cannot be left blank for the automatic type.</p>
</td>
</tr>
<tr id="AddAclRule__row22412559348"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.1 "><p id="AddAclRule__p879045519348">service_set_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.2 "><p id="AddAclRule__p15790175533413">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.3 "><p id="AddAclRule__p97901655163410">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.8.2.5.1.4 "><p id="AddAclRule__p1679035583410">Service group name</p>
</td>
</tr>
<tr id="AddAclRule__row2241555341"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.1 "><p id="AddAclRule__p4790165573414">custom_service</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.2 "><p id="AddAclRule__p979075515344">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.3 "><p id="AddAclRule__p7790155143412">Array of <a href="#AddAclRule__request_ServiceItem">ServiceItem</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.8.2.5.1.4 "><p id="AddAclRule__p4790155593410">custom service</p>
</td>
</tr>
<tr id="AddAclRule__row1724105516343"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.1 "><p id="AddAclRule__p1879111551347">predefined_group</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.2 "><p id="AddAclRule__p1279175516344">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.3 "><p id="AddAclRule__p7791145512340">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.8.2.5.1.4 "><p id="AddAclRule__p137911055193417">predefined group</p>
</td>
</tr>
<tr id="AddAclRule__row11241655113418"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.1 "><p id="AddAclRule__p16791185510348">service_group</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.2 "><p id="AddAclRule__p479212556340">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.3 "><p id="AddAclRule__p579219551347">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.8.2.5.1.4 "><p id="AddAclRule__p87921855133415">Service group list</p>
</td>
</tr>
<tr id="AddAclRule__row202417552347"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.1 "><p id="AddAclRule__p197921955183411">service_group_names</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.2 "><p id="AddAclRule__p179205513346">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.3 "><p id="AddAclRule__p12792655173412">Array of <a href="#AddAclRule__request_ServiceGroupVO">ServiceGroupVO</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.8.2.5.1.4 "><p id="AddAclRule__p579310551344">Service group name list</p>
</td>
</tr>
<tr id="AddAclRule__row15249550349"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.1 "><p id="AddAclRule__p16793355193412">service_set_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.2 "><p id="AddAclRule__p1479355513346">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.8.2.5.1.3 "><p id="AddAclRule__p187936557342">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.8.2.5.1.4 "><p id="AddAclRule__p679315515342">Service set type, 0 indicates a custom service set, 1 indicates a predefined service set, 2 indicates commonly used remote login and PING, 3 indicates commonly used databases</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="AddAclRule__request_ServiceItem"></a><a name="request_ServiceItem"></a><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__request_ServiceItem" frame="border" border="1" rules="all"><caption><b>Table 10 </b>ServiceItem</caption><thead align="left"><tr id="AddAclRule__row12353559344"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.9.2.5.1.1"><p id="AddAclRule__p20794955143415">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.9.2.5.1.2"><p id="AddAclRule__p17794175523416">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.9.2.5.1.3"><p id="AddAclRule__p17794165517344">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.9.2.5.1.4"><p id="AddAclRule__p97942055153411">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row123575543415"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.1 "><p id="AddAclRule__p1379445563419">protocol</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.2 "><p id="AddAclRule__p079485513349">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.3 "><p id="AddAclRule__p8794855203411">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.9.2.5.1.4 "><p id="AddAclRule__p107941355103418">Protocol type. The value 6 indicates TCP, 17 indicates UDP, 1 indicates ICMP, 58 indicates ICMPv6, and -1 indicates any protocol. Regarding the addition type, a null value indicates it is automatically added.</p>
</td>
</tr>
<tr id="AddAclRule__row143545583420"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.1 "><p id="AddAclRule__p1879585523411">source_port</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.2 "><p id="AddAclRule__p379545516349">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.3 "><p id="AddAclRule__p1879511554343">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.9.2.5.1.4 "><p id="AddAclRule__p18795195515346">source port</p>
</td>
</tr>
<tr id="AddAclRule__row183517557349"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.1 "><p id="AddAclRule__p1479575533417">dest_port</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.2 "><p id="AddAclRule__p6795165503419">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.3 "><p id="AddAclRule__p197959558347">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.9.2.5.1.4 "><p id="AddAclRule__p207952552347">destination port</p>
</td>
</tr>
<tr id="AddAclRule__row133625519348"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.1 "><p id="AddAclRule__p19796155193414">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.2 "><p id="AddAclRule__p177961455163414">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.3 "><p id="AddAclRule__p167961755153419">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.9.2.5.1.4 "><p id="AddAclRule__p4796145515345">description</p>
</td>
</tr>
<tr id="AddAclRule__row636105513410"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.1 "><p id="AddAclRule__p17961755113417">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.2 "><p id="AddAclRule__p17796145510344">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.9.2.5.1.3 "><p id="AddAclRule__p10796555183419">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.9.2.5.1.4 "><p id="AddAclRule__p137961755123414">name</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="AddAclRule__request_ServiceGroupVO"></a><a name="request_ServiceGroupVO"></a><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__request_ServiceGroupVO" frame="border" border="1" rules="all"><caption><b>Table 11 </b>ServiceGroupVO</caption><thead align="left"><tr id="AddAclRule__row14421455193416"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.10.2.5.1.1"><p id="AddAclRule__p2797255143410">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.10.2.5.1.2"><p id="AddAclRule__p47972055113413">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.10.2.5.1.3"><p id="AddAclRule__p179714558347">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.10.2.5.1.4"><p id="AddAclRule__p2797055103415">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row44215559347"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.10.2.5.1.1 "><p id="AddAclRule__p14797175513340">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.10.2.5.1.2 "><p id="AddAclRule__p187977551347">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.10.2.5.1.3 "><p id="AddAclRule__p12797955103413">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.10.2.5.1.4 "><p id="AddAclRule__p7798175510343">service group name</p>
</td>
</tr>
<tr id="AddAclRule__row114265523420"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.10.2.5.1.1 "><p id="AddAclRule__p18798175515347">protocols</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.10.2.5.1.2 "><p id="AddAclRule__p10798755123412">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.10.2.5.1.3 "><p id="AddAclRule__p20798165573412">Array of integers</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.10.2.5.1.4 "><p id="AddAclRule__p179825510349">protocols</p>
</td>
</tr>
<tr id="AddAclRule__row642755133410"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.10.2.5.1.1 "><p id="AddAclRule__p117981755123413">service_set_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.10.2.5.1.2 "><p id="AddAclRule__p1479815511346">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.10.2.5.1.3 "><p id="AddAclRule__p1679814553348">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.10.2.5.1.4 "><p id="AddAclRule__p1179912554346">Query service set type, 0 means custom define service set, 1 means predefine service set.</p>
</td>
</tr>
<tr id="AddAclRule__row34320551344"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.10.2.5.1.1 "><p id="AddAclRule__p11799105513342">set_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.10.2.5.1.2 "><p id="AddAclRule__p9799135520341">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.10.2.5.1.3 "><p id="AddAclRule__p37995552341">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.10.2.5.1.4 "><p id="AddAclRule__p177995556345">service set id</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="AddAclRule__request_TagsVO"></a><a name="request_TagsVO"></a><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__request_TagsVO" frame="border" border="1" rules="all"><caption><b>Table 12 </b>TagsVO</caption><thead align="left"><tr id="AddAclRule__row847205523414"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.11.2.5.1.1"><p id="AddAclRule__p14799155193417">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.11.2.5.1.2"><p id="AddAclRule__p979918554341">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.11.2.5.1.3"><p id="AddAclRule__p480017557348">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.11.2.5.1.4"><p id="AddAclRule__p5800755113420">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row17471355163410"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.11.2.5.1.1 "><p id="AddAclRule__p780015563410">tag_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.11.2.5.1.2 "><p id="AddAclRule__p38006551348">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.11.2.5.1.3 "><p id="AddAclRule__p8800125553418">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.11.2.5.1.4 "><p id="AddAclRule__p19800855173418">tag id</p>
</td>
</tr>
<tr id="AddAclRule__row04718553342"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.11.2.5.1.1 "><p id="AddAclRule__p1780015554346">tag_key</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.11.2.5.1.2 "><p id="AddAclRule__p3801175543415">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.11.2.5.1.3 "><p id="AddAclRule__p1801455193410">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.11.2.5.1.4 "><p id="AddAclRule__p13801195515347">tag key</p>
</td>
</tr>
<tr id="AddAclRule__row154712559340"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.11.2.5.1.1 "><p id="AddAclRule__p17801205543419">tag_value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.11.2.5.1.2 "><p id="AddAclRule__p9801455193413">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.11.2.5.1.3 "><p id="AddAclRule__p168011955143417">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.11.2.5.1.4 "><p id="AddAclRule__p68012055153419">tag value</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="AddAclRule__section880265513414"><h4 class="sectiontitle">Response Parameters</h4><p id="AddAclRule__p8802115510342"><strong id="AddAclRule__b198026553349">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__response_AddRuleIdListResponse" frame="border" border="1" rules="all"><caption><b>Table 13 </b>Response body parameters</caption><thead align="left"><tr id="AddAclRule__row165120553346"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="AddAclRule__p18802145517344">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="AddAclRule__p12802655143419">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="AddAclRule__p28027551347">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row752125515345"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="AddAclRule__p1180285513345">data</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="AddAclRule__p580318558349"><a href="#AddAclRule__response_RuleIdList">RuleIdList</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="AddAclRule__p1080395583415">Rule ID list</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="AddAclRule__response_RuleIdList"></a><a name="response_RuleIdList"></a><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__response_RuleIdList" frame="border" border="1" rules="all"><caption><b>Table 14 </b>RuleIdList</caption><thead align="left"><tr id="AddAclRule__row185414555341"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="AddAclRule__p580485543410">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.2"><p id="AddAclRule__p1780410557342">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.4.2.4.1.3"><p id="AddAclRule__p5804155153413">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row1254195563419"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="AddAclRule__p20804195510346">rules</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="AddAclRule__p48041155133414">Array of <a href="#AddAclRule__response_RuleId">RuleId</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="AddAclRule__p18804555123416">Rule ID list</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="AddAclRule__response_RuleId"></a><a name="response_RuleId"></a><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__response_RuleId" frame="border" border="1" rules="all"><caption><b>Table 15 </b>RuleId</caption><thead align="left"><tr id="AddAclRule__row1456195513418"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="AddAclRule__p5804145514342">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="AddAclRule__p880411553346">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="AddAclRule__p138054556347">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row25675543412"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="AddAclRule__p1280545518343">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="AddAclRule__p14805455183413">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="AddAclRule__p19805755133418">id</p>
</td>
</tr>
<tr id="AddAclRule__row0561255103416"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="AddAclRule__p19805455183420">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="AddAclRule__p1680555520344">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="AddAclRule__p48061155153419">name</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="AddAclRule__p88061555203411"><strong id="AddAclRule__b118064553342">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__response_ErrorRsp" frame="border" border="1" rules="all"><caption><b>Table 16 </b>Response body parameters</caption><thead align="left"><tr id="AddAclRule__row76035563419"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="AddAclRule__p178071955123418">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="AddAclRule__p188077556348">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="AddAclRule__p13807195513417">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row1060655123413"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="AddAclRule__p1580795513420">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="AddAclRule__p13807135518346">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="AddAclRule__p1807655123415">Error code</p>
<p id="AddAclRule__p2807855163410">Minimum: <strong id="AddAclRule__b13807555143412">8</strong></p>
<p id="AddAclRule__p12808355153417">Maximum: <strong id="AddAclRule__b10808185517347">36</strong></p>
</td>
</tr>
<tr id="AddAclRule__row1560155514344"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="AddAclRule__p68081255103413">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="AddAclRule__p1880811555347">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="AddAclRule__p98081855143417">Description</p>
<p id="AddAclRule__p19808165553410">Minimum: <strong id="AddAclRule__b1680825516343">2</strong></p>
<p id="AddAclRule__p208081255173412">Maximum: <strong id="AddAclRule__b88082551343">512</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="AddAclRule__section12808155513346"><h4 class="sectiontitle">Example Requests</h4><p id="AddAclRule__p168086551340">The following example shows how to add an IPv4 inbound rule. The rule name is TestRule, the source is the IP address 1.1.1.1, the destination is the IP address 2.2.2.2, the service type is service, the protocol type is TCP, the source port is 0, and the destination port is 0. Persistent connections are not supported. The action is to allow. The status is enabled.</p>
<pre class="screen" id="AddAclRule__screen1280885518341">https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/acl-rule
{
"object_id" : "ae42418e-f077-41a0-9d3b-5b2f5ad9102b",
"rules" : [ {
"name" : "TestRule",
"status" : 1,
"action_type" : 0,
"description" : "",
"source" : {
"type" : 0,
"address" : "1.1.1.1"
},
"destination" : {
"type" : 0,
"address" : "2.2.2.2"
},
"service" : {
"type" : 0,
"protocol" : 6,
"source_port" : "0",
"dest_port" : "0"
},
"address_type" : 0,
"tag" : {
"tag_key" : "",
"tag_value" : ""
},
"long_connect_enable" : 0,
"direction" : 0,
"sequence" : {
"top" : 1,
"dest_rule_id" : null
}
} ],
"type" : 0
}</pre>
</div>
<div class="section" id="AddAclRule__section9811195523413"><h4 class="sectiontitle">Example Responses</h4><p id="AddAclRule__p9812105573416"><strong id="AddAclRule__b1981216550344">Status code: 200</strong></p>
<p id="AddAclRule__p10812105543412">Response to the request for adding an ACL</p>
<pre class="screen" id="AddAclRule__screen14812355193418">{
"data" : {
"rules" : [ {
"id" : "0475c516-0e41-4caf-990b-0c504eebd73f"
} ]
}
}</pre>
<p id="AddAclRule__p881316552344"><strong id="AddAclRule__b12813155512345">Status code: 400</strong></p>
<p id="AddAclRule__p1181315515348">Bad Request</p>
<pre class="screen" id="AddAclRule__screen1681375519344">{
"error_code" : "CFW.00900016",
"error_msg" : "The import task is in progress. Please operate after the task is completed"
}</pre>
</div>
<div class="section" id="AddAclRule__section108341655103412"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddAclRule__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="AddAclRule__row14130655173411"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="AddAclRule__p11835155573414">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="AddAclRule__p1683513556344">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddAclRule__row101307558346"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="AddAclRule__p10836195503410">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="AddAclRule__p128361955193414">Response to the request for adding an ACL</p>
</td>
</tr>
<tr id="AddAclRule__row141301855193413"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="AddAclRule__p18361455103411">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="AddAclRule__p48368555347">Bad Request</p>
</td>
</tr>
<tr id="AddAclRule__row111301554347"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="AddAclRule__p17836855123417">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="AddAclRule__p1283618555341">Unauthorized</p>
</td>
</tr>
<tr id="AddAclRule__row01308556343"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="AddAclRule__p98366552343">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="AddAclRule__p3836115519349">Forbidden</p>
</td>
</tr>
<tr id="AddAclRule__row91306557349"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="AddAclRule__p10836155553418">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="AddAclRule__p108368559343">Not Found</p>
</td>
</tr>
<tr id="AddAclRule__row181301355173417"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="AddAclRule__p683635519348">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="AddAclRule__p11836355163412">Internal Server Error</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="AddAclRule__section5837135583416"><h4 class="sectiontitle">Error Codes</h4><p id="AddAclRule__p2837105513419">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_300000002.html">ACL Rule Management</a></div>
</div>
</div>