forked from docs/doc-exports
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: qiaoli <qiaoli@huawei.com> Co-committed-by: qiaoli <qiaoli@huawei.com>
233 lines
17 KiB
HTML
233 lines
17 KiB
HTML
<a name="DeleteAclRuleHitCount"></a><a name="DeleteAclRuleHitCount"></a>
|
|
|
|
<h1 class="topictitle1">Deleting the Number of Rule Hits</h1>
|
|
<div id="body1708331107508"><div class="section" id="DeleteAclRuleHitCount__section147162462288"><h4 class="sectiontitle">Function</h4><p id="DeleteAclRuleHitCount__p19716144652817">This API is used to delete the number of rule hits.</p>
|
|
</div>
|
|
<div class="section" id="DeleteAclRuleHitCount__section4717114610288"><h4 class="sectiontitle">URI</h4><p id="DeleteAclRuleHitCount__p1971714611281">DELETE /v1/{project_id}/acl-rule/count</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteAclRuleHitCount__table6718184662817" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="DeleteAclRuleHitCount__row1171854615288"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="DeleteAclRuleHitCount__p1771815468282">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="DeleteAclRuleHitCount__p1671864617280">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="DeleteAclRuleHitCount__p167191246202813">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="DeleteAclRuleHitCount__p8719144642817">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteAclRuleHitCount__row3718124652816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="DeleteAclRuleHitCount__p67191946202811">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="DeleteAclRuleHitCount__p571944615284">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="DeleteAclRuleHitCount__p127207468288">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="DeleteAclRuleHitCount__p127201246152819">Project ID, which can be obtained by calling an API or from the console. For details, see <a href="cfw_02_0015.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteAclRuleHitCount__table1772111465285" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="DeleteAclRuleHitCount__row572054612288"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="DeleteAclRuleHitCount__p0721146122818">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="DeleteAclRuleHitCount__p172114468287">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="DeleteAclRuleHitCount__p3721246132814">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="DeleteAclRuleHitCount__p17722124617283">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteAclRuleHitCount__row1672084672812"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="DeleteAclRuleHitCount__p1372224610283">enterprise_project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="DeleteAclRuleHitCount__p1672264617283">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="DeleteAclRuleHitCount__p187221446162812">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="DeleteAclRuleHitCount__p13723154652811">Enterprise project ID, which is the ID of a project planned based on organizations. You can obtain the enterprise project ID by referring to <a href="cfw_02_0027.html">Obtaining an Enterprise Project ID</a>. If the enterprise project function is not enabled, the value is <strong id="DeleteAclRuleHitCount__b272313466284">0</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteAclRuleHitCount__row11720204613289"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="DeleteAclRuleHitCount__p672364632814">fw_instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="DeleteAclRuleHitCount__p10723164662812">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="DeleteAclRuleHitCount__p1572404614283">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="DeleteAclRuleHitCount__p107241746162810">Firewall ID, which can be obtained by referring to <a href="cfw_02_0028.html">Obtaining a Firewall ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="DeleteAclRuleHitCount__section14724134618286"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteAclRuleHitCount__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request header parameters</caption><thead align="left"><tr id="DeleteAclRuleHitCount__row0725194602815"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="DeleteAclRuleHitCount__p1972516469281">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="DeleteAclRuleHitCount__p2725124622815">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="DeleteAclRuleHitCount__p672694682811">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="DeleteAclRuleHitCount__p8726164616287">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteAclRuleHitCount__row167251146112817"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="DeleteAclRuleHitCount__p4727134632810">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="DeleteAclRuleHitCount__p67279464286">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="DeleteAclRuleHitCount__p972818466287">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="DeleteAclRuleHitCount__p5728124610288">User token. You can obtain the token by referring to <a href="cfw_02_0029.html">Obtaining a User Token</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteAclRuleHitCount__row12662776290"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="DeleteAclRuleHitCount__p16987185572214">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="DeleteAclRuleHitCount__p1453216872313">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="DeleteAclRuleHitCount__p598785514223">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="DeleteAclRuleHitCount__p1821149193417">Content type. It can only be set to application/json.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteAclRuleHitCount__request_ClearAccessLogRuleHitCountsDto" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Request body parameters</caption><thead align="left"><tr id="DeleteAclRuleHitCount__row2729114618283"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="DeleteAclRuleHitCount__p1730154618283">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="DeleteAclRuleHitCount__p273074692812">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="DeleteAclRuleHitCount__p7731184620283">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="DeleteAclRuleHitCount__p1573115464287">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteAclRuleHitCount__row1672913461288"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="DeleteAclRuleHitCount__p5731546172815">rule_ids</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="DeleteAclRuleHitCount__p107321446122816">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="DeleteAclRuleHitCount__p197329467287">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="DeleteAclRuleHitCount__p127331946172812">List of rules deleted during rule hit deletion. Rule IDs can be obtained by calling the <a href="ListAclRules.html">API for querying protection rules</a>. Find the value in <strong id="DeleteAclRuleHitCount__b1073384672811">data.records.rule_id</strong> (The period [.] is used to separate different levels of objects).</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="DeleteAclRuleHitCount__section20733134642811"><h4 class="sectiontitle">Response Parameters</h4><p id="DeleteAclRuleHitCount__p1773484614287"><strong id="DeleteAclRuleHitCount__b13734164662817">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteAclRuleHitCount__response_-" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="DeleteAclRuleHitCount__row37341546102817"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="DeleteAclRuleHitCount__p19735114692810">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="DeleteAclRuleHitCount__p973674614280">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="DeleteAclRuleHitCount__p1273664610281">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteAclRuleHitCount__row12735154662819"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="DeleteAclRuleHitCount__p87379468284">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="DeleteAclRuleHitCount__p57372046102810">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="DeleteAclRuleHitCount__p273844652819"><strong id="DeleteAclRuleHitCount__b10738114616286">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteAclRuleHitCount__response_ErrorRsp" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="DeleteAclRuleHitCount__row47381146132820"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="DeleteAclRuleHitCount__p1373924682811">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="DeleteAclRuleHitCount__p1174074617282">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="DeleteAclRuleHitCount__p274054662815">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteAclRuleHitCount__row1373811463285"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="DeleteAclRuleHitCount__p374144662818">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="DeleteAclRuleHitCount__p2074154682819">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="DeleteAclRuleHitCount__p7741204617289">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteAclRuleHitCount__row773874619283"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="DeleteAclRuleHitCount__p157421546172812">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="DeleteAclRuleHitCount__p1174264616282">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="DeleteAclRuleHitCount__p14742164632811">Error description.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="DeleteAclRuleHitCount__section074213461287"><h4 class="sectiontitle">Example Requests</h4><p id="DeleteAclRuleHitCount__p19743546122814">Clear the hits of ACL rule 59ff6bd9-0a76-41ec-9650-380086069965 whose project ID is 0b2179bbe180d3762fb0c01a2d5725c7.</p>
|
|
<pre class="screen" id="DeleteAclRuleHitCount__screen4743174682811">https://{Endpoint}/v1/0b2179bbe180d3762fb0c01a2d5725c7/acl-rule/count
|
|
|
|
{
|
|
"rule_ids" : [ "59ff6bd9-0a76-41ec-9650-380086069965" ]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="DeleteAclRuleHitCount__section97441846122815"><h4 class="sectiontitle">Example Responses</h4><p id="DeleteAclRuleHitCount__p157441446202810"><strong id="DeleteAclRuleHitCount__b1674424610281">Status code: 200</strong></p>
|
|
<p id="DeleteAclRuleHitCount__p1974564614288">OK</p>
|
|
<pre class="screen" id="DeleteAclRuleHitCount__screen197452465286">{ }</pre>
|
|
<p id="DeleteAclRuleHitCount__p47451246192813"><strong id="DeleteAclRuleHitCount__b8745134612289">Status code: 400</strong></p>
|
|
<p id="DeleteAclRuleHitCount__p47451466288">Bad Request</p>
|
|
<pre class="screen" id="DeleteAclRuleHitCount__screen18745346172814">{
|
|
"error_code" : "CFW.00400006",
|
|
"error_msg" : "Error occurred when deleting the rule hit count."
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="DeleteAclRuleHitCount__section1885144622811"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="DeleteAclRuleHitCount__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="DeleteAclRuleHitCount__row1777515462283"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="DeleteAclRuleHitCount__p58859467288">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="DeleteAclRuleHitCount__p0885546192810">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="DeleteAclRuleHitCount__row107751846132815"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteAclRuleHitCount__p1488534622811">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteAclRuleHitCount__p48851246112814">OK</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteAclRuleHitCount__row14775104610282"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteAclRuleHitCount__p0885124614286">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteAclRuleHitCount__p8885124652812">Bad Request</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteAclRuleHitCount__row37751346102817"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteAclRuleHitCount__p488694619282">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteAclRuleHitCount__p13886346162812">Unauthorized</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteAclRuleHitCount__row13775114662811"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteAclRuleHitCount__p14886104662817">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteAclRuleHitCount__p888694612813">Forbidden</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteAclRuleHitCount__row207751446152810"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteAclRuleHitCount__p8886046172810">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteAclRuleHitCount__p488634619283">Not Found</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="DeleteAclRuleHitCount__row15775204662819"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="DeleteAclRuleHitCount__p1288634613288">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="DeleteAclRuleHitCount__p4886246132817">Internal Server Error</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="DeleteAclRuleHitCount__section1388617465284"><h4 class="sectiontitle">Error Codes</h4><p id="DeleteAclRuleHitCount__p12887946162819">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_300000002.html">ACL Rule Management</a></div>
|
|
</div>
|
|
</div>
|
|
|