Files
doc-exports/docs/wafd/api-ref/ListPrivacyRules.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

343 lines
23 KiB
HTML

<a name="ListPrivacyRules"></a><a name="ListPrivacyRules"></a>
<h1 class="topictitle1">Querying the Data Masking Rule List</h1>
<div id="body1708331107508"><div class="section" id="ListPrivacyRules__topic1381000000"><h4 class="sectiontitle">Function</h4><p id="ListPrivacyRules__topic1381000002">This API is used to query the data masking rule list.</p>
</div>
<div class="section" id="ListPrivacyRules__atuogenerate_1"><h4 class="sectiontitle">URI</h4><p id="ListPrivacyRules__topic1381000004">GET /v1/{project_id}/waf/policy/{policy_id}/privacy</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPrivacyRules__topic1381000005" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="ListPrivacyRules__topic1381000013"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="ListPrivacyRules__topic1381000015">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="ListPrivacyRules__topic1381000017">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="ListPrivacyRules__topic1381000019">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="ListPrivacyRules__topic1381000021">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ListPrivacyRules__topic1381000023"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="ListPrivacyRules__topic1381000025">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="ListPrivacyRules__topic1381000027">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="ListPrivacyRules__topic1381000029">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="ListPrivacyRules__topic1381000031">Project ID</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000032"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="ListPrivacyRules__topic1381000034">policy_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="ListPrivacyRules__topic1381000036">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="ListPrivacyRules__topic1381000038">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="ListPrivacyRules__topic1381000040">Policy ID. It can be obtained by calling the <strong id="ListPrivacyRules__topic1381000041">ListPolicy</strong> API.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPrivacyRules__topic1381000042" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="ListPrivacyRules__topic1381000050"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="ListPrivacyRules__topic1381000052">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="ListPrivacyRules__topic1381000054">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="ListPrivacyRules__topic1381000056">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="ListPrivacyRules__topic1381000058">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ListPrivacyRules__topic1381000060"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="ListPrivacyRules__topic1381000062">page</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="ListPrivacyRules__topic1381000064">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="ListPrivacyRules__topic1381000066">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="ListPrivacyRules__topic1381000068">Page</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000069"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="ListPrivacyRules__topic1381000071">pagesize</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="ListPrivacyRules__topic1381000073">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="ListPrivacyRules__topic1381000075">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="ListPrivacyRules__topic1381000077">Number of records on each page. The maximum value is 2147483647.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ListPrivacyRules__topic1381000078"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPrivacyRules__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request header parameters</caption><thead align="left"><tr id="ListPrivacyRules__topic1381000087"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="ListPrivacyRules__topic1381000089">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="ListPrivacyRules__topic1381000091">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="ListPrivacyRules__topic1381000093">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="ListPrivacyRules__topic1381000095">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ListPrivacyRules__topic1381000097"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="ListPrivacyRules__topic1381000099">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="ListPrivacyRules__topic1381000101">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="ListPrivacyRules__topic1381000103">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="ListPrivacyRules__topic1381000105">User token</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000106"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="ListPrivacyRules__topic1381000108">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="ListPrivacyRules__topic1381000110">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="ListPrivacyRules__topic1381000112">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="ListPrivacyRules__topic1381000114">Content type</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ListPrivacyRules__topic1381000115"><h4 class="sectiontitle">Response Parameters</h4><p id="ListPrivacyRules__topic1381000117"><strong id="ListPrivacyRules__topic1381000118">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPrivacyRules__response_ListPrivacyRulesResponseBody" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="ListPrivacyRules__topic1381000125"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="ListPrivacyRules__topic1381000127">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="ListPrivacyRules__topic1381000129">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="ListPrivacyRules__topic1381000131">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ListPrivacyRules__topic1381000133"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ListPrivacyRules__topic1381000135">total</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ListPrivacyRules__topic1381000137">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ListPrivacyRules__topic1381000139">Number of rules</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000140"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ListPrivacyRules__topic1381000142">items</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ListPrivacyRules__topic1381000144">Array of <a href="#ListPrivacyRules__response_PrivacyResponseBody">PrivacyResponseBody</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ListPrivacyRules__topic1381000147">Rules</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ListPrivacyRules__response_PrivacyResponseBody"></a><a name="response_PrivacyResponseBody"></a><table cellpadding="4" cellspacing="0" summary="" id="ListPrivacyRules__response_PrivacyResponseBody" frame="border" border="1" rules="all"><caption><b>Table 5 </b>PrivacyResponseBody</caption><thead align="left"><tr id="ListPrivacyRules__topic1381000154"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.1"><p id="ListPrivacyRules__topic1381000156">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.2"><p id="ListPrivacyRules__topic1381000158">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.4.2.4.1.3"><p id="ListPrivacyRules__topic1381000160">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ListPrivacyRules__topic1381000162"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPrivacyRules__topic1381000164">id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPrivacyRules__topic1381000166">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPrivacyRules__topic1381000168">Rule ID</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000169"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPrivacyRules__topic1381000171">policyid</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPrivacyRules__topic1381000173">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPrivacyRules__topic1381000175">Policy ID</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000176"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPrivacyRules__topic1381000178">timestamp</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPrivacyRules__topic1381000180">Long</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPrivacyRules__topic1381000182">Time the rule is created. The value is a 13-digit timestamp in ms.</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000183"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPrivacyRules__topic1381000185">status</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPrivacyRules__topic1381000187">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPrivacyRules__topic1381000189">Rule status. The value can be:</p>
<ul id="ListPrivacyRules__topic1381000190"><li id="ListPrivacyRules__topic1381000191"><p id="ListPrivacyRules__topic1381000192"><a name="ListPrivacyRules__topic1381000191"></a><a name="topic1381000191"></a>0: The rule is disabled.</p>
</li><li id="ListPrivacyRules__topic1381000193"><p id="ListPrivacyRules__topic1381000194"><a name="ListPrivacyRules__topic1381000193"></a><a name="topic1381000193"></a>1: The rule is enabled.</p>
</li></ul>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000195"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPrivacyRules__topic1381000197">url</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPrivacyRules__topic1381000199">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPrivacyRules__topic1381000201">URL protected by the data masking rule</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000202"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPrivacyRules__topic1381000204">category</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPrivacyRules__topic1381000206">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPrivacyRules__topic1381000208">Masked field</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000209"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPrivacyRules__topic1381000211">index</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPrivacyRules__topic1381000213">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPrivacyRules__topic1381000215">Name of the masked field</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000216"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListPrivacyRules__topic1381000218">description</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListPrivacyRules__topic1381000220">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListPrivacyRules__topic1381000222">Rule description</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="ListPrivacyRules__topic1381000223"><strong id="ListPrivacyRules__topic1381000224">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPrivacyRules__response_RestErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="ListPrivacyRules__topic1381000231"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.1"><p id="ListPrivacyRules__topic1381000233">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.2"><p id="ListPrivacyRules__topic1381000235">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.6.2.4.1.3"><p id="ListPrivacyRules__topic1381000237">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ListPrivacyRules__topic1381000239"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="ListPrivacyRules__topic1381000241">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="ListPrivacyRules__topic1381000243">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="ListPrivacyRules__topic1381000245">Error code</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000246"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="ListPrivacyRules__topic1381000248">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="ListPrivacyRules__topic1381000250">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="ListPrivacyRules__topic1381000252">Error message</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="ListPrivacyRules__topic1381000253"><strong id="ListPrivacyRules__topic1381000254">Status code: 401</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPrivacyRules__response_RestErrorResponse_1" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="ListPrivacyRules__topic1381000261"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.1"><p id="ListPrivacyRules__topic1381000263">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.2"><p id="ListPrivacyRules__topic1381000265">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.8.2.4.1.3"><p id="ListPrivacyRules__topic1381000267">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ListPrivacyRules__topic1381000269"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="ListPrivacyRules__topic1381000271">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="ListPrivacyRules__topic1381000273">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="ListPrivacyRules__topic1381000275">Error code</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000276"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="ListPrivacyRules__topic1381000278">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="ListPrivacyRules__topic1381000280">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="ListPrivacyRules__topic1381000282">Error message</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="ListPrivacyRules__topic1381000283"><strong id="ListPrivacyRules__topic1381000284">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPrivacyRules__response_RestErrorResponse_2" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="ListPrivacyRules__topic1381000291"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.10.2.4.1.1"><p id="ListPrivacyRules__topic1381000293">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.10.2.4.1.2"><p id="ListPrivacyRules__topic1381000295">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.10.2.4.1.3"><p id="ListPrivacyRules__topic1381000297">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ListPrivacyRules__topic1381000299"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.1 "><p id="ListPrivacyRules__topic1381000301">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.2 "><p id="ListPrivacyRules__topic1381000303">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.10.2.4.1.3 "><p id="ListPrivacyRules__topic1381000305">Error code</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000306"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.1 "><p id="ListPrivacyRules__topic1381000308">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.2 "><p id="ListPrivacyRules__topic1381000310">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.10.2.4.1.3 "><p id="ListPrivacyRules__topic1381000312">Error message</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ListPrivacyRules__topic1381000313"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="ListPrivacyRules__topic1381000315">GET https://{Endpoint}/v1/{project_id}/waf/policy/{policy_id}/privacy?enterprise_project_id=0</pre>
</div>
<div class="section" id="ListPrivacyRules__topic1381000316"><h4 class="sectiontitle">Example Responses</h4><p id="ListPrivacyRules__topic1381000318"><strong id="ListPrivacyRules__topic1381000319">Status code: 200</strong></p>
<p id="ListPrivacyRules__topic1381000320">Request succeeded.</p>
<pre class="screen" id="ListPrivacyRules__topic1381000321">{
"total" : 1,
"items" : [ {
"category" : "params",
"description" : "",
"id" : "41a5674e03a1470a90ac4761ec4657b4",
"index" : "password",
"policyid" : "1f016cde588646aca3fb19f277c44d03",
"status" : 1,
"timestamp" : 1656504425319,
"url" : "/login"
} ]
}</pre>
</div>
<div class="section" id="ListPrivacyRules__topic1381000322"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListPrivacyRules__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="ListPrivacyRules__topic1381000328"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="ListPrivacyRules__topic1381000330">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="ListPrivacyRules__topic1381000332">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ListPrivacyRules__topic1381000334"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListPrivacyRules__topic1381000336">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListPrivacyRules__topic1381000338">Request succeeded.</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000339"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListPrivacyRules__topic1381000341">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListPrivacyRules__topic1381000343">Request failed.</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000344"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListPrivacyRules__topic1381000346">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListPrivacyRules__topic1381000348">The token does not have required permissions.</p>
</td>
</tr>
<tr id="ListPrivacyRules__topic1381000349"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListPrivacyRules__topic1381000351">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListPrivacyRules__topic1381000353">Internal server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ListPrivacyRules__topic1381000354"><h4 class="sectiontitle">Error Codes</h4><p id="ListPrivacyRules__topic1381000356">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>