doc-exports/docs/vpc/api-ref/vpc_firewall_0004.html
gtema 4cfecba474 VPC api from PR#278
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
2022-10-17 12:39:05 +00:00

314 lines
25 KiB
HTML

<a name="vpc_firewall_0004"></a><a name="vpc_firewall_0004"></a>
<h1 class="topictitle1">Updating a <span id="text5415194215349"></span><span id="text16243174543411">Firewall</span> Rule</h1>
<div id="body1495598977068"><div class="section" id="vpc_firewall_0004__section48881744123249"><h4 class="sectiontitle">Function</h4><p id="vpc_firewall_0004__p58563315123249">This API is used to update a <span id="vpc_firewall_0004__text191105312368"></span><span id="vpc_firewall_0004__text139105323617">firewall</span> rule.</p>
</div>
<div class="section" id="vpc_firewall_0004__section40985924123249"><h4 class="sectiontitle">URI</h4><p id="vpc_firewall_0004__p9387132213382">PUT /v2.0/fwaas/firewall_rules/{firewall_rule_id}</p>
</div>
<div class="section" id="vpc_firewall_0004__section49242216123249"><h4 class="sectiontitle">Request Message</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_firewall_0004__table30921260123249" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request parameter</caption><thead align="left"><tr id="vpc_firewall_0004__row39375977123249"><th align="left" class="cellrowborder" valign="top" width="19.39%" id="mcps1.3.3.2.2.5.1.1"><p id="vpc_firewall_0004__p12242224123249">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.1%" id="mcps1.3.3.2.2.5.1.2"><p id="vpc_firewall_0004__p24418590123249">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.65%" id="mcps1.3.3.2.2.5.1.3"><p id="vpc_firewall_0004__p13201747123249">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42.86%" id="mcps1.3.3.2.2.5.1.4"><p id="vpc_firewall_0004__p62761712123249">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_firewall_0004__row57358099123249"><td class="cellrowborder" valign="top" width="19.39%" headers="mcps1.3.3.2.2.5.1.1 "><p id="vpc_firewall_0004__p46539485123249">firewall_rule</p>
</td>
<td class="cellrowborder" valign="top" width="17.1%" headers="mcps1.3.3.2.2.5.1.2 "><p id="vpc_firewall_0004__p13703023123249"><a href="#vpc_firewall_0004__table38646929121127">firewall_rule </a>object</p>
</td>
<td class="cellrowborder" valign="top" width="20.65%" headers="mcps1.3.3.2.2.5.1.3 "><p id="vpc_firewall_0004__p21092839123249">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="42.86%" headers="mcps1.3.3.2.2.5.1.4 "><p id="vpc_firewall_0004__p3044429312329">Specifies the firewall rule objects. For details, see <a href="#vpc_firewall_0004__table38646929121127">Table 2</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="vpc_firewall_0004__table38646929121127"></a><a name="table38646929121127"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_firewall_0004__table38646929121127" frame="border" border="1" rules="all"><caption><b>Table 2 </b><strong id="vpc_firewall_0004__b677811231546">Firewall Rule</strong> objects</caption><thead align="left"><tr id="vpc_firewall_0004__row18263398121127"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.3.2.5.1.1"><p id="vpc_firewall_0004__p2027461121127"><strong id="vpc_firewall_0004__b11345725115417">Attribute</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.46%" id="mcps1.3.3.3.2.5.1.2"><p id="vpc_firewall_0004__p1123219257010"><strong id="vpc_firewall_0004__b185755485414">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.63%" id="mcps1.3.3.3.2.5.1.3"><p id="vpc_firewall_0004__p51747644121127"><strong id="vpc_firewall_0004__b1778865517548">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="41.91%" id="mcps1.3.3.3.2.5.1.4"><p id="vpc_firewall_0004__p12805757121127"><strong id="vpc_firewall_0004__b07131556175418">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_firewall_0004__row3417421121127"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_firewall_0004__p16296528121127">name</p>
</td>
<td class="cellrowborder" valign="top" width="14.46%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_firewall_0004__p32328254015">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_firewall_0004__p52887833121127">String</p>
</td>
<td class="cellrowborder" valign="top" width="41.91%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_firewall_0004__p29399172121127">Specifies the <span id="vpc_firewall_0004__text974812564519"></span><span id="vpc_firewall_0004__text10754162511452">firewall</span> rule name.</p>
<p id="vpc_firewall_0004__p4331339102">The value can contain a maximum of 255 characters.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row33772147121127"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_firewall_0004__p62102623121127">description</p>
</td>
<td class="cellrowborder" valign="top" width="14.46%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_firewall_0004__p52321025502">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_firewall_0004__p30062050121127">String</p>
</td>
<td class="cellrowborder" valign="top" width="41.91%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_firewall_0004__p64485971121127">Provides supplementary information about the <span id="vpc_firewall_0004__text17591281456"></span><span id="vpc_firewall_0004__text11591328144520">firewall</span> rule.</p>
<p id="vpc_firewall_0004__p7311252002">The value can contain a maximum of 255 characters.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row66347377121127"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_firewall_0004__p7361769121127">protocol</p>
</td>
<td class="cellrowborder" valign="top" width="14.46%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_firewall_0004__p19232525600">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_firewall_0004__p50019959121127">String</p>
</td>
<td class="cellrowborder" valign="top" width="41.91%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_firewall_0004__p36897817121127">Specifies the IP protocol.</p>
<p id="vpc_firewall_0004__p1094663315110">The value can be <strong id="vpc_firewall_0004__b665818512223">TCP</strong>, <strong id="vpc_firewall_0004__b13658175152212">UDP</strong>, <strong id="vpc_firewall_0004__b86591957223">ICMP</strong>, or a value ranging from 0 to 255.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row8703753121127"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_firewall_0004__p5943474121127">source_port</p>
</td>
<td class="cellrowborder" valign="top" width="14.46%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_firewall_0004__p723213251802">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_firewall_0004__p59206978121127">String</p>
</td>
<td class="cellrowborder" valign="top" width="41.91%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_firewall_0004__p62826249121127">Specifies the source port number or port number range.</p>
<p id="vpc_firewall_0004__p169804712119">The value can be an integer from 1 to 65535 or a port number range in the format of <strong id="vpc_firewall_0004__b68681117205818"><em id="vpc_firewall_0004__i16866111765811">a</em>:<em id="vpc_firewall_0004__i11867181775818">b</em></strong>.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row52935496121127"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_firewall_0004__p12876203121127">destination_port</p>
</td>
<td class="cellrowborder" valign="top" width="14.46%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_firewall_0004__p523252516015">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_firewall_0004__p66631365121127">String</p>
</td>
<td class="cellrowborder" valign="top" width="41.91%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_firewall_0004__p66851026121127">Specifies the destination port number or port number range.</p>
<p id="vpc_firewall_0004__p193204108218">The value can be an integer from 1 to 65535 or a port number range in the format of <strong id="vpc_firewall_0004__b0635202925818"><em id="vpc_firewall_0004__i126331297587">a</em>:<em id="vpc_firewall_0004__i86341329135811">b</em></strong>.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row37973187121127"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_firewall_0004__p18090983121127">ip_version</p>
</td>
<td class="cellrowborder" valign="top" width="14.46%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_firewall_0004__p10232925809">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_firewall_0004__p15064211121127">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="41.91%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_firewall_0004__p10402054121127">Specifies the IP protocol version.</p>
<p id="vpc_firewall_0004__p650618131322">The value can be <strong id="vpc_firewall_0004__b29261732103916">4</strong> and <strong id="vpc_firewall_0004__b1938163273916">6</strong>, indicating IPv4 address and IPv6 address, respectively.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row34581454121127"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_firewall_0004__p61377852121127">source_ip_address</p>
</td>
<td class="cellrowborder" valign="top" width="14.46%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_firewall_0004__p72320251009">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_firewall_0004__p36483585121127">String</p>
</td>
<td class="cellrowborder" valign="top" width="41.91%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_firewall_0004__p31475962121127">Specifies the source IP address or CIDR block.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row13949121127"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_firewall_0004__p43901244121127">destination_ip_address</p>
</td>
<td class="cellrowborder" valign="top" width="14.46%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_firewall_0004__p1023222510013">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_firewall_0004__p14651426121127">String</p>
</td>
<td class="cellrowborder" valign="top" width="41.91%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_firewall_0004__p53743554121127">Specifies the destination IP address or CIDR block.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row33223843121127"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_firewall_0004__p40131900121127">action</p>
</td>
<td class="cellrowborder" valign="top" width="14.46%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_firewall_0004__p152322253011">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_firewall_0004__p952780121127">String</p>
</td>
<td class="cellrowborder" valign="top" width="41.91%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_firewall_0004__p16135729121127">Specifies action performed on traffic passing through the <span id="vpc_firewall_0004__text388853264520"></span><span id="vpc_firewall_0004__text1889433216450">firewall</span>.</p>
<p id="vpc_firewall_0004__p053482914220">The value can be <strong id="vpc_firewall_0004__b1946610388218">deny</strong> or <strong id="vpc_firewall_0004__b12467338021">allow</strong>. </p>
</td>
</tr>
<tr id="vpc_firewall_0004__row11398101121127"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_firewall_0004__p50347088121127">enabled</p>
</td>
<td class="cellrowborder" valign="top" width="14.46%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_firewall_0004__p52321525707">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_firewall_0004__p46161809121127">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="41.91%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_firewall_0004__p57324252121127">Specifies whether the <span id="vpc_firewall_0004__text107854353456"></span><span id="vpc_firewall_0004__text7786163510457">firewall</span> rule is enabled.</p>
<p id="vpc_firewall_0004__p117941758725">The value can be <strong id="vpc_firewall_0004__b103098251231">true</strong> or <strong id="vpc_firewall_0004__b1730914251333">false</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="vpc_firewall_0004__section9857292123249"><h4 class="sectiontitle">Response Message</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_firewall_0004__table38652922123249" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response parameter</caption><thead align="left"><tr id="vpc_firewall_0004__row54513389123249"><th align="left" class="cellrowborder" valign="top" width="23.169999999999998%" id="mcps1.3.4.2.2.4.1.1"><p id="vpc_firewall_0004__p28336710123249">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.61%" id="mcps1.3.4.2.2.4.1.2"><p id="vpc_firewall_0004__p47571350123249">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.22%" id="mcps1.3.4.2.2.4.1.3"><p id="vpc_firewall_0004__p23002266123249">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_firewall_0004__row47557263123249"><td class="cellrowborder" valign="top" width="23.169999999999998%" headers="mcps1.3.4.2.2.4.1.1 "><p id="vpc_firewall_0004__p57698555123249">firewall_rule</p>
</td>
<td class="cellrowborder" valign="top" width="25.61%" headers="mcps1.3.4.2.2.4.1.2 "><p id="vpc_firewall_0004__p31745790123249"><a href="#vpc_firewall_0004__table96821221510">firewall_rule </a>object</p>
</td>
<td class="cellrowborder" valign="top" width="51.22%" headers="mcps1.3.4.2.2.4.1.3 "><p id="vpc_firewall_0004__p35727944123249">Specifies the firewall rule objects. For details, see <a href="#vpc_firewall_0004__table96821221510">Table 4</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="vpc_firewall_0004__table96821221510"></a><a name="table96821221510"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_firewall_0004__table96821221510" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="vpc_firewall_0004__b199062261045">Firewall Rule</strong> objects</caption><thead align="left"><tr id="vpc_firewall_0004__row1568212181517"><th align="left" class="cellrowborder" valign="top" width="32.76%" id="mcps1.3.4.3.2.4.1.1"><p id="vpc_firewall_0004__p8681812161514"><strong id="vpc_firewall_0004__b729918291546">Attribute</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.69%" id="mcps1.3.4.3.2.4.1.2"><p id="vpc_firewall_0004__p13681312131518"><strong id="vpc_firewall_0004__b81581530147">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="46.550000000000004%" id="mcps1.3.4.3.2.4.1.3"><p id="vpc_firewall_0004__p116816121152"><strong id="vpc_firewall_0004__b11284193510411">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_firewall_0004__row39528007121127"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p7362024121127">id</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p53278848121127">String</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p13095685121127">Specifies the UUID of the <span id="vpc_firewall_0004__text586414398456"></span><span id="vpc_firewall_0004__text16870539164518">firewall</span> rule.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row1870712181518"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p2070121214156">name</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p570161218158">String</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p2070171271514">Specifies the <span id="vpc_firewall_0004__text17962042194516"></span><span id="vpc_firewall_0004__text1697134219456">firewall</span> rule name.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row47051241512"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p1970141281520">description</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p67031271510">String</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p1270412111511">Provides supplementary information about the <span id="vpc_firewall_0004__text14912154324515"></span><span id="vpc_firewall_0004__text17912174312459">firewall</span> rule.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row39157453121127"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p40485546121127">tenant_id</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p20366062121127">String</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p10487112">Specifies the project ID.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row13612334121127"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p3945861121127">public</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p53059091121127">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p46007536121127">Specifies whether the firewall rule can be shared by different tenants.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row2070312131513"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p1570141241512">protocol</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p0701312161512">String</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p17061201515">Specifies the IP protocol.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row1170181217153"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p12701112161517">source_port</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p127021218159">String</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p137011241510">Specifies the source port number or port number range.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row8701112181514"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p470312191512">destination_port</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p177081291516">String</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p1770121217158">Specifies the destination port number or port number range.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row07071212159"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p1370912131514">ip_version</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p770212111514">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p13701112161518">Specifies the IP protocol version.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row1070171261513"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p1970412151510">source_ip_address</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p14701812161510">String</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p19701412201516">Specifies the source IP address or CIDR block.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row167031212158"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p77061219153">destination_ip_address</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p1870712131519">String</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p1470712111516">Specifies the destination IP address or CIDR block.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row17051231516"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p13701512171516">action</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p871161221515">String</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p87131291511">Specifies action performed on traffic passing through the <span id="vpc_firewall_0004__text1683254816459"></span><span id="vpc_firewall_0004__text1583874884511">firewall</span>.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row571121210154"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p1571712101514">enabled</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p137131218159">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p167121271512">Specifies whether the <span id="vpc_firewall_0004__text1833145017456"></span><span id="vpc_firewall_0004__text833213505456">firewall</span> rule is enabled.</p>
</td>
</tr>
<tr id="vpc_firewall_0004__row1574912215580"><td class="cellrowborder" valign="top" width="32.76%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_firewall_0004__p1312116475819">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20.69%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_firewall_0004__p5125543583">String</p>
</td>
<td class="cellrowborder" valign="top" width="46.550000000000004%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_firewall_0004__p331433615284">Specifies the project ID. </p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="vpc_firewall_0004__section10725923123249"><h4 class="sectiontitle">Example:</h4><p id="vpc_firewall_0004__p1812111713396">Example request</p>
<pre class="screen" id="vpc_firewall_0004__screen57238803123249">PUT https://{Endpoint}/v2.0/fwaas/firewall_rules/b94acf06-efc2-485d-ba67-a61acf2a7e28
{
"firewall_rule": {
"action": "deny"
}
}</pre>
</div>
<p id="vpc_firewall_0004__p190154911397">Example response</p>
<pre class="screen" id="vpc_firewall_0004__screen3870701111813">{
"firewall_rule": {
"protocol": "tcp",
"description": "",
"source_ip_address": null,
"destination_ip_address": null,
"source_port": null,
"destination_port": "80",
"id": "b94acf06-efc2-485d-ba67-a61acf2a7e28",
"name": "ALLOW_HTTP",
"tenant_id": "23c8a121505047b6869edf39f3062712",
"enabled": true,
"action": "deny",
"ip_version": 4,
"public": false,
"project_id": "23c8a121505047b6869edf39f3062712"
}
}</pre>
<div class="section" id="vpc_firewall_0004__section10470352390"><h4 class="sectiontitle">Status Code</h4><p id="vpc_firewall_0004__p18112112662914">See <a href="vpc_api_0002.html">Status Codes</a>.</p>
</div>
<div class="section" id="vpc_firewall_0004__section85821649202813"><h4 class="sectiontitle">Error Code</h4><p id="vpc_firewall_0004__p7233105282813">See <a href="vpc_api_0003.html">Error Codes</a>.</p>
</div>
<p id="vpc_firewall_0004__p8060118"></p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="vpc_firewall_0000.html">Firewall</a></div>
</div>
</div>