forked from docs/doc-exports
Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com> Co-authored-by: qinweiwei <qinweiwei@huawei.com> Co-committed-by: qinweiwei <qinweiwei@huawei.com>
324 lines
22 KiB
HTML
324 lines
22 KiB
HTML
<a name="ListPunishmentRules"></a><a name="ListPunishmentRules"></a>
|
|
|
|
<h1 class="topictitle1">Querying the List of Known Attack Source Rules</h1>
|
|
<div id="body1708331107508"><div class="section" id="ListPunishmentRules__topic1431000000"><h4 class="sectiontitle">Function</h4><p id="ListPunishmentRules__topic1431000002">This API is used to query the list of known attack source rules.</p>
|
|
</div>
|
|
<div class="section" id="ListPunishmentRules__atuogenerate_1"><h4 class="sectiontitle">URI</h4><p id="ListPunishmentRules__topic1431000004">GET /v1/{project_id}/waf/policy/{policy_id}/punishment</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPunishmentRules__topic1431000005" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="ListPunishmentRules__topic1431000013"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="ListPunishmentRules__topic1431000015">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="ListPunishmentRules__topic1431000017">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="ListPunishmentRules__topic1431000019">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="ListPunishmentRules__topic1431000021">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListPunishmentRules__topic1431000023"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="ListPunishmentRules__topic1431000025">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="ListPunishmentRules__topic1431000027">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="ListPunishmentRules__topic1431000029">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="ListPunishmentRules__topic1431000031">project_id</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000032"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="ListPunishmentRules__topic1431000034">policy_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="ListPunishmentRules__topic1431000036">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="ListPunishmentRules__topic1431000038">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="ListPunishmentRules__topic1431000040">Policy ID. It can be obtained by calling the <strong id="ListPunishmentRules__topic1431000041">ListPolicy</strong> API.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPunishmentRules__topic1431000042" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="ListPunishmentRules__topic1431000050"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="ListPunishmentRules__topic1431000052">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="ListPunishmentRules__topic1431000054">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="ListPunishmentRules__topic1431000056">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="ListPunishmentRules__topic1431000058">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListPunishmentRules__topic1431000060"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="ListPunishmentRules__topic1431000062">page</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="ListPunishmentRules__topic1431000064">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="ListPunishmentRules__topic1431000066">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="ListPunishmentRules__topic1431000068">Page</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000069"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="ListPunishmentRules__topic1431000071">pagesize</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="ListPunishmentRules__topic1431000073">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="ListPunishmentRules__topic1431000075">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="ListPunishmentRules__topic1431000077">Number of records on each page. The maximum value is 2147483647.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ListPunishmentRules__topic1431000078"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPunishmentRules__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request header parameters</caption><thead align="left"><tr id="ListPunishmentRules__topic1431000087"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="ListPunishmentRules__topic1431000089">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="ListPunishmentRules__topic1431000091">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="ListPunishmentRules__topic1431000093">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="ListPunishmentRules__topic1431000095">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListPunishmentRules__topic1431000097"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="ListPunishmentRules__topic1431000099">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="ListPunishmentRules__topic1431000101">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="ListPunishmentRules__topic1431000103">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="ListPunishmentRules__topic1431000105">auth token</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000106"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="ListPunishmentRules__topic1431000108">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="ListPunishmentRules__topic1431000110">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="ListPunishmentRules__topic1431000112">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="ListPunishmentRules__topic1431000114">Content type.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ListPunishmentRules__topic1431000115"><h4 class="sectiontitle">Response Parameters</h4><p id="ListPunishmentRules__topic1431000117"><strong id="ListPunishmentRules__topic1431000118">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPunishmentRules__response_ListPunishmentRulesResponseBody" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="ListPunishmentRules__topic1431000125"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="ListPunishmentRules__topic1431000127">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="ListPunishmentRules__topic1431000129">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="ListPunishmentRules__topic1431000131">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListPunishmentRules__topic1431000133"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ListPunishmentRules__topic1431000135">total</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ListPunishmentRules__topic1431000137">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ListPunishmentRules__topic1431000139">The number of known attack source rules.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000140"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ListPunishmentRules__topic1431000142">items</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ListPunishmentRules__topic1431000144">Array of <a href="#ListPunishmentRules__response_PunishmentInfo">PunishmentInfo</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ListPunishmentRules__topic1431000147">The list of known attack source rules.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="ListPunishmentRules__response_PunishmentInfo"></a><a name="response_PunishmentInfo"></a><table cellpadding="4" cellspacing="0" summary="" id="ListPunishmentRules__response_PunishmentInfo" frame="border" border="1" rules="all"><caption><b>Table 5 </b>PunishmentInfo</caption><thead align="left"><tr id="ListPunishmentRules__topic1431000154"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.1"><p id="ListPunishmentRules__topic1431000156">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.2"><p id="ListPunishmentRules__topic1431000158">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.4.2.4.1.3"><p id="ListPunishmentRules__topic1431000160">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListPunishmentRules__topic1431000162"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPunishmentRules__topic1431000164">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPunishmentRules__topic1431000166">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPunishmentRules__topic1431000168">Rule ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000169"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPunishmentRules__topic1431000171">policyid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPunishmentRules__topic1431000173">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPunishmentRules__topic1431000175">Policy ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000176"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPunishmentRules__topic1431000178">block_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPunishmentRules__topic1431000180">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPunishmentRules__topic1431000182">Block duration, in seconds.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000183"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPunishmentRules__topic1431000185">category</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPunishmentRules__topic1431000187">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPunishmentRules__topic1431000189">Type of the known attack source rule</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000190"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPunishmentRules__topic1431000192">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPunishmentRules__topic1431000194">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPunishmentRules__topic1431000196">Rule description</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000197"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPunishmentRules__topic1431000199">timestamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPunishmentRules__topic1431000201">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPunishmentRules__topic1431000203">Timestamp when the rule was created.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="ListPunishmentRules__topic1431000204"><strong id="ListPunishmentRules__topic1431000205">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPunishmentRules__response_RestErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="ListPunishmentRules__topic1431000212"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.1"><p id="ListPunishmentRules__topic1431000214">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.2"><p id="ListPunishmentRules__topic1431000216">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.6.2.4.1.3"><p id="ListPunishmentRules__topic1431000218">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListPunishmentRules__topic1431000220"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="ListPunishmentRules__topic1431000222">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="ListPunishmentRules__topic1431000224">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="ListPunishmentRules__topic1431000226">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000227"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="ListPunishmentRules__topic1431000229">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="ListPunishmentRules__topic1431000231">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="ListPunishmentRules__topic1431000233">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="ListPunishmentRules__topic1431000234"><strong id="ListPunishmentRules__topic1431000235">Status code: 401</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPunishmentRules__response_RestErrorResponse_1" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="ListPunishmentRules__topic1431000242"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.1"><p id="ListPunishmentRules__topic1431000244">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.2"><p id="ListPunishmentRules__topic1431000246">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.8.2.4.1.3"><p id="ListPunishmentRules__topic1431000248">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListPunishmentRules__topic1431000250"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="ListPunishmentRules__topic1431000252">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="ListPunishmentRules__topic1431000254">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="ListPunishmentRules__topic1431000256">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000257"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="ListPunishmentRules__topic1431000259">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="ListPunishmentRules__topic1431000261">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="ListPunishmentRules__topic1431000263">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="ListPunishmentRules__topic1431000264"><strong id="ListPunishmentRules__topic1431000265">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPunishmentRules__response_RestErrorResponse_2" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="ListPunishmentRules__topic1431000272"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.10.2.4.1.1"><p id="ListPunishmentRules__topic1431000274">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.10.2.4.1.2"><p id="ListPunishmentRules__topic1431000276">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.10.2.4.1.3"><p id="ListPunishmentRules__topic1431000278">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListPunishmentRules__topic1431000280"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.1 "><p id="ListPunishmentRules__topic1431000282">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.2 "><p id="ListPunishmentRules__topic1431000284">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.10.2.4.1.3 "><p id="ListPunishmentRules__topic1431000286">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000287"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.1 "><p id="ListPunishmentRules__topic1431000289">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.2 "><p id="ListPunishmentRules__topic1431000291">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.10.2.4.1.3 "><p id="ListPunishmentRules__topic1431000293">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ListPunishmentRules__topic1431000294"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="ListPunishmentRules__topic1431000296">GET https://{Endpoint}/v1/{project_id}/waf/policy/{policy_id}/punishment?</pre>
|
|
</div>
|
|
<div class="section" id="ListPunishmentRules__topic1431000297"><h4 class="sectiontitle">Example Responses</h4><p id="ListPunishmentRules__topic1431000299"><strong id="ListPunishmentRules__topic1431000300">Status code: 200</strong></p>
|
|
<p id="ListPunishmentRules__topic1431000301">Request succeeded.</p>
|
|
<pre class="screen" id="ListPunishmentRules__topic1431000302">{
|
|
"items" : [ {
|
|
"block_time" : 305,
|
|
"category" : "long_ip_block",
|
|
"description" : "test",
|
|
"id" : "2c3afdcc982b429da4f72ee483aece3e",
|
|
"policyid" : "2fcbcb23ef0d48d99d24d7dcff00307d",
|
|
"timestamp" : 1668148186106
|
|
} ],
|
|
"total" : 1
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="ListPunishmentRules__topic1431000303"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPunishmentRules__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="ListPunishmentRules__topic1431000309"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="ListPunishmentRules__topic1431000311">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="ListPunishmentRules__topic1431000313">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListPunishmentRules__topic1431000315"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListPunishmentRules__topic1431000317">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListPunishmentRules__topic1431000319">Request succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000320"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListPunishmentRules__topic1431000322">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListPunishmentRules__topic1431000324">Request failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000325"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListPunishmentRules__topic1431000327">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListPunishmentRules__topic1431000329">The token does not have required permissions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListPunishmentRules__topic1431000330"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListPunishmentRules__topic1431000332">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListPunishmentRules__topic1431000334">Internal server error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ListPunishmentRules__topic1431000335"><h4 class="sectiontitle">Error Codes</h4><p id="ListPunishmentRules__topic1431000337">See <a href="ErrorCode.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="topic_300000003.html">Rule Management</a></div>
|
|
</div>
|
|
</div>
|
|
|