doc-exports/docs/waf/api-ref/waf_02_0046.html
Li, Qiao 914011d51b waf_api_1109
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Li, Qiao <qiaoli@huawei.com>
Co-committed-by: Li, Qiao <qiaoli@huawei.com>
2022-11-16 15:31:27 +00:00

544 lines
45 KiB
HTML

<a name="waf_02_0046"></a><a name="waf_02_0046"></a>
<h1 class="topictitle1">Updating a CC Attack Protection Rule</h1>
<div id="body25048273"><div class="section" id="waf_02_0046__section25190616"><h4 class="sectiontitle">Function Description</h4><p class="msonormal" id="waf_02_0046__p15644193">This API is used to update a CC attack protection rule.</p>
</div>
<div class="section" id="waf_02_0046__section25388955"><h4 class="sectiontitle">URI</h4><ul id="waf_02_0046__ul59220093"><li id="waf_02_0046__li63218796">URI format<p id="waf_02_0046__p32098254"><a name="waf_02_0046__li63218796"></a><a name="li63218796"></a>PUT /v1/{project_id}/waf/policy/{policy_id}/cc/{ccrule_id}</p>
</li><li id="waf_02_0046__li20448838">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0046__table49821820" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="waf_02_0046__row29493317"><th align="left" class="cellrowborder" valign="top" width="30.930000000000003%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="waf_02_0046__p40148466"><strong id="waf_02_0046__b1372610544293">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.62%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="waf_02_0046__p30800295"><strong id="waf_02_0046__b10324145614294">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.430000000000001%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="waf_02_0046__p11795981"><strong id="waf_02_0046__b035917586297">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="34.02%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="waf_02_0046__p15950411"><strong id="waf_02_0046__b5756115914298">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="waf_02_0046__row16914954"><td class="cellrowborder" valign="top" width="30.930000000000003%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="waf_02_0046__p27934066">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20.62%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="waf_02_0046__p48066858">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.430000000000001%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="waf_02_0046__p1101402">String</p>
</td>
<td class="cellrowborder" valign="top" width="34.02%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="waf_02_0046__p22104747">Specifies the project ID.</p>
</td>
</tr>
<tr id="waf_02_0046__row64724999"><td class="cellrowborder" valign="top" width="30.930000000000003%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="waf_02_0046__p8233580">policy_id</p>
</td>
<td class="cellrowborder" valign="top" width="20.62%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="waf_02_0046__p62940229">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.430000000000001%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="waf_02_0046__p64993787">String</p>
</td>
<td class="cellrowborder" valign="top" width="34.02%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="waf_02_0046__p30005365">Specifies the policy ID.</p>
</td>
</tr>
<tr id="waf_02_0046__row1612831"><td class="cellrowborder" valign="top" width="30.930000000000003%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="waf_02_0046__p63530491">ccrule_id</p>
</td>
<td class="cellrowborder" valign="top" width="20.62%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="waf_02_0046__p45696143">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.430000000000001%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="waf_02_0046__p10400132">String</p>
</td>
<td class="cellrowborder" valign="top" width="34.02%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="waf_02_0046__p37104386">Specifies the ID of a CC attack protection rule.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="waf_02_0046__section27174007"><h4 class="sectiontitle">Request</h4><div class="p" id="waf_02_0046__p135842152514">Request parameters
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0046__table38027958" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="waf_02_0046__row50296914"><th align="left" class="cellrowborder" valign="top" width="36.36363636363636%" id="mcps1.3.3.2.1.2.5.1.1"><p id="waf_02_0046__p47518222"><strong id="waf_02_0046__b02471827103116">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.151515151515152%" id="mcps1.3.3.2.1.2.5.1.2"><p id="waf_02_0046__p23770734"><strong id="waf_02_0046__b86481280319">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.151515151515152%" id="mcps1.3.3.2.1.2.5.1.3"><p id="waf_02_0046__p46381274"><strong id="waf_02_0046__b151925302315">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.2.1.2.5.1.4"><p id="waf_02_0046__p65895739"><strong id="waf_02_0046__b15781113214311">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="waf_02_0046__row56190747"><td class="cellrowborder" valign="top" width="36.36363636363636%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0046__p55156678">path</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0046__p38505946">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0046__p31973885">String</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0046__p39747930">Specifies the URL to which the rule applies, excluding a domain name. </p>
</td>
</tr>
<tr id="waf_02_0046__row22187053"><td class="cellrowborder" valign="top" width="36.36363636363636%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0046__p52320849">limit_num</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0046__p10130370">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0046__p15253607">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0046__p27582632">Specifies the number of requests allowed from a web visitor in a rate limiting period. The value ranges from <strong id="waf_02_0046__b5636131117105">0</strong> to <strong id="waf_02_0046__b1563601117104">2</strong><strong id="waf_02_0046__b12636201110106"><sup id="waf_02_0046__sup116361311101018">32</sup></strong>.</p>
</td>
</tr>
<tr id="waf_02_0046__row46917103"><td class="cellrowborder" valign="top" width="36.36363636363636%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0046__p42189031">limit_period</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0046__p61868335">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0046__p45279215">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0046__p43737808">Specifies the rate limiting period. The value ranges from <strong id="waf_02_0046__b28317200102">0</strong> seconds to <strong id="waf_02_0046__b208392061018">2</strong><strong id="waf_02_0046__b1883152019104"><sup id="waf_02_0046__sup1583420121014">32</sup></strong> seconds.</p>
</td>
</tr>
<tr id="waf_02_0046__row58095956"><td class="cellrowborder" valign="top" width="36.36363636363636%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0046__p8152009">lock_time</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0046__p56332978">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0046__p66677368">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0046__p32157698">Specifies the lock duration. The value ranges from <strong id="waf_02_0046__b4469437151015">0</strong> seconds to <strong id="waf_02_0046__b846973771011">2</strong><strong id="waf_02_0046__b16477193715107"><sup id="waf_02_0046__sup104771137131015">32</sup></strong> seconds.</p>
</td>
</tr>
<tr id="waf_02_0046__row20983828"><td class="cellrowborder" valign="top" width="36.36363636363636%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0046__p21968512">tag_type</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0046__p34619044">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0046__p52679209">String</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0046__p71571255171014">Specifies the rate limit mode.</p>
<ul id="waf_02_0046__ul555831610497"><li id="waf_02_0046__li12564151611492"><span class="parmvalue" id="waf_02_0046__parmvalue102056106130"><b>ip</b></span>: A web visitor is identified by the IP address.</li><li id="waf_02_0046__li1577111613495"><span class="parmvalue" id="waf_02_0046__parmvalue19822135092819"><b>cookie</b></span>: A web visitor is identified by the cookie key value.</li><li id="waf_02_0046__li250118018588"><span class="parmvalue" id="waf_02_0046__parmvalue1380814330278"><b>other</b></span>: A web visitor is identified by the Referer field (user-defined request source).</li></ul>
</td>
</tr>
<tr id="waf_02_0046__row16873712"><td class="cellrowborder" valign="top" width="36.36363636363636%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0046__p24593437">tag_index</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0046__p45911399">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0046__p27835829">String</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0046__p16557142835414">If <span class="parmname" id="waf_02_0046__parmname5941525124816"><b>tag_type</b></span> is set to <strong id="waf_02_0046__b12941425204815">cookie</strong>, this parameter indicates cookie name.</p>
</td>
</tr>
<tr id="waf_02_0046__row25442801"><td class="cellrowborder" valign="top" width="36.36363636363636%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0046__p47601018">tag_condition</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0046__p30477219">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0046__p52735636"><a href="#waf_02_0046__table1897210413559">Table 3</a></p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0046__p155661828165416">Specifies the <strong id="waf_02_0046__b1310131714256">Referer</strong> (customized request source) field. This field is mandatory when <span class="parmvalue" id="waf_02_0046__parmvalue12106017142520"><b>tag_type</b></span> is set to <span class="parmvalue" id="waf_02_0046__parmvalue10107141715255"><b>other</b></span>.</p>
</td>
</tr>
<tr id="waf_02_0046__row12918005"><td class="cellrowborder" valign="top" width="36.36363636363636%" headers="mcps1.3.3.2.1.2.5.1.1 "><p id="waf_02_0046__p39725486">action</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.2 "><p id="waf_02_0046__p63647832">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.1.2.5.1.3 "><p id="waf_02_0046__p55200795"><a href="#waf_02_0046__table3660351175718">Table 4</a></p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.1.2.5.1.4 "><p id="waf_02_0046__p42079390">Specifies the action taken when the number of requests reaches the upper limit.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="tablenoborder"><a name="waf_02_0046__table1897210413559"></a><a name="table1897210413559"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0046__table1897210413559" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="waf_02_0046__b6202654152416">tag_condition</strong></caption><thead align="left"><tr id="waf_02_0046__row498264125512"><th align="left" class="cellrowborder" valign="top" width="30.010000000000005%" id="mcps1.3.3.3.2.5.1.1"><p id="waf_02_0046__p179858412553"><strong id="waf_02_0046__b109251511154213">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.55%" id="mcps1.3.3.3.2.5.1.2"><p id="waf_02_0046__p3506142418818"><strong id="waf_02_0046__b2113908715">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="12.640000000000004%" id="mcps1.3.3.3.2.5.1.3"><p id="waf_02_0046__p20987841105519"><strong id="waf_02_0046__b8548111404210">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="36.800000000000004%" id="mcps1.3.3.3.2.5.1.4"><p id="waf_02_0046__p18992541175512"><strong id="waf_02_0046__b20338216144212">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="waf_02_0046__row316718559556"><td class="cellrowborder" valign="top" width="30.010000000000005%" headers="mcps1.3.3.3.2.5.1.1 "><p id="waf_02_0046__p129251153125517">category</p>
</td>
<td class="cellrowborder" valign="top" width="20.55%" headers="mcps1.3.3.3.2.5.1.2 "><p id="waf_02_0046__p05066243817">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="12.640000000000004%" headers="mcps1.3.3.3.2.5.1.3 "><p id="waf_02_0046__p18928155325515">String</p>
</td>
<td class="cellrowborder" valign="top" width="36.800000000000004%" headers="mcps1.3.3.3.2.5.1.4 "><p id="waf_02_0046__p976814616116">Specifies the category. The value is <strong id="waf_02_0046__b479314264486">Referer</strong>.</p>
<p id="waf_02_0046__p67691946516">This parameter is mandatory when the <strong id="waf_02_0046__b1229453318443">tag_condition</strong> field is transferred.</p>
</td>
</tr>
<tr id="waf_02_0046__row816515556552"><td class="cellrowborder" valign="top" width="30.010000000000005%" headers="mcps1.3.3.3.2.5.1.1 "><p id="waf_02_0046__p159555533556">contents</p>
</td>
<td class="cellrowborder" valign="top" width="20.55%" headers="mcps1.3.3.3.2.5.1.2 "><p id="waf_02_0046__p150617241883">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="12.640000000000004%" headers="mcps1.3.3.3.2.5.1.3 "><p id="waf_02_0046__p1895915385512">List</p>
</td>
<td class="cellrowborder" valign="top" width="36.800000000000004%" headers="mcps1.3.3.3.2.5.1.4 "><p id="waf_02_0046__p29649538557">Specifies the category content.</p>
<p id="waf_02_0046__p195393569110">The format is as follows: <strong id="waf_02_0046__b177054316299">http://www.example.com/path</strong>.</p>
<p id="waf_02_0046__p145413566113">This parameter is mandatory when the <strong id="waf_02_0046__b8132124017515">tag_condition</strong> field is transferred. Currently, only one value is accepted. </p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="waf_02_0046__table3660351175718"></a><a name="table3660351175718"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0046__table3660351175718" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="waf_02_0046__b177623632510">action</strong></caption><thead align="left"><tr id="waf_02_0046__row13670125155718"><th align="left" class="cellrowborder" valign="top" width="34.29%" id="mcps1.3.3.4.2.5.1.1"><p id="waf_02_0046__p166741051165714"><strong id="waf_02_0046__b342414416514">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.91%" id="mcps1.3.3.4.2.5.1.2"><p id="waf_02_0046__p122672012482"><strong id="waf_02_0046__b693393652">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11%" id="mcps1.3.3.4.2.5.1.3"><p id="waf_02_0046__p1868015111574"><strong id="waf_02_0046__b1341144815117">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="36.8%" id="mcps1.3.3.4.2.5.1.4"><p id="waf_02_0046__p16684751165717"><strong id="waf_02_0046__b1796784912513">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="waf_02_0046__row487919825816"><td class="cellrowborder" valign="top" width="34.29%" headers="mcps1.3.3.4.2.5.1.1 "><p id="waf_02_0046__p9786157105816">category</p>
</td>
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.3.4.2.5.1.2 "><p id="waf_02_0046__p026701194814">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.3.4.2.5.1.3 "><p id="waf_02_0046__p0791171581">String</p>
</td>
<td class="cellrowborder" valign="top" width="36.8%" headers="mcps1.3.3.4.2.5.1.4 "><p id="waf_02_0046__p154031329171813">Specifies the action. The default value is <span class="parmvalue" id="waf_02_0046__parmvalue8808821161015"><b>block</b></span>.</p>
<ul id="waf_02_0046__ul661483971811"><li id="waf_02_0046__li13968134481819"><strong id="waf_02_0046__b1843463134514">block</strong>: block the requests.</li><li id="waf_02_0046__li0614153913187"><span class="parmvalue" id="waf_02_0046__parmvalue14833818184116"><b>captcha</b></span>: Verification code. The user needs to enter the correct verification code after blocking to restore the correct access page.</li></ul>
<p id="waf_02_0046__p1716414522309">The default value is <strong id="waf_02_0046__b63647164518">block</strong>.</p>
<p id="waf_02_0046__p26661424422">If <strong id="waf_02_0046__b14508284486">tag_type</strong> is set to <strong id="waf_02_0046__b950172811486">other</strong>, this parameter value can only be <strong id="waf_02_0046__b1552928154811">block</strong>.</p>
</td>
</tr>
<tr id="waf_02_0046__row15877178135818"><td class="cellrowborder" valign="top" width="34.29%" headers="mcps1.3.3.4.2.5.1.1 "><p id="waf_02_0046__p2799197175818">detail</p>
</td>
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.3.4.2.5.1.2 "><p id="waf_02_0046__p82672117485">No</p>
</td>
<td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.3.4.2.5.1.3 "><p id="waf_02_0046__p178031872584"><a href="#waf_02_0046__table1060217107105">Table 5</a></p>
</td>
<td class="cellrowborder" valign="top" width="36.8%" headers="mcps1.3.3.4.2.5.1.4 "><p id="waf_02_0046__p880513714586">Specifies the action details. If <strong id="waf_02_0046__b10522102910489">detail</strong> is <strong id="waf_02_0046__b1052212297483">null</strong>, the default block page is displayed by default.</p>
<p id="waf_02_0046__p63755381215">This parameter is not required if <strong id="waf_02_0046__b156851230184820">category</strong> is set to <strong id="waf_02_0046__b6686830164817">captcha</strong>.</p>
<p id="waf_02_0046__p163782389220">This parameter is required if <strong id="waf_02_0046__b19411031104814">category</strong> is set to <strong id="waf_02_0046__b6941931194820">block</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="waf_02_0046__table1060217107105"></a><a name="table1060217107105"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0046__table1060217107105" frame="border" border="1" rules="all"><caption><b>Table 5 </b><strong id="waf_02_0046__b1432444142516">detail</strong></caption><thead align="left"><tr id="waf_02_0046__row1861251018106"><th align="left" class="cellrowborder" valign="top" width="34.61%" id="mcps1.3.3.5.2.5.1.1"><p id="waf_02_0046__p14615101021017"><strong id="waf_02_0046__b7731164345512">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.02%" id="mcps1.3.3.5.2.5.1.2"><p id="waf_02_0046__p712037099"><strong id="waf_02_0046__b12969230">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.57%" id="mcps1.3.3.5.2.5.1.3"><p id="waf_02_0046__p2619141061016"><strong id="waf_02_0046__b7533945165510">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="36.8%" id="mcps1.3.3.5.2.5.1.4"><p id="waf_02_0046__p10622171001012"><strong id="waf_02_0046__b21404477556">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="waf_02_0046__row1142418101020"><td class="cellrowborder" valign="top" width="34.61%" headers="mcps1.3.3.5.2.5.1.1 "><p id="waf_02_0046__p159981716141015">response</p>
</td>
<td class="cellrowborder" valign="top" width="18.02%" headers="mcps1.3.3.5.2.5.1.2 "><p id="waf_02_0046__p51201479910">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="10.57%" headers="mcps1.3.3.5.2.5.1.3 "><p id="waf_02_0046__p62517141010"><a href="#waf_02_0046__table671153413914">Table 6</a></p>
</td>
<td class="cellrowborder" valign="top" width="36.8%" headers="mcps1.3.3.5.2.5.1.4 "><p id="waf_02_0046__p651517191019">Specifies the returned page.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="waf_02_0046__table671153413914"></a><a name="table671153413914"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0046__table671153413914" frame="border" border="1" rules="all"><caption><b>Table 6 </b><strong id="waf_02_0046__b1359580142617">response</strong></caption><thead align="left"><tr id="waf_02_0046__row87235341695"><th align="left" class="cellrowborder" valign="top" width="35.010000000000005%" id="mcps1.3.3.6.2.5.1.1"><p id="waf_02_0046__p117313341294"><strong id="waf_02_0046__b458925111574">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.94%" id="mcps1.3.3.6.2.5.1.2"><p id="waf_02_0046__p32997211392"><strong id="waf_02_0046__b1644241588">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.25%" id="mcps1.3.3.6.2.5.1.3"><p id="waf_02_0046__p107346349917"><strong id="waf_02_0046__b1931413546575">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="36.8%" id="mcps1.3.3.6.2.5.1.4"><p id="waf_02_0046__p773818346918"><strong id="waf_02_0046__b1382815525710">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="waf_02_0046__row46995451391"><td class="cellrowborder" valign="top" width="35.010000000000005%" headers="mcps1.3.3.6.2.5.1.1 "><p id="waf_02_0046__p26435443911">content_type</p>
</td>
<td class="cellrowborder" valign="top" width="17.94%" headers="mcps1.3.3.6.2.5.1.2 "><p id="waf_02_0046__p1129972111915">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="10.25%" headers="mcps1.3.3.6.2.5.1.3 "><p id="waf_02_0046__p76471144794">String</p>
</td>
<td class="cellrowborder" valign="top" width="36.8%" headers="mcps1.3.3.6.2.5.1.4 "><p id="waf_02_0046__p1265017441999">Specifies the type of the returned page.</p>
<p id="waf_02_0046__p6652244595">The options are <strong id="waf_02_0046__b5811123314482">application/json</strong>, <strong id="waf_02_0046__b7812163324813">text/html</strong>, and <strong id="waf_02_0046__b13812123313486">text/xml</strong>.</p>
<p id="waf_02_0046__p2665132172918">The default value is <strong id="waf_02_0046__b1861818363482">application/json</strong>.</p>
</td>
</tr>
<tr id="waf_02_0046__row1669964520912"><td class="cellrowborder" valign="top" width="35.010000000000005%" headers="mcps1.3.3.6.2.5.1.1 "><p id="waf_02_0046__p86555442914">content</p>
</td>
<td class="cellrowborder" valign="top" width="17.94%" headers="mcps1.3.3.6.2.5.1.2 "><p id="waf_02_0046__p18299182119910">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="10.25%" headers="mcps1.3.3.6.2.5.1.3 "><p id="waf_02_0046__p1365811441899">String</p>
</td>
<td class="cellrowborder" valign="top" width="36.8%" headers="mcps1.3.3.6.2.5.1.4 "><p id="waf_02_0046__p186601448918">Specifies the content of the returned page.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="waf_02_0046__p17431431181511">GET /v1/{project_id}/waf/policy/{policy_id}/custom?offset={offset}&amp;limit={limit}</p>
</div>
<div class="section" id="waf_02_0046__section43239478"><h4 class="sectiontitle">Response</h4><div class="p" id="waf_02_0046__p1487144285111">Response parameters
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0046__table40294034" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Parameter description</caption><thead align="left"><tr id="waf_02_0046__row225404"><th align="left" class="cellrowborder" valign="top" width="42.85571442855714%" id="mcps1.3.4.2.1.2.4.1.1"><p id="waf_02_0046__p18257741"><strong id="waf_02_0046__b584914547594">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.348265173482652%" id="mcps1.3.4.2.1.2.4.1.2"><p id="waf_02_0046__p2482084"><strong id="waf_02_0046__b1930235618599">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="39.796020397960206%" id="mcps1.3.4.2.1.2.4.1.3"><p id="waf_02_0046__p66831078"><strong id="waf_02_0046__b11769257115919">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="waf_02_0046__row64608796"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0046__p65929964">id</p>
</td>
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0046__p38726877">String</p>
</td>
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0046__p49869334">Specifies the ID of a CC attack protection rule.</p>
</td>
</tr>
<tr id="waf_02_0046__row46170830"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0046__p48849735">policy_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0046__p64514461">String</p>
</td>
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0046__p58288823">Specifies the policy ID.</p>
</td>
</tr>
<tr id="waf_02_0046__row54837361"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0046__p12641261">path</p>
</td>
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0046__p17309217">String</p>
</td>
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0046__p59869366">Specifies the URL to which the rule applies, excluding a domain name.</p>
</td>
</tr>
<tr id="waf_02_0046__row1953388"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0046__p24006773">limit_num</p>
</td>
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0046__p65500466">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0046__p3937548">Specifies the number of requests allowed from a web visitor in a rate limiting period.</p>
</td>
</tr>
<tr id="waf_02_0046__row35437935"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0046__p51900478">limit_period</p>
</td>
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0046__p43189214">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0046__p8665463">Specifies the rate limiting period.</p>
</td>
</tr>
<tr id="waf_02_0046__row10880304"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0046__p8889392">lock_time</p>
</td>
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0046__p48952124">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0046__p5699133">Specifies the lock duration. The value ranges from <strong id="waf_02_0046__b1921773775">0</strong> seconds to <strong id="waf_02_0046__b902036176">2</strong><strong id="waf_02_0046__b1069472891"><sup id="waf_02_0046__sup705535850">32</sup></strong> seconds.</p>
</td>
</tr>
<tr id="waf_02_0046__row51292205"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0046__p61027960">tag_type</p>
</td>
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0046__p44317740">String</p>
</td>
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0046__p32967151">Specifies the tag object type. The value can be <strong id="waf_02_0046__b22651513742">cookie</strong>, <strong id="waf_02_0046__b358610181148">ip</strong>, or <strong id="waf_02_0046__b156261425447">other</strong>.</p>
</td>
</tr>
<tr id="waf_02_0046__row28268911"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0046__p8080463">tag_index</p>
</td>
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0046__p50537747">String</p>
</td>
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0046__p67025700">If <strong id="waf_02_0046__b15432136112">tag_type</strong> is set to <strong id="waf_02_0046__b144483315119">cookie</strong>, <strong id="waf_02_0046__b174486311119">index</strong> indicates cookie name.</p>
</td>
</tr>
<tr id="waf_02_0046__row66360388"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0046__p6482354">tag_condition</p>
</td>
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0046__p55308705"><a href="#waf_02_0046__table2115782102">Table 8</a></p>
</td>
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0046__p50820153">This field is valid only when <strong id="waf_02_0046__b16925852201619">tag_type</strong> is set to <strong id="waf_02_0046__b247513451544">other</strong>.</p>
</td>
</tr>
<tr id="waf_02_0046__row13663579"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0046__p33008137">action</p>
</td>
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0046__p56413415"><a href="#waf_02_0046__table191681818102">Table 9</a></p>
</td>
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0046__p6083869">Specifies the action taken when the number of requests reaches the upper limit.</p>
</td>
</tr>
<tr id="waf_02_0046__row26058851"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0046__p30392200">timestamp</p>
</td>
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0046__p45849121">Long</p>
</td>
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0046__p6250841">Specifies the time when a CC attack protection rule is added.</p>
</td>
</tr>
<tr id="waf_02_0046__row1980831209"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0046__p13111845101314">default</p>
</td>
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.4.2.1.2.4.1.2 "><p id="waf_02_0046__p1311245121318">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.4.2.1.2.4.1.3 "><p id="waf_02_0046__p8552015163214">Specifies whether the rule is the default CC attack protection rule.</p>
<ul id="waf_02_0046__ul1248751619599"><li id="waf_02_0046__waf_02_0042_li14489191675919"><strong id="waf_02_0046__waf_02_0042_b86402025123619">true</strong>: The rule is the default CC attack protection rule created by the system when creating a domain name.</li><li id="waf_02_0046__waf_02_0042_li24963163595"><strong id="waf_02_0046__waf_02_0042_b1248153224120">false</strong>: The rule is created by users.</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="tablenoborder"><a name="waf_02_0046__table2115782102"></a><a name="table2115782102"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0046__table2115782102" frame="border" border="1" rules="all"><caption><b>Table 8 </b><strong id="waf_02_0046__b1419751614267">tag_condition</strong></caption><thead align="left"><tr id="waf_02_0046__row41268816100"><th align="left" class="cellrowborder" valign="top" width="33.086691330866906%" id="mcps1.3.4.3.2.4.1.1"><p id="waf_02_0046__p121301861010"><strong id="waf_02_0046__b76373221776">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="27.117288271172878%" id="mcps1.3.4.3.2.4.1.2"><p id="waf_02_0046__p101341485102"><strong id="waf_02_0046__b4171324373">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="39.7960203979602%" id="mcps1.3.4.3.2.4.1.3"><p id="waf_02_0046__p11378851012"><strong id="waf_02_0046__b148831251718">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="waf_02_0046__row6140148141013"><td class="cellrowborder" valign="top" width="33.086691330866906%" headers="mcps1.3.4.3.2.4.1.1 "><p id="waf_02_0046__p414218141013">category</p>
</td>
<td class="cellrowborder" valign="top" width="27.117288271172878%" headers="mcps1.3.4.3.2.4.1.2 "><p id="waf_02_0046__p121451586106">String</p>
</td>
<td class="cellrowborder" valign="top" width="39.7960203979602%" headers="mcps1.3.4.3.2.4.1.3 "><p id="waf_02_0046__p1014916851017">Specifies the category. The value is <strong id="waf_02_0046__b912994224814">Referer</strong>.</p>
</td>
</tr>
<tr id="waf_02_0046__row18151118161015"><td class="cellrowborder" valign="top" width="33.086691330866906%" headers="mcps1.3.4.3.2.4.1.1 "><p id="waf_02_0046__p015411861014">contents</p>
</td>
<td class="cellrowborder" valign="top" width="27.117288271172878%" headers="mcps1.3.4.3.2.4.1.2 "><p id="waf_02_0046__p1915812813106">List</p>
</td>
<td class="cellrowborder" valign="top" width="39.7960203979602%" headers="mcps1.3.4.3.2.4.1.3 "><p id="waf_02_0046__p1416011851010">Specifies the category content.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="waf_02_0046__table191681818102"></a><a name="table191681818102"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0046__table191681818102" frame="border" border="1" rules="all"><caption><b>Table 9 </b><strong id="waf_02_0046__b1530493162614">action</strong></caption><thead align="left"><tr id="waf_02_0046__row121755812102"><th align="left" class="cellrowborder" valign="top" width="33.086691330866906%" id="mcps1.3.4.4.2.4.1.1"><p id="waf_02_0046__p1417815817101"><strong id="waf_02_0046__b617717108810">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="27.117288271172878%" id="mcps1.3.4.4.2.4.1.2"><p id="waf_02_0046__p14181783102"><strong id="waf_02_0046__b16114112982">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="39.7960203979602%" id="mcps1.3.4.4.2.4.1.3"><p id="waf_02_0046__p1018516818105"><strong id="waf_02_0046__b1343114131389">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="waf_02_0046__row1518717871011"><td class="cellrowborder" valign="top" width="33.086691330866906%" headers="mcps1.3.4.4.2.4.1.1 "><p id="waf_02_0046__p1018878131019">category</p>
</td>
<td class="cellrowborder" valign="top" width="27.117288271172878%" headers="mcps1.3.4.4.2.4.1.2 "><p id="waf_02_0046__p1519115815103">String</p>
</td>
<td class="cellrowborder" valign="top" width="39.7960203979602%" headers="mcps1.3.4.4.2.4.1.3 "><p id="waf_02_0046__p865312311309">Specifies the action. The default value is <span class="parmvalue" id="waf_02_0046__parmvalue1294195515172"><b>block</b></span>.</p>
<ul id="waf_02_0046__ul106561931103010"><li id="waf_02_0046__li1658193119301"><strong id="waf_02_0046__b19924183519569">block</strong>: block the requests.</li><li id="waf_02_0046__li1667231133013"><span class="parmvalue" id="waf_02_0046__parmvalue1277944413211"><b>captcha</b></span>: Verification code. The user needs to enter the correct verification code after blocking to restore the correct access page.</li></ul>
<p id="waf_02_0046__p6523943317">The default value is <strong id="waf_02_0046__b14981767456">block</strong>.</p>
<p id="waf_02_0046__p2196148191019">If <strong id="waf_02_0046__b67631943184817">tag_type</strong> is set to <strong id="waf_02_0046__b18763124313483">other</strong>, this parameter value can only be <strong id="waf_02_0046__b167631243194817">block</strong>.</p>
</td>
</tr>
<tr id="waf_02_0046__row719668141011"><td class="cellrowborder" valign="top" width="33.086691330866906%" headers="mcps1.3.4.4.2.4.1.1 "><p id="waf_02_0046__p820148101013">detail</p>
</td>
<td class="cellrowborder" valign="top" width="27.117288271172878%" headers="mcps1.3.4.4.2.4.1.2 "><p id="waf_02_0046__p142035816105"><a href="#waf_02_0046__table4421441182116">Table 10</a></p>
</td>
<td class="cellrowborder" valign="top" width="39.7960203979602%" headers="mcps1.3.4.4.2.4.1.3 "><p id="waf_02_0046__p1207138141010">Specifies the action details. If <strong id="waf_02_0046__b1918924614811">detail</strong> is <strong id="waf_02_0046__b818915462484">null</strong>, the default block page is displayed by default.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="waf_02_0046__table4421441182116"></a><a name="table4421441182116"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0046__table4421441182116" frame="border" border="1" rules="all"><caption><b>Table 10 </b><strong id="waf_02_0046__b18617249102615">detail</strong></caption><thead align="left"><tr id="waf_02_0046__row056104110213"><th align="left" class="cellrowborder" valign="top" width="32.96%" id="mcps1.3.4.5.2.5.1.1"><p id="waf_02_0046__p159134182113"><strong id="waf_02_0046__b87111834113313">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.439999999999998%" id="mcps1.3.4.5.2.5.1.2"><p id="waf_02_0046__p36114122116"><strong id="waf_02_0046__b1792093472">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.349999999999998%" id="mcps1.3.4.5.2.5.1.3"><p id="waf_02_0046__p76616416215"><strong id="waf_02_0046__b112597435">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="30.25%" id="mcps1.3.4.5.2.5.1.4"><p id="waf_02_0046__p769114172111"><strong id="waf_02_0046__b1986969602">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="waf_02_0046__row117454142116"><td class="cellrowborder" valign="top" width="32.96%" headers="mcps1.3.4.5.2.5.1.1 "><p id="waf_02_0046__p107934162119">response</p>
</td>
<td class="cellrowborder" valign="top" width="19.439999999999998%" headers="mcps1.3.4.5.2.5.1.2 "><p id="waf_02_0046__p18394172117">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.4.5.2.5.1.3 "><p id="waf_02_0046__p38964162119"><a href="#waf_02_0046__table26606224461">Table 11</a></p>
</td>
<td class="cellrowborder" valign="top" width="30.25%" headers="mcps1.3.4.5.2.5.1.4 "><p id="waf_02_0046__p19614114219">Specifies the returned page.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="waf_02_0046__table26606224461"></a><a name="table26606224461"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0046__table26606224461" frame="border" border="1" rules="all"><caption><b>Table 11 </b><strong id="waf_02_0046__b159136589263">response</strong></caption><thead align="left"><tr id="waf_02_0046__row5674522154620"><th align="left" class="cellrowborder" valign="top" width="33.086691330866906%" id="mcps1.3.4.6.2.4.1.1"><p id="waf_02_0046__p206809222462"><strong id="waf_02_0046__b19963226111115">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="27.117288271172878%" id="mcps1.3.4.6.2.4.1.2"><p id="waf_02_0046__p146851122134613"><strong id="waf_02_0046__b19657228131116">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="39.7960203979602%" id="mcps1.3.4.6.2.4.1.3"><p id="waf_02_0046__p186885225463"><strong id="waf_02_0046__b19791329121111">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="waf_02_0046__row14691172244614"><td class="cellrowborder" valign="top" width="33.086691330866906%" headers="mcps1.3.4.6.2.4.1.1 "><p id="waf_02_0046__p1669210224468">content_type</p>
</td>
<td class="cellrowborder" valign="top" width="27.117288271172878%" headers="mcps1.3.4.6.2.4.1.2 "><p id="waf_02_0046__p769718225468">String</p>
</td>
<td class="cellrowborder" valign="top" width="39.7960203979602%" headers="mcps1.3.4.6.2.4.1.3 "><p id="waf_02_0046__p470132274618">Specifies the type of the returned page.</p>
<p id="waf_02_0046__p19703132284613">The options are <strong id="waf_02_0046__b12889144711483">application/json</strong>, <strong id="waf_02_0046__b1890247134816">text/html</strong>, and <strong id="waf_02_0046__b989024718488">text/xml</strong>.</p>
</td>
</tr>
<tr id="waf_02_0046__row770552264619"><td class="cellrowborder" valign="top" width="33.086691330866906%" headers="mcps1.3.4.6.2.4.1.1 "><p id="waf_02_0046__p107121822184612">content</p>
</td>
<td class="cellrowborder" valign="top" width="27.117288271172878%" headers="mcps1.3.4.6.2.4.1.2 "><p id="waf_02_0046__p871532216464">String</p>
</td>
<td class="cellrowborder" valign="top" width="39.7960203979602%" headers="mcps1.3.4.6.2.4.1.3 "><p id="waf_02_0046__p207195228469">Specifies the content of the returned page.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="waf_02_0046__section1457985113518"><h4 class="sectiontitle">Examples</h4><p id="waf_02_0046__p8782115122219"></p>
<ul id="waf_02_0046__ul13664651105113"><li id="waf_02_0046__li46648511514">Request example<pre class="screen" id="waf_02_0046__screen12664145195115">{
"path": "/abc1",
"limit_num": 10,
"limit_period": 60,
"lock_time": "",
"tag_type": "cookie",
"tag_index": "sesssionid",
"action": {
"category": "block",
"detail": {
"response": {
"content_type": "application/json",
"content": "{\'error\':\'forbidden\}"
}
}
}
}</pre>
</li></ul>
<ul id="waf_02_0046__ul76651511516"><li id="waf_02_0046__li11665135175115">Response example<pre class="screen" id="waf_02_0046__screen106656519512">{
"id": "3a9b5c0f96784ec8abd8ba61a98064ef",
"policy_id": "9tre832yf96784ec8abd8ba61a98064ef",
"path": "/abc1",
"limit_num": 10,
"limit_period": 60,
"lock_time": "",
"tag_type": "cookie",
"tag_index": "sesssionid",
"action": {
"category": "block",
"detail": {
"response": {
"content_type": "application/json",
"content": "{\"error\":\"forbidden\"}"
}
}
},
"timestamp": 1499817600,
"default": false
}</pre>
</li></ul>
</div>
<div class="section" id="waf_02_0046__section53610983"><h4 class="sectiontitle">Status Code</h4><div class="p" id="waf_02_0046__waf_02_0012_a652d4922b7df48fca0a65bc1a38ea5f2"><a href="#waf_02_0046__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0">Table 12</a> describes the normal status code returned by the API.
<div class="tablenoborder"><a name="waf_02_0046__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0"></a><a name="waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0046__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0" frame="border" border="1" rules="all"><caption><b>Table 12 </b>Status code</caption><thead align="left"><tr id="waf_02_0046__waf_02_0012_r3d6e2f205c444705bdbb9daaac74e575"><th align="left" class="cellrowborder" valign="top" width="22%" id="mcps1.3.6.2.2.2.4.1.1"><p id="waf_02_0046__waf_02_0012_af3c4073076f24eca88d94e3fa1effdc6">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.41%" id="mcps1.3.6.2.2.2.4.1.2"><p id="waf_02_0046__waf_02_0012_en-us_topic_0144911667_p4531342288">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="58.589999999999996%" id="mcps1.3.6.2.2.2.4.1.3"><p id="waf_02_0046__waf_02_0012_ada185614bba24140995b8123b3e9faa8">Meaning</p>
</th>
</tr>
</thead>
<tbody><tr id="waf_02_0046__waf_02_0012_rc7b2adc390904a1ba79e303017797786"><td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.6.2.2.2.4.1.1 "><p id="waf_02_0046__waf_02_0012_a93f3895d44bb4226934cc626ac50e37b">200</p>
</td>
<td class="cellrowborder" valign="top" width="19.41%" headers="mcps1.3.6.2.2.2.4.1.2 "><p id="waf_02_0046__waf_02_0012_en-us_topic_0144911667_p7538425819">OK</p>
</td>
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.6.2.2.2.4.1.3 "><p id="waf_02_0046__waf_02_0012_en-us_topic_0144911667_p369874114414">The request has succeeded.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p id="waf_02_0046__waf_02_0012_en-us_topic_0144911667_p482819399522">For details about error status codes, see <a href="waf_02_0085.html">Status Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="waf_02_0041.html">CC Attack Protection Rules</a></div>
</div>
</div>