Files
doc-exports/docs/wafd/api-ref/CreatePunishmentRules.html
qinweiwei 14cbe51752 wafd API 20260210 version
Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com>
Co-authored-by: qinweiwei <qinweiwei@huawei.com>
Co-committed-by: qinweiwei <qinweiwei@huawei.com>
2026-04-21 11:31:19 +00:00

310 lines
22 KiB
HTML

<a name="CreatePunishmentRules"></a><a name="CreatePunishmentRules"></a>
<h1 class="topictitle1">Creating a Known Attack Source Rule</h1>
<div id="body1708331107508"><div class="section" id="CreatePunishmentRules__topic1441000000"><h4 class="sectiontitle">Function</h4><p id="CreatePunishmentRules__topic1441000002">This API is used to create a known attack source rule.</p>
</div>
<div class="section" id="CreatePunishmentRules__atuogenerate_1"><h4 class="sectiontitle">URI</h4><p id="CreatePunishmentRules__topic1441000004">POST /v1/{project_id}/waf/policy/{policy_id}/punishment</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePunishmentRules__topic1441000005" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="CreatePunishmentRules__topic1441000013"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="CreatePunishmentRules__topic1441000015">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="CreatePunishmentRules__topic1441000017">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="CreatePunishmentRules__topic1441000019">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="CreatePunishmentRules__topic1441000021">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreatePunishmentRules__topic1441000023"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="CreatePunishmentRules__topic1441000025">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="CreatePunishmentRules__topic1441000027">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="CreatePunishmentRules__topic1441000029">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="CreatePunishmentRules__topic1441000031">project_id</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000032"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="CreatePunishmentRules__topic1441000034">policy_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="CreatePunishmentRules__topic1441000036">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="CreatePunishmentRules__topic1441000038">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="CreatePunishmentRules__topic1441000040">Policy ID. It can be obtained by calling the <strong id="CreatePunishmentRules__topic1441000041">ListPolicy</strong> API.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreatePunishmentRules__topic1441000042"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePunishmentRules__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="CreatePunishmentRules__topic1441000051"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="CreatePunishmentRules__topic1441000053">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="CreatePunishmentRules__topic1441000055">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="CreatePunishmentRules__topic1441000057">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="CreatePunishmentRules__topic1441000059">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreatePunishmentRules__topic1441000061"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreatePunishmentRules__topic1441000063">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreatePunishmentRules__topic1441000065">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreatePunishmentRules__topic1441000067">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreatePunishmentRules__topic1441000069">auth token</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000070"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreatePunishmentRules__topic1441000072">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreatePunishmentRules__topic1441000074">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreatePunishmentRules__topic1441000076">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreatePunishmentRules__topic1441000078">Content type.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePunishmentRules__request_CreatePunishmentRulesRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="CreatePunishmentRules__topic1441000086"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="CreatePunishmentRules__topic1441000088">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="CreatePunishmentRules__topic1441000090">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="CreatePunishmentRules__topic1441000092">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="CreatePunishmentRules__topic1441000094">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreatePunishmentRules__topic1441000096"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreatePunishmentRules__topic1441000098">category</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreatePunishmentRules__topic1441000100">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreatePunishmentRules__topic1441000102">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreatePunishmentRules__topic1441000104">Type of the known attack source rule.</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000105"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreatePunishmentRules__topic1441000107">block_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreatePunishmentRules__topic1441000109">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreatePunishmentRules__topic1441000111">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreatePunishmentRules__topic1441000113">Block duration, in seconds. If prefix <strong id="CreatePunishmentRules__topic1441000114">long</strong> is selected for the rule type, the value for <strong id="CreatePunishmentRules__topic1441000115">block_time</strong> ranges from <strong id="CreatePunishmentRules__topic1441000116">301</strong> to <strong id="CreatePunishmentRules__topic1441000117">1800</strong>. If prefix <strong id="CreatePunishmentRules__topic1441000118">short</strong> is selected for the rule type, the value for <strong id="CreatePunishmentRules__topic1441000119">block_time</strong> ranges from <strong id="CreatePunishmentRules__topic1441000120">0</strong> to <strong id="CreatePunishmentRules__topic1441000121">300</strong>.</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000122"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreatePunishmentRules__topic1441000124">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreatePunishmentRules__topic1441000126">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreatePunishmentRules__topic1441000128">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreatePunishmentRules__topic1441000130">Rule description</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreatePunishmentRules__topic1441000131"><h4 class="sectiontitle">Response Parameters</h4><p id="CreatePunishmentRules__topic1441000133"><strong id="CreatePunishmentRules__topic1441000134">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePunishmentRules__response_CreatePunishmentRulesResponseBody" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="CreatePunishmentRules__topic1441000141"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="CreatePunishmentRules__topic1441000143">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="CreatePunishmentRules__topic1441000145">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="CreatePunishmentRules__topic1441000147">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreatePunishmentRules__topic1441000149"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePunishmentRules__topic1441000151">id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePunishmentRules__topic1441000153">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePunishmentRules__topic1441000155">Rule ID</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000156"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePunishmentRules__topic1441000158">policyid</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePunishmentRules__topic1441000160">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePunishmentRules__topic1441000162">Policy ID</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000163"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePunishmentRules__topic1441000165">block_time</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePunishmentRules__topic1441000167">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePunishmentRules__topic1441000169">Block duration, in seconds.</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000170"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePunishmentRules__topic1441000172">category</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePunishmentRules__topic1441000174">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePunishmentRules__topic1441000176">Type of the known attack source rule.</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000177"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePunishmentRules__topic1441000179">description</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePunishmentRules__topic1441000181">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePunishmentRules__topic1441000183">Rule description</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000184"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePunishmentRules__topic1441000186">timestamp</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePunishmentRules__topic1441000188">Long</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePunishmentRules__topic1441000190">Timestamp when the rule was created.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="CreatePunishmentRules__topic1441000191"><strong id="CreatePunishmentRules__topic1441000192">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePunishmentRules__response_RestErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="CreatePunishmentRules__topic1441000199"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="CreatePunishmentRules__topic1441000201">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="CreatePunishmentRules__topic1441000203">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="CreatePunishmentRules__topic1441000205">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreatePunishmentRules__topic1441000207"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreatePunishmentRules__topic1441000209">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreatePunishmentRules__topic1441000211">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreatePunishmentRules__topic1441000213">Error code</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000214"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreatePunishmentRules__topic1441000216">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreatePunishmentRules__topic1441000218">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreatePunishmentRules__topic1441000220">Error message</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="CreatePunishmentRules__topic1441000221"><strong id="CreatePunishmentRules__topic1441000222">Status code: 401</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePunishmentRules__response_RestErrorResponse_1" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="CreatePunishmentRules__topic1441000229"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="CreatePunishmentRules__topic1441000231">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="CreatePunishmentRules__topic1441000233">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="CreatePunishmentRules__topic1441000235">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreatePunishmentRules__topic1441000237"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreatePunishmentRules__topic1441000239">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreatePunishmentRules__topic1441000241">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreatePunishmentRules__topic1441000243">Error code</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000244"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreatePunishmentRules__topic1441000246">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreatePunishmentRules__topic1441000248">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreatePunishmentRules__topic1441000250">Error message</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="CreatePunishmentRules__topic1441000251"><strong id="CreatePunishmentRules__topic1441000252">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePunishmentRules__response_RestErrorResponse_2" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="CreatePunishmentRules__topic1441000259"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.1"><p id="CreatePunishmentRules__topic1441000261">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.2"><p id="CreatePunishmentRules__topic1441000263">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.9.2.4.1.3"><p id="CreatePunishmentRules__topic1441000265">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreatePunishmentRules__topic1441000267"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="CreatePunishmentRules__topic1441000269">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="CreatePunishmentRules__topic1441000271">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="CreatePunishmentRules__topic1441000273">Error code</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000274"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="CreatePunishmentRules__topic1441000276">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="CreatePunishmentRules__topic1441000278">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="CreatePunishmentRules__topic1441000280">Error message</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreatePunishmentRules__topic1441000281"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="CreatePunishmentRules__topic1441000283">POST https://{Endpoint}/v1/{project_id}/waf/policy/{policy_id}/punishment?
{
"category" : "long_ip_block",
"block_time" : "1233",
"description" : "demo"
}</pre>
</div>
<div class="section" id="CreatePunishmentRules__topic1441000284"><h4 class="sectiontitle">Example Responses</h4><p id="CreatePunishmentRules__topic1441000286"><strong id="CreatePunishmentRules__topic1441000287">Status code: 200</strong></p>
<p id="CreatePunishmentRules__topic1441000288">Request succeeded.</p>
<pre class="screen" id="CreatePunishmentRules__topic1441000289">{
"block_time" : 1233,
"category" : "long_ip_block",
"description" : "demo",
"id" : "2c3afdcc982b429da4f72ee483aece3e",
"policyid" : "2fcbcb23ef0d48d99d24d7dcff00307d",
"timestamp" : 1668148186106
}</pre>
</div>
<div class="section" id="CreatePunishmentRules__topic1441000290"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePunishmentRules__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="CreatePunishmentRules__topic1441000296"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="CreatePunishmentRules__topic1441000298">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="CreatePunishmentRules__topic1441000300">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreatePunishmentRules__topic1441000302"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreatePunishmentRules__topic1441000304">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreatePunishmentRules__topic1441000306">Request succeeded.</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000307"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreatePunishmentRules__topic1441000309">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreatePunishmentRules__topic1441000311">Request failed.</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000312"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreatePunishmentRules__topic1441000314">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreatePunishmentRules__topic1441000316">The token does not have required permissions.</p>
</td>
</tr>
<tr id="CreatePunishmentRules__topic1441000317"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreatePunishmentRules__topic1441000319">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreatePunishmentRules__topic1441000321">Internal server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreatePunishmentRules__topic1441000322"><h4 class="sectiontitle">Error Codes</h4><p id="CreatePunishmentRules__topic1441000324">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>