forked from docs/doc-exports
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>
307 lines
25 KiB
HTML
307 lines
25 KiB
HTML
<a name="waf_02_0045"></a><a name="waf_02_0045"></a>
|
|
|
|
<h1 class="topictitle1">Querying a CC Attack Protection Rule</h1>
|
|
<div id="body25126586"><div class="section" id="waf_02_0045__section50234597"><h4 class="sectiontitle">Function Description</h4><p class="msonormal" id="waf_02_0045__p21987592">This API is used to query details about a CC attack protection rule.</p>
|
|
</div>
|
|
<div class="section" id="waf_02_0045__section42470594"><h4 class="sectiontitle">URI</h4><ul id="waf_02_0045__ul43648847"><li id="waf_02_0045__li57295305">URI format<p id="waf_02_0045__p45895703"><a name="waf_02_0045__li57295305"></a><a name="li57295305"></a>GET /v1/{project_id}/waf/policy/{policy_id}/cc/{ccrule_id}</p>
|
|
</li><li id="waf_02_0045__li10408144">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0045__table26564439" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="waf_02_0045__row14496474"><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_0045__p33363744"><strong id="waf_02_0045__b155951659171913">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_0045__p18108714"><strong id="waf_02_0045__b1254118192018">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_0045__p57519712"><strong id="waf_02_0045__b1782114716209">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_0045__p28585132"><strong id="waf_02_0045__b18433798207">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0045__row33694323"><td class="cellrowborder" valign="top" width="30.930000000000003%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="waf_02_0045__p44885663">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_0045__p11860120">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_0045__p21145669">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_0045__p35077647">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row47263370"><td class="cellrowborder" valign="top" width="30.930000000000003%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="waf_02_0045__p3127753">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_0045__p52021465">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_0045__p52989154">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_0045__p64263051">Specifies the policy ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row41496547"><td class="cellrowborder" valign="top" width="30.930000000000003%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="waf_02_0045__p5777119">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_0045__p65293520">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_0045__p54283806">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_0045__p34912176">Specifies the ID of a CC attack protection rule.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="waf_02_0045__section46691029"><h4 class="sectiontitle">Request</h4><p id="waf_02_0045__p1142114511495">Request parameters</p>
|
|
<p class="msonormal" id="waf_02_0045__p9314031">None</p>
|
|
</div>
|
|
<div class="section" id="waf_02_0045__section17566079"><h4 class="sectiontitle">Response</h4><div class="p" id="waf_02_0045__p441258144917">Response parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0045__table40294034" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="waf_02_0045__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_0045__p18257741"><strong id="waf_02_0045__b388812523219">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_0045__p2482084"><strong id="waf_02_0045__b115381554152120">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_0045__p66831078"><strong id="waf_02_0045__b688245818213">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0045__row64608796"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0045__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_0045__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_0045__p49869334">Specifies the ID of a CC attack protection rule.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row46170830"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0045__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_0045__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_0045__p58288823">Specifies the policy ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row54837361"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0045__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_0045__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_0045__p59869366">Specifies the URL to which the rule applies, excluding a domain name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row1953388"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0045__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_0045__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_0045__p3937548">Specifies the number of requests allowed from a web visitor in a rate limiting period.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row35437935"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0045__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_0045__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_0045__p8665463">Specifies the rate limiting period.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row10880304"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0045__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_0045__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_0045__p5699133">Specifies the lock duration. The value ranges from <strong id="waf_02_0045__b1322912813320">0</strong> seconds to <strong id="waf_02_0045__b19229681534">2</strong><strong id="waf_02_0045__b13229585320"><sup id="waf_02_0045__sup6229481313">32</sup></strong> seconds.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row51292205"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0045__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_0045__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_0045__p71571255171014">Specifies the rate limit mode.</p>
|
|
<ul id="waf_02_0045__ul555831610497"><li id="waf_02_0045__li12564151611492"><span class="parmvalue" id="waf_02_0045__parmvalue05012225817"><b>ip</b></span>: A web visitor is identified by the IP address.</li><li id="waf_02_0045__li1577111613495"><span class="parmvalue" id="waf_02_0045__parmvalue6293168142413"><b>cookie</b></span>: A web visitor is identified by the cookie key value.</li><li id="waf_02_0045__li250118018588"><span class="parmvalue" id="waf_02_0045__parmvalue189581648102617"><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_0045__row28268911"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0045__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_0045__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_0045__p16557142835414">If <span class="parmname" id="waf_02_0045__parmname798914116483"><b>tag_type</b></span> is set to <strong id="waf_02_0045__b18990151144814">cookie</strong>, this parameter indicates cookie name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row66360388"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0045__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_0045__p55308705"><a href="#waf_02_0045__table2115782102">Table 3</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_0045__p155661828165416">Specifies the <strong id="waf_02_0045__b790994314221">Referer</strong> (customized request source) field. This field is returned when <span class="parmvalue" id="waf_02_0045__parmvalue12909184318222"><b>tag_type</b></span> is set to <span class="parmvalue" id="waf_02_0045__parmvalue2909443122213"><b>other</b></span>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row13663579"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0045__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_0045__p56413415"><a href="#waf_02_0045__table191681818102">Table 4</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_0045__p6083869">Specifies the action taken when the number of requests reaches the upper limit.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row26058851"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0045__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_0045__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_0045__p22791319">Specifies the time when a CC attack protection rule is added.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row198481743151816"><td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.4.2.1.2.4.1.1 "><p id="waf_02_0045__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_0045__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_0045__p8552015163214">Specifies whether the rule is the default CC attack protection rule.</p>
|
|
<ul id="waf_02_0045__ul1248751619599"><li id="waf_02_0045__waf_02_0042_li14489191675919"><strong id="waf_02_0045__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_0045__waf_02_0042_li24963163595"><strong id="waf_02_0045__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_0045__table2115782102"></a><a name="table2115782102"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0045__table2115782102" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="waf_02_0045__b201351388326">tag_condition</strong></caption><thead align="left"><tr id="waf_02_0045__row41268816100"><th align="left" class="cellrowborder" valign="top" width="33.086691330866906%" id="mcps1.3.4.3.2.4.1.1"><p id="waf_02_0045__p121301861010"><strong id="waf_02_0045__b899171342417">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_0045__p101341485102"><strong id="waf_02_0045__b858621582417">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_0045__p11378851012"><strong id="waf_02_0045__b7427222142416">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0045__row6140148141013"><td class="cellrowborder" valign="top" width="33.086691330866906%" headers="mcps1.3.4.3.2.4.1.1 "><p id="waf_02_0045__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_0045__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_0045__p1014916851017">Specifies the category. The value is <strong id="waf_02_0045__b1909843488">Referer</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row18151118161015"><td class="cellrowborder" valign="top" width="33.086691330866906%" headers="mcps1.3.4.3.2.4.1.1 "><p id="waf_02_0045__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_0045__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_0045__p1416011851010">Specifies the category content.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="waf_02_0045__table191681818102"></a><a name="table191681818102"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0045__table191681818102" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="waf_02_0045__b7198114813212">action</strong></caption><thead align="left"><tr id="waf_02_0045__row121755812102"><th align="left" class="cellrowborder" valign="top" width="33.086691330866906%" id="mcps1.3.4.4.2.4.1.1"><p id="waf_02_0045__p1417815817101"><strong id="waf_02_0045__b18432113815244">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_0045__p14181783102"><strong id="waf_02_0045__b1691915416242">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_0045__p1018516818105"><strong id="waf_02_0045__b208501043132419">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0045__row1518717871011"><td class="cellrowborder" valign="top" width="33.086691330866906%" headers="mcps1.3.4.4.2.4.1.1 "><p id="waf_02_0045__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_0045__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_0045__p154031329171813">Specifies the action. The default value is <span class="parmvalue" id="waf_02_0045__parmvalue485112018915"><b>block</b></span>.</p>
|
|
<ul id="waf_02_0045__ul661483971811"><li id="waf_02_0045__li13968134481819"><strong id="waf_02_0045__b1242288145818">block</strong>: block the requests.</li><li id="waf_02_0045__li0614153913187"><span class="parmvalue" id="waf_02_0045__parmvalue1749805751815"><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_0045__p15900183312309">The default value is <strong id="waf_02_0045__b765844611443">block</strong>.</p>
|
|
<p id="waf_02_0045__p2196148191019">If <strong id="waf_02_0045__b6970763488">tag_type</strong> is set to <strong id="waf_02_0045__b4971262484">other</strong>, this parameter value can only be <strong id="waf_02_0045__b697119614480">block</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row719668141011"><td class="cellrowborder" valign="top" width="33.086691330866906%" headers="mcps1.3.4.4.2.4.1.1 "><p id="waf_02_0045__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_0045__p142035816105"><a href="#waf_02_0045__table1060217107105">Table 5</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.7960203979602%" headers="mcps1.3.4.4.2.4.1.3 "><p id="waf_02_0045__p1207138141010">Specifies the action details. If <strong id="waf_02_0045__b66561087484">detail</strong> is <strong id="waf_02_0045__b0656686489">null</strong>, the default block page is displayed by default.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="waf_02_0045__table1060217107105"></a><a name="table1060217107105"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0045__table1060217107105" frame="border" border="1" rules="all"><caption><b>Table 5 </b><strong id="waf_02_0045__b138517083318">detail</strong></caption><thead align="left"><tr id="waf_02_0045__row1861251018106"><th align="left" class="cellrowborder" valign="top" width="33.086691330866906%" id="mcps1.3.4.5.2.4.1.1"><p id="waf_02_0045__p14615101021017"><strong id="waf_02_0045__b282820160251">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="27.117288271172878%" id="mcps1.3.4.5.2.4.1.2"><p id="waf_02_0045__p2619141061016"><strong id="waf_02_0045__b1513721916252">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="39.7960203979602%" id="mcps1.3.4.5.2.4.1.3"><p id="waf_02_0045__p10622171001012"><strong id="waf_02_0045__b1927912219253">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0045__row1142418101020"><td class="cellrowborder" valign="top" width="33.086691330866906%" headers="mcps1.3.4.5.2.4.1.1 "><p id="waf_02_0045__p159981716141015">response</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.117288271172878%" headers="mcps1.3.4.5.2.4.1.2 "><p id="waf_02_0045__p62517141010"><a href="#waf_02_0045__table671153413914">Table 6</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.7960203979602%" headers="mcps1.3.4.5.2.4.1.3 "><p id="waf_02_0045__p651517191019">Specifies the returned page.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="waf_02_0045__table671153413914"></a><a name="table671153413914"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0045__table671153413914" frame="border" border="1" rules="all"><caption><b>Table 6 </b><strong id="waf_02_0045__b1561121403315">response</strong></caption><thead align="left"><tr id="waf_02_0045__row87235341695"><th align="left" class="cellrowborder" valign="top" width="33.086691330866906%" id="mcps1.3.4.6.2.4.1.1"><p id="waf_02_0045__p117313341294"><strong id="waf_02_0045__b184641728122513">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_0045__p107346349917"><strong id="waf_02_0045__b1758610305254">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_0045__p773818346918"><strong id="waf_02_0045__b959032112515">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0045__row46995451391"><td class="cellrowborder" valign="top" width="33.086691330866906%" headers="mcps1.3.4.6.2.4.1.1 "><p id="waf_02_0045__p26435443911">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_0045__p76471144794">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.7960203979602%" headers="mcps1.3.4.6.2.4.1.3 "><p id="waf_02_0045__p1265017441999">Specifies the type of the returned page.</p>
|
|
<p id="waf_02_0045__p6652244595">The options are <strong id="waf_02_0045__b1558511157482">application/json</strong>, <strong id="waf_02_0045__b758551514812">text/html</strong>, and <strong id="waf_02_0045__b15866150481">text/xml</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0045__row1669964520912"><td class="cellrowborder" valign="top" width="33.086691330866906%" headers="mcps1.3.4.6.2.4.1.1 "><p id="waf_02_0045__p86555442914">content</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.117288271172878%" headers="mcps1.3.4.6.2.4.1.2 "><p id="waf_02_0045__p1365811441899">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.7960203979602%" headers="mcps1.3.4.6.2.4.1.3 "><p id="waf_02_0045__p186601448918">Specifies the content of the returned page.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="waf_02_0045__section104851652195015"><h4 class="sectiontitle">Example</h4><p id="waf_02_0045__p114121754125612"></p>
|
|
<ul id="waf_02_0045__ul0609115211501"><li id="waf_02_0045__li760915215509">Response example<pre class="screen" id="waf_02_0045__screen860915527501">{
|
|
"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_0045__section23876985"><h4 class="sectiontitle">Status Code</h4><div class="p" id="waf_02_0045__waf_02_0012_a652d4922b7df48fca0a65bc1a38ea5f2"><a href="#waf_02_0045__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0">Table 7</a> describes the normal status code returned by the API.
|
|
<div class="tablenoborder"><a name="waf_02_0045__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0"></a><a name="waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0045__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Status code</caption><thead align="left"><tr id="waf_02_0045__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_0045__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_0045__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_0045__waf_02_0012_ada185614bba24140995b8123b3e9faa8">Meaning</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0045__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_0045__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_0045__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_0045__waf_02_0012_en-us_topic_0144911667_p369874114414">The request has succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<p id="waf_02_0045__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>
|
|
|