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>
339 lines
23 KiB
HTML
339 lines
23 KiB
HTML
<a name="CreatePrivacyRules"></a><a name="CreatePrivacyRules"></a>
|
|
|
|
<h1 class="topictitle1">Creating a Data Masking Rule</h1>
|
|
<div id="body1708331107508"><div class="section" id="CreatePrivacyRules__topic1391000000"><h4 class="sectiontitle">Function</h4><p id="CreatePrivacyRules__topic1391000002">This API is used to create a data masking rule.</p>
|
|
</div>
|
|
<div class="section" id="CreatePrivacyRules__atuogenerate_1"><h4 class="sectiontitle">URI</h4><p id="CreatePrivacyRules__topic1391000004">POST /v1/{project_id}/waf/policy/{policy_id}/privacy</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePrivacyRules__topic1391000005" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="CreatePrivacyRules__topic1391000013"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="CreatePrivacyRules__topic1391000015">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="CreatePrivacyRules__topic1391000017">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="CreatePrivacyRules__topic1391000019">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="CreatePrivacyRules__topic1391000021">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreatePrivacyRules__topic1391000023"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="CreatePrivacyRules__topic1391000025">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="CreatePrivacyRules__topic1391000027">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="CreatePrivacyRules__topic1391000029">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="CreatePrivacyRules__topic1391000031">Project ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000032"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="CreatePrivacyRules__topic1391000034">policy_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="CreatePrivacyRules__topic1391000036">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="CreatePrivacyRules__topic1391000038">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="CreatePrivacyRules__topic1391000040">Policy ID. It can be obtained by calling the <strong id="CreatePrivacyRules__topic1391000041">ListPolicy</strong> API.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreatePrivacyRules__topic1391000042"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePrivacyRules__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="CreatePrivacyRules__topic1391000051"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="CreatePrivacyRules__topic1391000053">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="CreatePrivacyRules__topic1391000055">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="CreatePrivacyRules__topic1391000057">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="CreatePrivacyRules__topic1391000059">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreatePrivacyRules__topic1391000061"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreatePrivacyRules__topic1391000063">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreatePrivacyRules__topic1391000065">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreatePrivacyRules__topic1391000067">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreatePrivacyRules__topic1391000069">User token</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000070"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreatePrivacyRules__topic1391000072">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreatePrivacyRules__topic1391000074">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreatePrivacyRules__topic1391000076">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreatePrivacyRules__topic1391000078">Content type</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePrivacyRules__request_CreatePrivacyRuleRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="CreatePrivacyRules__topic1391000086"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="CreatePrivacyRules__topic1391000088">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="CreatePrivacyRules__topic1391000090">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="CreatePrivacyRules__topic1391000092">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="CreatePrivacyRules__topic1391000094">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreatePrivacyRules__topic1391000096"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreatePrivacyRules__topic1391000098">url</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreatePrivacyRules__topic1391000100">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreatePrivacyRules__topic1391000102">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreatePrivacyRules__topic1391000104">URL protected by the data masking rule. The value must be in the standard URL format, for example, /admin.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000105"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreatePrivacyRules__topic1391000107">category</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreatePrivacyRules__topic1391000109">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreatePrivacyRules__topic1391000111">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreatePrivacyRules__topic1391000113">Masked field</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreatePrivacyRules__topic1391000116">index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreatePrivacyRules__topic1391000118">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreatePrivacyRules__topic1391000120">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreatePrivacyRules__topic1391000122">Name of the masked field</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000123"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreatePrivacyRules__topic1391000125">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreatePrivacyRules__topic1391000127">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreatePrivacyRules__topic1391000129">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreatePrivacyRules__topic1391000131">Rule description</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreatePrivacyRules__topic1391000132"><h4 class="sectiontitle">Response Parameters</h4><p id="CreatePrivacyRules__topic1391000134"><strong id="CreatePrivacyRules__topic1391000135">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePrivacyRules__response_CreatePrivacyResponseBody" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="CreatePrivacyRules__topic1391000142"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="CreatePrivacyRules__topic1391000144">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="CreatePrivacyRules__topic1391000146">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="CreatePrivacyRules__topic1391000148">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreatePrivacyRules__topic1391000150"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000152">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000154">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000156">Rule ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000157"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000159">policyid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000161">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000163">Policy ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000164"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000166">timestamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000168">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000170">Time the rule is created. The value is a 13-digit timestamp in ms.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000171"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000173">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000175">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000177">Rule status. The value can be:</p>
|
|
<ul id="CreatePrivacyRules__topic1391000178"><li id="CreatePrivacyRules__topic1391000179"><p id="CreatePrivacyRules__topic1391000180"><a name="CreatePrivacyRules__topic1391000179"></a><a name="topic1391000179"></a>0: The rule is disabled.</p>
|
|
</li><li id="CreatePrivacyRules__topic1391000181"><p id="CreatePrivacyRules__topic1391000182"><a name="CreatePrivacyRules__topic1391000181"></a><a name="topic1391000181"></a>1: The rule is enabled.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000183"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000185">url</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000187">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000189">URL protected by the data masking rule</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000190"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000192">category</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000194">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000196">Masked field</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000197"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000199">index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000201">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000203">Name of the masked field</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000204"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000206">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000208">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000210">Rule description</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreatePrivacyRules__topic1391000211"><strong id="CreatePrivacyRules__topic1391000212">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePrivacyRules__response_RestErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="CreatePrivacyRules__topic1391000219"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="CreatePrivacyRules__topic1391000221">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="CreatePrivacyRules__topic1391000223">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="CreatePrivacyRules__topic1391000225">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreatePrivacyRules__topic1391000227"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000229">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000231">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000233">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000234"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000236">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000238">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000240">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreatePrivacyRules__topic1391000241"><strong id="CreatePrivacyRules__topic1391000242">Status code: 401</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePrivacyRules__response_RestErrorResponse_1" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="CreatePrivacyRules__topic1391000249"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="CreatePrivacyRules__topic1391000251">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="CreatePrivacyRules__topic1391000253">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="CreatePrivacyRules__topic1391000255">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreatePrivacyRules__topic1391000257"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000259">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000261">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000263">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000264"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000266">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000268">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000270">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreatePrivacyRules__topic1391000271"><strong id="CreatePrivacyRules__topic1391000272">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePrivacyRules__response_RestErrorResponse_2" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="CreatePrivacyRules__topic1391000279"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.1"><p id="CreatePrivacyRules__topic1391000281">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.2"><p id="CreatePrivacyRules__topic1391000283">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.9.2.4.1.3"><p id="CreatePrivacyRules__topic1391000285">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreatePrivacyRules__topic1391000287"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000289">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000291">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000293">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000294"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="CreatePrivacyRules__topic1391000296">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="CreatePrivacyRules__topic1391000298">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="CreatePrivacyRules__topic1391000300">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreatePrivacyRules__topic1391000301"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="CreatePrivacyRules__topic1391000303">POST https://{Endpoint}/v1/{project_id}/waf/policy/{policy_id}/privacy?
|
|
|
|
{
|
|
"url" : "/login",
|
|
"category" : "params",
|
|
"index" : "password",
|
|
"description" : ""
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="CreatePrivacyRules__topic1391000304"><h4 class="sectiontitle">Example Responses</h4><p id="CreatePrivacyRules__topic1391000306"><strong id="CreatePrivacyRules__topic1391000307">Status code: 200</strong></p>
|
|
<p id="CreatePrivacyRules__topic1391000308">Request succeeded.</p>
|
|
<pre class="screen" id="CreatePrivacyRules__topic1391000309">{
|
|
"category" : "params",
|
|
"description" : "",
|
|
"id" : "41a5674e03a1470a90ac4761ec4657b4",
|
|
"index" : "password",
|
|
"policyid" : "1f016cde588646aca3fb19f277c44d03",
|
|
"status" : 1,
|
|
"timestamp" : 1656504425319,
|
|
"url" : "/login"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="CreatePrivacyRules__topic1391000310"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreatePrivacyRules__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="CreatePrivacyRules__topic1391000316"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="CreatePrivacyRules__topic1391000318">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="CreatePrivacyRules__topic1391000320">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreatePrivacyRules__topic1391000322"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreatePrivacyRules__topic1391000324">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreatePrivacyRules__topic1391000326">Request succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000327"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreatePrivacyRules__topic1391000329">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreatePrivacyRules__topic1391000331">Request failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000332"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreatePrivacyRules__topic1391000334">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreatePrivacyRules__topic1391000336">The token does not have required permissions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreatePrivacyRules__topic1391000337"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreatePrivacyRules__topic1391000339">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreatePrivacyRules__topic1391000341">Internal server error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreatePrivacyRules__topic1391000342"><h4 class="sectiontitle">Error Codes</h4><p id="CreatePrivacyRules__topic1391000344">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>
|
|
|