forked from docs/doc-exports
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
102 lines
9.1 KiB
HTML
102 lines
9.1 KiB
HTML
<a name="rds_06_0101"></a><a name="rds_06_0101"></a>
|
|
|
|
<h1 class="topictitle1">Showing Original Logs</h1>
|
|
<div id="body0000002474665776"><div class="section" id="rds_06_0101__section61759636"><h4 class="sectiontitle">Function</h4><p id="rds_06_0101__p17963411102418">This API is used to enable or disable Show Original Log.</p>
|
|
<ul id="rds_06_0101__ul12259155218373"><li id="rds_06_0101__en-us_topic_0240111818_li836513175363">Before calling an API, you need to understand the API in <a href="rds_03_0001.html">Authentication</a>.</li><li id="rds_06_0101__en-us_topic_0240111818_li1991981933613">Before calling this API, obtain the required <a href="https://docs.otc.t-systems.com/en-us/endpoint/index.html" target="_blank" rel="noopener noreferrer">region and endpoint</a>.</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0101__section2563029124413"><h4 class="sectiontitle">Constraints</h4><p id="rds_06_0101__en-us_topic_0000001496953953_p121571021134413">This API is available only to RDS for MySQL and RDS for PostgreSQL.</p>
|
|
</div>
|
|
<div class="section" id="rds_06_0101__section18965813"><h4 class="sectiontitle">URI</h4><ul id="rds_06_0101__ul13194498"><li id="rds_06_0101__li41603465301">URI format<p id="rds_06_0101__p11160246123012"><a name="rds_06_0101__li41603465301"></a><a name="li41603465301"></a>PUT https://{Endpoint}/v3/{project_id}/instances/{instance_id}/slowlog-sensitization/{status}</p>
|
|
</li></ul>
|
|
<ul id="rds_06_0101__ul55999443"><li id="rds_06_0101__li21405046">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_06_0101__table58427690" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="rds_06_0101__row1482002"><th align="left" class="cellrowborder" valign="top" width="19.42%" id="mcps1.3.3.3.1.1.2.5.1.1"><p id="rds_06_0101__p52933326"><strong id="rds_06_0101__b84235270691445">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.729999999999999%" id="mcps1.3.3.3.1.1.2.5.1.2"><p id="rds_06_0101__p59740974"><strong id="rds_06_0101__b1882434014210">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.99%" id="mcps1.3.3.3.1.1.2.5.1.3"><p id="rds_06_0101__p5704793710"><strong id="rds_06_0101__b22529312413">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.86000000000001%" id="mcps1.3.3.3.1.1.2.5.1.4"><p id="rds_06_0101__p7180698"><strong id="rds_06_0101__b842352706163417">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_06_0101__row44765691"><td class="cellrowborder" valign="top" width="19.42%" headers="mcps1.3.3.3.1.1.2.5.1.1 "><p id="rds_06_0101__p18700713712">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.729999999999999%" headers="mcps1.3.3.3.1.1.2.5.1.2 "><p id="rds_06_0101__p17018712377">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.99%" headers="mcps1.3.3.3.1.1.2.5.1.3 "><p id="rds_06_0101__p19864576356">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.86000000000001%" headers="mcps1.3.3.3.1.1.2.5.1.4 "><p id="rds_06_0101__p30492010">Specifies the project ID of a tenant in a region.</p>
|
|
<p id="rds_06_0101__p18985742094">For details about how to obtain the project ID, see <a href="rds_03_0002.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0101__row5992637"><td class="cellrowborder" valign="top" width="19.42%" headers="mcps1.3.3.3.1.1.2.5.1.1 "><p id="rds_06_0101__p1071176374">instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.729999999999999%" headers="mcps1.3.3.3.1.1.2.5.1.2 "><p id="rds_06_0101__p13712717379">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.99%" headers="mcps1.3.3.3.1.1.2.5.1.3 "><p id="rds_06_0101__p38655743512">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.86000000000001%" headers="mcps1.3.3.3.1.1.2.5.1.4 "><p id="rds_06_0101__p15257500">Specifies the ID of the queried DB instance.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0101__row241814298545"><td class="cellrowborder" valign="top" width="19.42%" headers="mcps1.3.3.3.1.1.2.5.1.1 "><p id="rds_06_0101__p1711673373">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.729999999999999%" headers="mcps1.3.3.3.1.1.2.5.1.2 "><p id="rds_06_0101__p4715712375">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.99%" headers="mcps1.3.3.3.1.1.2.5.1.3 "><p id="rds_06_0101__p586185713353">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.86000000000001%" headers="mcps1.3.3.3.1.1.2.5.1.4 "><p id="rds_06_0101__p2071177113718">Whether to enable Show Original Log. The value can be <strong id="rds_06_0101__b14641151557">on</strong> or <strong id="rds_06_0101__b12319154156">off</strong>.</p>
|
|
<ul id="rds_06_0101__ul1419916303440"><li id="rds_06_0101__li920017309448"><strong id="rds_06_0101__b122429171612">on</strong>: Enable this function.</li><li id="rds_06_0101__li17200830164411"><strong id="rds_06_0101__b14537450716">off</strong>: Disable this function.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0101__section36474591"><h4 class="sectiontitle">Request</h4><ul id="rds_06_0101__ul1183180183717"><li id="rds_06_0101__li1283110163719">Request parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_06_0101__table12536623333" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="rds_06_0101__row153612211337"><th align="left" class="cellrowborder" valign="top" width="19.7%" id="mcps1.3.4.2.1.1.2.5.1.1"><p id="rds_06_0101__p95111733143318">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.780000000000001%" id="mcps1.3.4.2.1.1.2.5.1.2"><p id="rds_06_0101__p13511123373311">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.959999999999999%" id="mcps1.3.4.2.1.1.2.5.1.3"><p id="rds_06_0101__p125111433133312">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="53.559999999999995%" id="mcps1.3.4.2.1.1.2.5.1.4"><p id="rds_06_0101__p551110331335">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_06_0101__row05378213331"><td class="cellrowborder" valign="top" width="19.7%" headers="mcps1.3.4.2.1.1.2.5.1.1 "><p id="rds_06_0101__p1163015550331">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.780000000000001%" headers="mcps1.3.4.2.1.1.2.5.1.2 "><p id="rds_06_0101__p1963035563316">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.959999999999999%" headers="mcps1.3.4.2.1.1.2.5.1.3 "><p id="rds_06_0101__p1630105520331">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.559999999999995%" headers="mcps1.3.4.2.1.1.2.5.1.4 "><p id="rds_06_0101__p1086851153317">Specifies the user token.</p>
|
|
<p id="rds_06_0101__p1057635831">The user token is a response to the API used to <a href="https://docs.otc.t-systems.com/en-us/api/iam/en-us_topic_0057845583.html" target="_blank" rel="noopener noreferrer">obtain a user token</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="rds_06_0101__ul51575500564"><li id="rds_06_0101__li4411135064210">URI example<pre class="screen" id="rds_06_0101__screen2049979125415">PUT https://rds.eu-de.otc.t-systems.com/v3/054ea741f700d4a32f1bc00f5c80dd4c/instances/88a31c96daa0464482599360c34a7a6bin01/slowlog-sensitization/on</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0101__section59835867"><h4 class="sectiontitle">Response</h4><ul id="rds_06_0101__ul66273227"><li id="rds_06_0101__li59588135">Normal response<p id="rds_06_0101__p1197851173712"><a name="rds_06_0101__li59588135"></a><a name="li59588135"></a>None</p>
|
|
</li></ul>
|
|
<ul id="rds_06_0101__ul26818564"><li id="rds_06_0101__li15461118163817">Abnormal Response<p id="rds_06_0101__p46896054"><a name="rds_06_0101__li15461118163817"></a><a name="li15461118163817"></a>For details, see <a href="en-us_topic_0032488197.html">Abnormal Request Results</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0101__section4778540915440"><h4 class="sectiontitle">Status Code</h4><ul id="rds_06_0101__en-us_topic_0032347778_ul7858132212142"><li id="rds_06_0101__en-us_topic_0032347778_li58581622171411">Normal<p id="rds_06_0101__en-us_topic_0032347778_p1040982941020"><a name="rds_06_0101__en-us_topic_0032347778_li58581622171411"></a><a name="en-us_topic_0032347778_li58581622171411"></a>200</p>
|
|
</li><li id="rds_06_0101__en-us_topic_0032347778_li11583183218149">Abnormal<p id="rds_06_0101__en-us_topic_0032347778_p0723374409"><a name="rds_06_0101__en-us_topic_0032347778_li11583183218149"></a><a name="en-us_topic_0032347778_li11583183218149"></a>For details, see <a href="en-us_topic_0032488240.html">Status Codes</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0101__section1183074220016"><h4 class="sectiontitle">Error Code</h4><p id="rds_06_0101__en-us_topic_0032347778_p19357163913406">For details, see <a href="en-us_topic_0032488241.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0056887472.html">Log Information Queries</a></div>
|
|
</div>
|
|
</div>
|
|
|