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>
321 lines
22 KiB
HTML
321 lines
22 KiB
HTML
<a name="CreateAntitamperRule"></a><a name="CreateAntitamperRule"></a>
|
|
|
|
<h1 class="topictitle1">Creating a Web Tamper Protection Rule</h1>
|
|
<div id="body1708331107508"><div class="section" id="CreateAntitamperRule__topic1491000000"><h4 class="sectiontitle">Function</h4><p id="CreateAntitamperRule__topic1491000002">This API is used to create a web tamper protection rule.</p>
|
|
</div>
|
|
<div class="section" id="CreateAntitamperRule__atuogenerate_1"><h4 class="sectiontitle">URI</h4><p id="CreateAntitamperRule__topic1491000004">POST /v1/{project_id}/waf/policy/{policy_id}/antitamper</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAntitamperRule__topic1491000005" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="CreateAntitamperRule__topic1491000013"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="CreateAntitamperRule__topic1491000015">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="CreateAntitamperRule__topic1491000017">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="CreateAntitamperRule__topic1491000019">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="CreateAntitamperRule__topic1491000021">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAntitamperRule__topic1491000023"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="CreateAntitamperRule__topic1491000025">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="CreateAntitamperRule__topic1491000027">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="CreateAntitamperRule__topic1491000029">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="CreateAntitamperRule__topic1491000031">Project ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000032"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="CreateAntitamperRule__topic1491000034">policy_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="CreateAntitamperRule__topic1491000036">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="CreateAntitamperRule__topic1491000038">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="CreateAntitamperRule__topic1491000040">Policy ID. It can be obtained by calling the <strong id="CreateAntitamperRule__topic1491000041">ListPolicy</strong> API.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateAntitamperRule__topic1491000042"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAntitamperRule__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="CreateAntitamperRule__topic1491000051"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="CreateAntitamperRule__topic1491000053">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="CreateAntitamperRule__topic1491000055">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="CreateAntitamperRule__topic1491000057">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="CreateAntitamperRule__topic1491000059">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAntitamperRule__topic1491000061"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateAntitamperRule__topic1491000063">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateAntitamperRule__topic1491000065">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateAntitamperRule__topic1491000067">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateAntitamperRule__topic1491000069">User token</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000070"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateAntitamperRule__topic1491000072">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateAntitamperRule__topic1491000074">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateAntitamperRule__topic1491000076">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateAntitamperRule__topic1491000078">Content type</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAntitamperRule__request_CreateAntiTamperRuleRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="CreateAntitamperRule__topic1491000086"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="CreateAntitamperRule__topic1491000088">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="CreateAntitamperRule__topic1491000090">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="CreateAntitamperRule__topic1491000092">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="CreateAntitamperRule__topic1491000094">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAntitamperRule__topic1491000096"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateAntitamperRule__topic1491000098">hostname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateAntitamperRule__topic1491000100">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateAntitamperRule__topic1491000102">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateAntitamperRule__topic1491000104">Protected website. It can be obtained by calling the ListHost API in cloud mode (the value of the hostname field in the response body).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000105"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateAntitamperRule__topic1491000107">url</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateAntitamperRule__topic1491000109">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateAntitamperRule__topic1491000111">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateAntitamperRule__topic1491000113">URL protected by the web tamper protection rule. The value must be in the standard URL format, for example, /admin</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateAntitamperRule__topic1491000116">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateAntitamperRule__topic1491000118">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateAntitamperRule__topic1491000120">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateAntitamperRule__topic1491000122">Rule description</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateAntitamperRule__topic1491000123"><h4 class="sectiontitle">Response Parameters</h4><p id="CreateAntitamperRule__topic1491000125"><strong id="CreateAntitamperRule__topic1491000126">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAntitamperRule__response_CreateAntiTamperRuleResponseBody" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="CreateAntitamperRule__topic1491000133"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="CreateAntitamperRule__topic1491000135">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="CreateAntitamperRule__topic1491000137">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="CreateAntitamperRule__topic1491000139">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAntitamperRule__topic1491000141"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateAntitamperRule__topic1491000143">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateAntitamperRule__topic1491000145">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateAntitamperRule__topic1491000147">Rule ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000148"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateAntitamperRule__topic1491000150">policyid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateAntitamperRule__topic1491000152">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateAntitamperRule__topic1491000154">Policy ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000155"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateAntitamperRule__topic1491000157">timestamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateAntitamperRule__topic1491000159">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateAntitamperRule__topic1491000161">Timestamp</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000162"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateAntitamperRule__topic1491000164">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateAntitamperRule__topic1491000166">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateAntitamperRule__topic1491000168">Rule description.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000169"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateAntitamperRule__topic1491000171">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateAntitamperRule__topic1491000173">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateAntitamperRule__topic1491000175">Rule status. The value can be:</p>
|
|
<ul id="CreateAntitamperRule__topic1491000176"><li id="CreateAntitamperRule__topic1491000177"><p id="CreateAntitamperRule__topic1491000178"><a name="CreateAntitamperRule__topic1491000177"></a><a name="topic1491000177"></a>0: The rule is disabled.</p>
|
|
</li><li id="CreateAntitamperRule__topic1491000179"><p id="CreateAntitamperRule__topic1491000180"><a name="CreateAntitamperRule__topic1491000179"></a><a name="topic1491000179"></a>1: The rule is enabled.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000181"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateAntitamperRule__topic1491000183">hostname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateAntitamperRule__topic1491000185">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateAntitamperRule__topic1491000187">The domain name of the website protected with the web tamper protection rule. The domain name is in the format of xxx.xxx.com, such as www.example.com.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000188"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateAntitamperRule__topic1491000190">url</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateAntitamperRule__topic1491000192">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateAntitamperRule__topic1491000194">URL for the web tamper protection rule.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateAntitamperRule__topic1491000195"><strong id="CreateAntitamperRule__topic1491000196">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAntitamperRule__response_RestErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="CreateAntitamperRule__topic1491000203"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="CreateAntitamperRule__topic1491000205">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="CreateAntitamperRule__topic1491000207">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="CreateAntitamperRule__topic1491000209">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAntitamperRule__topic1491000211"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreateAntitamperRule__topic1491000213">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreateAntitamperRule__topic1491000215">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreateAntitamperRule__topic1491000217">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000218"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreateAntitamperRule__topic1491000220">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreateAntitamperRule__topic1491000222">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreateAntitamperRule__topic1491000224">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateAntitamperRule__topic1491000225"><strong id="CreateAntitamperRule__topic1491000226">Status code: 401</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAntitamperRule__response_RestErrorResponse_1" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="CreateAntitamperRule__topic1491000233"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="CreateAntitamperRule__topic1491000235">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="CreateAntitamperRule__topic1491000237">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="CreateAntitamperRule__topic1491000239">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAntitamperRule__topic1491000241"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreateAntitamperRule__topic1491000243">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreateAntitamperRule__topic1491000245">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreateAntitamperRule__topic1491000247">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000248"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreateAntitamperRule__topic1491000250">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreateAntitamperRule__topic1491000252">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreateAntitamperRule__topic1491000254">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateAntitamperRule__topic1491000255"><strong id="CreateAntitamperRule__topic1491000256">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAntitamperRule__response_RestErrorResponse_2" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="CreateAntitamperRule__topic1491000263"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.1"><p id="CreateAntitamperRule__topic1491000265">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.2"><p id="CreateAntitamperRule__topic1491000267">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.9.2.4.1.3"><p id="CreateAntitamperRule__topic1491000269">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAntitamperRule__topic1491000271"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="CreateAntitamperRule__topic1491000273">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="CreateAntitamperRule__topic1491000275">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="CreateAntitamperRule__topic1491000277">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000278"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="CreateAntitamperRule__topic1491000280">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="CreateAntitamperRule__topic1491000282">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="CreateAntitamperRule__topic1491000284">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateAntitamperRule__topic1491000285"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="CreateAntitamperRule__topic1491000287">POST https://{Endpoint}/v1/{project_id}/waf/policy/{policy_id}/antitamper?enterprise_project_id=0
|
|
|
|
{
|
|
"hostname" : "www.domain.com",
|
|
"url" : "/login",
|
|
"description" : ""
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="CreateAntitamperRule__topic1491000288"><h4 class="sectiontitle">Example Responses</h4><p id="CreateAntitamperRule__topic1491000290"><strong id="CreateAntitamperRule__topic1491000291">Status code: 200</strong></p>
|
|
<p id="CreateAntitamperRule__topic1491000292">Request succeeded.</p>
|
|
<pre class="screen" id="CreateAntitamperRule__topic1491000293">{
|
|
"description" : "",
|
|
"hostname" : "www.domain.com",
|
|
"id" : "0f59185b76c143f884d21cd0d88e6fa8",
|
|
"policyid" : "1f016cde588646aca3fb19f277c44d03",
|
|
"status" : 1,
|
|
"timestamp" : 1656506256928,
|
|
"url" : "/login"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="CreateAntitamperRule__topic1491000294"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAntitamperRule__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="CreateAntitamperRule__topic1491000300"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="CreateAntitamperRule__topic1491000302">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="CreateAntitamperRule__topic1491000304">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAntitamperRule__topic1491000306"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateAntitamperRule__topic1491000308">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateAntitamperRule__topic1491000310">Request succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000311"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateAntitamperRule__topic1491000313">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateAntitamperRule__topic1491000315">Request failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000316"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateAntitamperRule__topic1491000318">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateAntitamperRule__topic1491000320">The token does not have required permissions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAntitamperRule__topic1491000321"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateAntitamperRule__topic1491000323">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateAntitamperRule__topic1491000325">Internal server error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateAntitamperRule__topic1491000326"><h4 class="sectiontitle">Error Codes</h4><p id="CreateAntitamperRule__topic1491000328">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>
|
|
|