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>
348 lines
23 KiB
HTML
348 lines
23 KiB
HTML
<a name="UpdatePrivacyRule"></a><a name="UpdatePrivacyRule"></a>
|
|
|
|
<h1 class="topictitle1">Updating the Data Masking Rule List</h1>
|
|
<div id="body1708331107508"><div class="section" id="UpdatePrivacyRule__topic1411000000"><h4 class="sectiontitle">Function</h4><p id="UpdatePrivacyRule__topic1411000002">This API is used to update the data masking rule list.</p>
|
|
</div>
|
|
<div class="section" id="UpdatePrivacyRule__atuogenerate_1"><h4 class="sectiontitle">URI</h4><p id="UpdatePrivacyRule__topic1411000004">PUT /v1/{project_id}/waf/policy/{policy_id}/privacy/{rule_id}</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePrivacyRule__topic1411000005" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="UpdatePrivacyRule__topic1411000013"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="UpdatePrivacyRule__topic1411000015">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="UpdatePrivacyRule__topic1411000017">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="UpdatePrivacyRule__topic1411000019">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="UpdatePrivacyRule__topic1411000021">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdatePrivacyRule__topic1411000023"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdatePrivacyRule__topic1411000025">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdatePrivacyRule__topic1411000027">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdatePrivacyRule__topic1411000029">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdatePrivacyRule__topic1411000031">Project ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000032"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdatePrivacyRule__topic1411000034">policy_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdatePrivacyRule__topic1411000036">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdatePrivacyRule__topic1411000038">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdatePrivacyRule__topic1411000040">Policy ID. It can be obtained by calling the <strong id="UpdatePrivacyRule__topic1411000041">ListPolicy</strong> API.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000042"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdatePrivacyRule__topic1411000044">rule_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdatePrivacyRule__topic1411000046">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdatePrivacyRule__topic1411000048">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdatePrivacyRule__topic1411000050">ID of the data masking rule. It can be obtained by calling the <strong id="UpdatePrivacyRule__topic1411000051">ListPrivacyRules</strong> API.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdatePrivacyRule__topic1411000052"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePrivacyRule__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="UpdatePrivacyRule__topic1411000061"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="UpdatePrivacyRule__topic1411000063">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="UpdatePrivacyRule__topic1411000065">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="UpdatePrivacyRule__topic1411000067">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="UpdatePrivacyRule__topic1411000069">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdatePrivacyRule__topic1411000071"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdatePrivacyRule__topic1411000073">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdatePrivacyRule__topic1411000075">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdatePrivacyRule__topic1411000077">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdatePrivacyRule__topic1411000079">auth token</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000080"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdatePrivacyRule__topic1411000082">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdatePrivacyRule__topic1411000084">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdatePrivacyRule__topic1411000086">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdatePrivacyRule__topic1411000088">Content type</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePrivacyRule__request_UpdatePrivacyRuleRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="UpdatePrivacyRule__topic1411000096"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="UpdatePrivacyRule__topic1411000098">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="UpdatePrivacyRule__topic1411000100">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="UpdatePrivacyRule__topic1411000102">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="UpdatePrivacyRule__topic1411000104">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdatePrivacyRule__topic1411000106"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdatePrivacyRule__topic1411000108">url</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdatePrivacyRule__topic1411000110">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdatePrivacyRule__topic1411000112">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdatePrivacyRule__topic1411000114">URL protected by the data masking rule. The value must be in the standard URL format, for example, /admin.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000115"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdatePrivacyRule__topic1411000117">category</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdatePrivacyRule__topic1411000119">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdatePrivacyRule__topic1411000121">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdatePrivacyRule__topic1411000123">Masked field</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000124"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdatePrivacyRule__topic1411000126">index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdatePrivacyRule__topic1411000128">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdatePrivacyRule__topic1411000130">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdatePrivacyRule__topic1411000132">Name of the masked field</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000133"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdatePrivacyRule__topic1411000135">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdatePrivacyRule__topic1411000137">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdatePrivacyRule__topic1411000139">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdatePrivacyRule__topic1411000141">Rule description</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdatePrivacyRule__topic1411000142"><h4 class="sectiontitle">Response Parameters</h4><p id="UpdatePrivacyRule__topic1411000144"><strong id="UpdatePrivacyRule__topic1411000145">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePrivacyRule__response_UpdatePrivacyRuleResponseBody" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="UpdatePrivacyRule__topic1411000152"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="UpdatePrivacyRule__topic1411000154">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="UpdatePrivacyRule__topic1411000156">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="UpdatePrivacyRule__topic1411000158">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdatePrivacyRule__topic1411000160"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000162">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000164">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000166">Rule ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000167"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000169">policyid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000171">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000173">Policy ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000174"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000176">timestamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000178">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000180">Time the rule is created. The value is a 13-digit timestamp in ms.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000181"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000183">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000185">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000187">Rule status. The value can be:</p>
|
|
<ul id="UpdatePrivacyRule__topic1411000188"><li id="UpdatePrivacyRule__topic1411000189"><p id="UpdatePrivacyRule__topic1411000190"><a name="UpdatePrivacyRule__topic1411000189"></a><a name="topic1411000189"></a>0: The rule is disabled.</p>
|
|
</li><li id="UpdatePrivacyRule__topic1411000191"><p id="UpdatePrivacyRule__topic1411000192"><a name="UpdatePrivacyRule__topic1411000191"></a><a name="topic1411000191"></a>1: The rule is enabled.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000193"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000195">url</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000197">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000199">URL protected by the data masking rule</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000200"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000202">category</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000204">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000206">Masked field</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000207"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000209">index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000211">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000213">Name of the masked field</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000214"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000216">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000218">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000220">Rule description</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="UpdatePrivacyRule__topic1411000221"><strong id="UpdatePrivacyRule__topic1411000222">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePrivacyRule__response_RestErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="UpdatePrivacyRule__topic1411000229"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="UpdatePrivacyRule__topic1411000231">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="UpdatePrivacyRule__topic1411000233">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="UpdatePrivacyRule__topic1411000235">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdatePrivacyRule__topic1411000237"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000239">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000241">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000243">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000244"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000246">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000248">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000250">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="UpdatePrivacyRule__topic1411000251"><strong id="UpdatePrivacyRule__topic1411000252">Status code: 401</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePrivacyRule__response_RestErrorResponse_1" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="UpdatePrivacyRule__topic1411000259"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="UpdatePrivacyRule__topic1411000261">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="UpdatePrivacyRule__topic1411000263">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="UpdatePrivacyRule__topic1411000265">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdatePrivacyRule__topic1411000267"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000269">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000271">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000273">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000274"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000276">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000278">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000280">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="UpdatePrivacyRule__topic1411000281"><strong id="UpdatePrivacyRule__topic1411000282">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePrivacyRule__response_RestErrorResponse_2" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="UpdatePrivacyRule__topic1411000289"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.1"><p id="UpdatePrivacyRule__topic1411000291">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.2"><p id="UpdatePrivacyRule__topic1411000293">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.9.2.4.1.3"><p id="UpdatePrivacyRule__topic1411000295">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdatePrivacyRule__topic1411000297"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000299">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000301">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000303">Error code</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000304"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="UpdatePrivacyRule__topic1411000306">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="UpdatePrivacyRule__topic1411000308">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="UpdatePrivacyRule__topic1411000310">Error message</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdatePrivacyRule__topic1411000311"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="UpdatePrivacyRule__topic1411000313">PUT https://{Endpoint}/v1/{project_id}/waf/policy/{policy_id}/privacy/{rule_id}?enterprise_project_id=0
|
|
|
|
{
|
|
"url" : "/login",
|
|
"category" : "header",
|
|
"index" : "token",
|
|
"description" : ""
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="UpdatePrivacyRule__topic1411000314"><h4 class="sectiontitle">Example Responses</h4><p id="UpdatePrivacyRule__topic1411000316"><strong id="UpdatePrivacyRule__topic1411000317">Status code: 200</strong></p>
|
|
<p id="UpdatePrivacyRule__topic1411000318">Request succeeded.</p>
|
|
<pre class="screen" id="UpdatePrivacyRule__topic1411000319">{
|
|
"category" : "header",
|
|
"description" : "",
|
|
"id" : "41a5674e03a1470a90ac4761ec4657b4",
|
|
"index" : "token",
|
|
"policyid" : "1f016cde588646aca3fb19f277c44d03",
|
|
"status" : 1,
|
|
"timestamp" : 1656504425319,
|
|
"url" : "/login"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="UpdatePrivacyRule__topic1411000320"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePrivacyRule__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="UpdatePrivacyRule__topic1411000326"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="UpdatePrivacyRule__topic1411000328">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="UpdatePrivacyRule__topic1411000330">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdatePrivacyRule__topic1411000332"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdatePrivacyRule__topic1411000334">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdatePrivacyRule__topic1411000336">Request succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000337"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdatePrivacyRule__topic1411000339">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdatePrivacyRule__topic1411000341">Request failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000342"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdatePrivacyRule__topic1411000344">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdatePrivacyRule__topic1411000346">The token does not have required permissions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdatePrivacyRule__topic1411000347"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdatePrivacyRule__topic1411000349">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdatePrivacyRule__topic1411000351">Internal server error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdatePrivacyRule__topic1411000352"><h4 class="sectiontitle">Error Codes</h4><p id="UpdatePrivacyRule__topic1411000354">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>
|
|
|