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>
416 lines
31 KiB
HTML
416 lines
31 KiB
HTML
<a name="DeleteCustomRule"></a><a name="DeleteCustomRule"></a>
|
|
|
|
<h1 class="topictitle1">Deleting a Precise Protection Rule</h1>
|
|
<div id="body1708331107508"><div class="section" id="DeleteCustomRule__topic1321000000"><h4 class="sectiontitle">Function</h4><p id="DeleteCustomRule__topic1321000002">This API is used to delete a precise protection rule.</p>
|
|
</div>
|
|
<div class="section" id="DeleteCustomRule__atuogenerate_1"><h4 class="sectiontitle">URI</h4><p id="DeleteCustomRule__topic1321000004">DELETE /v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id}</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteCustomRule__topic1321000005" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="DeleteCustomRule__topic1321000013"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="DeleteCustomRule__topic1321000015">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="DeleteCustomRule__topic1321000017">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="DeleteCustomRule__topic1321000019">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="DeleteCustomRule__topic1321000021">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteCustomRule__topic1321000023"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="DeleteCustomRule__topic1321000025">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="DeleteCustomRule__topic1321000027">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="DeleteCustomRule__topic1321000029">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="DeleteCustomRule__topic1321000031">Project ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000032"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="DeleteCustomRule__topic1321000034">policy_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="DeleteCustomRule__topic1321000036">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="DeleteCustomRule__topic1321000038">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="DeleteCustomRule__topic1321000040">Policy ID. It can be obtained by calling the <strong id="DeleteCustomRule__topic1321000041">ListPolicy</strong> API.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000042"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="DeleteCustomRule__topic1321000044">rule_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="DeleteCustomRule__topic1321000046">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="DeleteCustomRule__topic1321000048">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="DeleteCustomRule__topic1321000050">ID of the precise protection rule. It can be obtained by calling the <strong id="DeleteCustomRule__topic1321000051">ListCustomeRules</strong> API.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="DeleteCustomRule__topic1321000052"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteCustomRule__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="DeleteCustomRule__topic1321000061"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="DeleteCustomRule__topic1321000063">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="DeleteCustomRule__topic1321000065">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="DeleteCustomRule__topic1321000067">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="DeleteCustomRule__topic1321000069">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteCustomRule__topic1321000071"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="DeleteCustomRule__topic1321000073">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="DeleteCustomRule__topic1321000075">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="DeleteCustomRule__topic1321000077">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="DeleteCustomRule__topic1321000079">User token</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000080"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="DeleteCustomRule__topic1321000082">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="DeleteCustomRule__topic1321000084">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="DeleteCustomRule__topic1321000086">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="DeleteCustomRule__topic1321000088">Content type.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="DeleteCustomRule__topic1321000089"><h4 class="sectiontitle">Response Parameters</h4><p id="DeleteCustomRule__topic1321000091"><strong id="DeleteCustomRule__topic1321000092">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteCustomRule__response_DeleteCustomRuleResponseBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="DeleteCustomRule__topic1321000099"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="DeleteCustomRule__topic1321000101">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="DeleteCustomRule__topic1321000103">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="DeleteCustomRule__topic1321000105">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteCustomRule__topic1321000107"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteCustomRule__topic1321000109">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteCustomRule__topic1321000111">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteCustomRule__topic1321000113">Rule ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000114"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteCustomRule__topic1321000116">policyid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteCustomRule__topic1321000118">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteCustomRule__topic1321000120">Policy ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000121"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteCustomRule__topic1321000123">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteCustomRule__topic1321000125">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteCustomRule__topic1321000127">Rule description</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000128"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteCustomRule__topic1321000130">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteCustomRule__topic1321000132">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteCustomRule__topic1321000134">Rule status. The value can be <strong id="DeleteCustomRule__topic1321000135">0</strong> or <strong id="DeleteCustomRule__topic1321000136">1</strong>.</p>
|
|
<ul id="DeleteCustomRule__topic1321000137"><li id="DeleteCustomRule__topic1321000138"><p id="DeleteCustomRule__topic1321000139"><a name="DeleteCustomRule__topic1321000138"></a><a name="topic1321000138"></a><strong id="DeleteCustomRule__topic1321000140">0</strong>: The rule is disabled.</p>
|
|
</li><li id="DeleteCustomRule__topic1321000141"><p id="DeleteCustomRule__topic1321000142"><a name="DeleteCustomRule__topic1321000141"></a><a name="topic1321000141"></a><strong id="DeleteCustomRule__topic1321000143">1</strong>: The rule is enabled.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000144"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteCustomRule__topic1321000146">conditions</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteCustomRule__topic1321000148">Array of <a href="#DeleteCustomRule__response_conditions">conditions</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteCustomRule__topic1321000151">List of matching conditions. All conditions must be met.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000152"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteCustomRule__topic1321000154">action</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteCustomRule__topic1321000156"><a href="#DeleteCustomRule__response_CustomAction">CustomAction</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteCustomRule__topic1321000159">Protective action of the precise protection rule.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000160"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteCustomRule__topic1321000162">priority</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteCustomRule__topic1321000164">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteCustomRule__topic1321000166">Priority of a rule. A small value indicates a high priority. If two rules are assigned with the same priority, the rule added earlier has higher priority. Value range: 0 to 1000.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000167"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteCustomRule__topic1321000169">timestamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteCustomRule__topic1321000171">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteCustomRule__topic1321000173">Timestamp when the precise protection rule is created.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000174"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteCustomRule__topic1321000176">start</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteCustomRule__topic1321000178">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteCustomRule__topic1321000180">Timestamp (ms) when the precise protection rule takes effect. This parameter is returned only when time is true.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000181"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteCustomRule__topic1321000183">terminal</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteCustomRule__topic1321000185">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteCustomRule__topic1321000187">Timestamp (ms) when the precise protection rule expires. This parameter is returned only when time is true.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000188"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteCustomRule__topic1321000190">action_mode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteCustomRule__topic1321000192">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteCustomRule__topic1321000194">This parameter is reserved and can be ignored currently.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000195"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteCustomRule__topic1321000197">aging_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteCustomRule__topic1321000199">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteCustomRule__topic1321000201">Rule aging time. This parameter is reserved and can be ignored currently.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000202"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteCustomRule__topic1321000204">producer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteCustomRule__topic1321000206">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="DeleteCustomRule__topic1321000208">Rule creation object. This parameter is reserved and can be ignored currently.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="DeleteCustomRule__response_conditions"></a><a name="response_conditions"></a><table cellpadding="4" cellspacing="0" summary="" id="DeleteCustomRule__response_conditions" frame="border" border="1" rules="all"><caption><b>Table 4 </b>conditions</caption><thead align="left"><tr id="DeleteCustomRule__topic1321000215"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.1"><p id="DeleteCustomRule__topic1321000217">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.2"><p id="DeleteCustomRule__topic1321000219">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.4.2.4.1.3"><p id="DeleteCustomRule__topic1321000221">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteCustomRule__topic1321000223"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="DeleteCustomRule__topic1321000225">category</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="DeleteCustomRule__topic1321000227">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="DeleteCustomRule__topic1321000229">Field type. The options are <strong id="DeleteCustomRule__topic1321000230">url</strong>, <strong id="DeleteCustomRule__topic1321000231">user-agent</strong>, <strong id="DeleteCustomRule__topic1321000232">ip</strong>, <strong id="DeleteCustomRule__topic1321000233">params</strong>, <strong id="DeleteCustomRule__topic1321000234">cookie</strong>, <strong id="DeleteCustomRule__topic1321000235">referer</strong>, <strong id="DeleteCustomRule__topic1321000236">header</strong>, <strong id="DeleteCustomRule__topic1321000237">request_line</strong>, <strong id="DeleteCustomRule__topic1321000238">method</strong>, and <strong id="DeleteCustomRule__topic1321000239">request</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000240"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="DeleteCustomRule__topic1321000242">index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="DeleteCustomRule__topic1321000244">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="DeleteCustomRule__topic1321000246">Subfield</p>
|
|
<ul id="DeleteCustomRule__topic1321000247"><li id="DeleteCustomRule__topic1321000248"><p id="DeleteCustomRule__topic1321000249"><a name="DeleteCustomRule__topic1321000248"></a><a name="topic1321000248"></a>When the field type is <strong id="DeleteCustomRule__topic1321000250">url</strong>, <strong id="DeleteCustomRule__topic1321000251">user-agent</strong>, <strong id="DeleteCustomRule__topic1321000252">ip</strong>, <strong id="DeleteCustomRule__topic1321000253">refer</strong>, <strong id="DeleteCustomRule__topic1321000254">request_line</strong>, <strong id="DeleteCustomRule__topic1321000255">method</strong>, or <strong id="DeleteCustomRule__topic1321000256">request</strong>, <strong id="DeleteCustomRule__topic1321000257">index</strong> is not required.</p>
|
|
</li><li id="DeleteCustomRule__topic1321000258"><p id="DeleteCustomRule__topic1321000259"><a name="DeleteCustomRule__topic1321000258"></a><a name="topic1321000258"></a>When the field type is <strong id="DeleteCustomRule__topic1321000260">params</strong>, <strong id="DeleteCustomRule__topic1321000261">header</strong>, or <strong id="DeleteCustomRule__topic1321000262">cookie</strong>, and the subfield is customized, the value of <strong id="DeleteCustomRule__topic1321000263">index</strong> is the customized subfield.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000264"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="DeleteCustomRule__topic1321000266">logic_operation</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="DeleteCustomRule__topic1321000268">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="DeleteCustomRule__topic1321000270">Logic for matching the condition.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000271"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="DeleteCustomRule__topic1321000273">contents</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="DeleteCustomRule__topic1321000275">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="DeleteCustomRule__topic1321000277">Content of the conditions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000278"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="DeleteCustomRule__topic1321000280">value_list_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="DeleteCustomRule__topic1321000282">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="DeleteCustomRule__topic1321000284">Reference table ID. It can be obtained by calling the API Querying the Reference Table List. This parameter is available only when a reference table is used when a protection rule is created.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="DeleteCustomRule__response_CustomAction"></a><a name="response_CustomAction"></a><table cellpadding="4" cellspacing="0" summary="" id="DeleteCustomRule__response_CustomAction" frame="border" border="1" rules="all"><caption><b>Table 5 </b>CustomAction</caption><thead align="left"><tr id="DeleteCustomRule__topic1321000291"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="DeleteCustomRule__topic1321000293">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="DeleteCustomRule__topic1321000295">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="DeleteCustomRule__topic1321000297">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteCustomRule__topic1321000299"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="DeleteCustomRule__topic1321000301">category</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="DeleteCustomRule__topic1321000303">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="DeleteCustomRule__topic1321000305">Operation type</p>
|
|
<ul id="DeleteCustomRule__topic1321000306"><li id="DeleteCustomRule__topic1321000307"><p id="DeleteCustomRule__topic1321000308"><a name="DeleteCustomRule__topic1321000307"></a><a name="topic1321000307"></a><strong id="DeleteCustomRule__topic1321000309">block</strong>: WAF blocks attacks.</p>
|
|
</li><li id="DeleteCustomRule__topic1321000310"><p id="DeleteCustomRule__topic1321000311"><a name="DeleteCustomRule__topic1321000310"></a><a name="topic1321000310"></a><strong id="DeleteCustomRule__topic1321000312">pass</strong>: WAF allows requests.</p>
|
|
</li><li id="DeleteCustomRule__topic1321000313"><p id="DeleteCustomRule__topic1321000314"><a name="DeleteCustomRule__topic1321000313"></a><a name="topic1321000313"></a><strong id="DeleteCustomRule__topic1321000315">log</strong>: WAF only logs detected attacks.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000316"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="DeleteCustomRule__topic1321000318">followed_action_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="DeleteCustomRule__topic1321000320">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="DeleteCustomRule__topic1321000322">ID of a known attack source rule. This parameter can be configured only when <strong id="DeleteCustomRule__topic1321000323">category</strong> is set to <strong id="DeleteCustomRule__topic1321000324">block</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="DeleteCustomRule__topic1321000325"><strong id="DeleteCustomRule__topic1321000326">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteCustomRule__response_RestErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="DeleteCustomRule__topic1321000333"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="DeleteCustomRule__topic1321000335">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="DeleteCustomRule__topic1321000337">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="DeleteCustomRule__topic1321000339">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteCustomRule__topic1321000341"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="DeleteCustomRule__topic1321000343">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="DeleteCustomRule__topic1321000345">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="DeleteCustomRule__topic1321000347">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000348"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="DeleteCustomRule__topic1321000350">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="DeleteCustomRule__topic1321000352">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="DeleteCustomRule__topic1321000354">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="DeleteCustomRule__topic1321000355"><strong id="DeleteCustomRule__topic1321000356">Status code: 401</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteCustomRule__response_RestErrorResponse_1" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="DeleteCustomRule__topic1321000363"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.1"><p id="DeleteCustomRule__topic1321000365">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.2"><p id="DeleteCustomRule__topic1321000367">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.9.2.4.1.3"><p id="DeleteCustomRule__topic1321000369">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteCustomRule__topic1321000371"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="DeleteCustomRule__topic1321000373">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="DeleteCustomRule__topic1321000375">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="DeleteCustomRule__topic1321000377">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000378"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="DeleteCustomRule__topic1321000380">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="DeleteCustomRule__topic1321000382">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="DeleteCustomRule__topic1321000384">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="DeleteCustomRule__topic1321000385"><strong id="DeleteCustomRule__topic1321000386">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteCustomRule__response_RestErrorResponse_2" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="DeleteCustomRule__topic1321000393"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.11.2.4.1.1"><p id="DeleteCustomRule__topic1321000395">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.11.2.4.1.2"><p id="DeleteCustomRule__topic1321000397">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.11.2.4.1.3"><p id="DeleteCustomRule__topic1321000399">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteCustomRule__topic1321000401"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.1 "><p id="DeleteCustomRule__topic1321000403">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.2 "><p id="DeleteCustomRule__topic1321000405">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.11.2.4.1.3 "><p id="DeleteCustomRule__topic1321000407">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000408"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.1 "><p id="DeleteCustomRule__topic1321000410">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.2 "><p id="DeleteCustomRule__topic1321000412">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.11.2.4.1.3 "><p id="DeleteCustomRule__topic1321000414">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="DeleteCustomRule__topic1321000415"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="DeleteCustomRule__topic1321000417">DELETE https://{Endpoint}/v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id}?</pre>
|
|
</div>
|
|
<div class="section" id="DeleteCustomRule__topic1321000418"><h4 class="sectiontitle">Example Responses</h4><p id="DeleteCustomRule__topic1321000420"><strong id="DeleteCustomRule__topic1321000421">Status code: 200</strong></p>
|
|
<p id="DeleteCustomRule__topic1321000422">Request succeeded.</p>
|
|
<pre class="screen" id="DeleteCustomRule__topic1321000423">{
|
|
"id" : "88e8bf4158324b2d9a233e7ffb95516d",
|
|
"policyid" : "dde63c25e8394b21b16a2a49a99e659b",
|
|
"timestamp" : 1678799936830,
|
|
"description" : "",
|
|
"status" : 1,
|
|
"time" : false,
|
|
"priority" : 50,
|
|
"action_mode" : false,
|
|
"conditions" : [ {
|
|
"category" : "url",
|
|
"contents" : [ "test" ],
|
|
"logic_operation" : "contain"
|
|
} ],
|
|
"action" : {
|
|
"category" : "block"
|
|
},
|
|
"producer" : 1,
|
|
"aging_time" : 0
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="DeleteCustomRule__topic1321000424"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteCustomRule__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="DeleteCustomRule__topic1321000430"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="DeleteCustomRule__topic1321000432">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="DeleteCustomRule__topic1321000434">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteCustomRule__topic1321000436"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteCustomRule__topic1321000438">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteCustomRule__topic1321000440">Request succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000441"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteCustomRule__topic1321000443">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteCustomRule__topic1321000445">Request failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000446"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteCustomRule__topic1321000448">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteCustomRule__topic1321000450">The token does not have required permissions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteCustomRule__topic1321000451"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteCustomRule__topic1321000453">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteCustomRule__topic1321000455">Internal server error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="DeleteCustomRule__topic1321000456"><h4 class="sectiontitle">Error Codes</h4><p id="DeleteCustomRule__topic1321000458">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>
|
|
|