1
0
forked from docs/doc-exports
doc-exports/docs/rds/api-ref/rds_log_0004.html
Ru, Li Yi 48f239743a rds_api
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
2024-02-05 10:08:10 +00:00

111 lines
9.7 KiB
HTML

<a name="rds_log_0004"></a><a name="rds_log_0004"></a>
<h1 class="topictitle1">Obtaining the Link for Downloading an Audit Log</h1>
<div id="body1569294095034"><div class="section" id="rds_log_0004__section61759636"><h4 class="sectiontitle">Function</h4><p id="rds_log_0004__p33831530">This API is used to obtain the link for downloading an audit log.</p>
<ul id="rds_log_0004__ul12259155218373"><li id="rds_log_0004__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_log_0004__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_log_0004__section13341536702"><h4 class="sectiontitle">Constraints</h4><p id="rds_log_0004__en-us_topic_0000001496953953_p121571021134413">This API is available only to RDS for MySQL.</p>
</div>
<div class="section" id="rds_log_0004__section18965813"><h4 class="sectiontitle">URI</h4><ul id="rds_log_0004__ul13194498"><li id="rds_log_0004__li41603465301">URI format<p id="rds_log_0004__p11160246123012"><a name="rds_log_0004__li41603465301"></a><a name="li41603465301"></a>POST https://{<em id="rds_log_0004__i11252164981618">Endpoint</em>}/v3/{project_id}/instances/{instance_id}/auditlog-links</p>
</li></ul>
<ul id="rds_log_0004__ul55999443"><li id="rds_log_0004__li21405046">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_log_0004__table58427690" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="rds_log_0004__row1482002"><th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.3.3.1.1.2.4.1.1"><p id="rds_log_0004__p52933326"><strong id="rds_log_0004__b2147324123014">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.3.3.1.1.2.4.1.2"><p id="rds_log_0004__p59740974"><strong id="rds_log_0004__b1394272414304">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.3.3.1.1.2.4.1.3"><p id="rds_log_0004__p7180698"><strong id="rds_log_0004__b780462573013">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rds_log_0004__row44765691"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_log_0004__p2142393">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_log_0004__p39316155">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.3.3.1.1.2.4.1.3 "><p id="rds_log_0004__p30492010">Specifies the project ID of a tenant in a region.</p>
<p id="rds_log_0004__p7139608914">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_log_0004__row5992637"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_log_0004__p15641626">instance_id</p>
</td>
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_log_0004__p59012183">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.3.3.1.1.2.4.1.3 "><p id="rds_log_0004__p15257500">Specifies the ID of the queried DB instance.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="rds_log_0004__section36474591"><h4 class="sectiontitle">Request</h4><ul id="rds_log_0004__ul1677317341210"><li id="rds_log_0004__li1830813567439">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_log_0004__table6426756154514" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="rds_log_0004__row142645664510"><th align="left" class="cellrowborder" valign="top" width="21.21212121212121%" id="mcps1.3.4.2.1.1.2.5.1.1"><p id="rds_log_0004__p17490046"><strong id="rds_log_0004__b1456161824815">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.191919191919194%" id="mcps1.3.4.2.1.1.2.5.1.2"><p id="rds_log_0004__p7407659"><strong id="rds_log_0004__b113421319164815">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="23.232323232323235%" id="mcps1.3.4.2.1.1.2.5.1.3"><p id="rds_log_0004__p63149496"><strong id="rds_log_0004__b440882017485">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="36.36363636363637%" id="mcps1.3.4.2.1.1.2.5.1.4"><p id="rds_log_0004__p14835533"><strong id="rds_log_0004__b04211421104818">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rds_log_0004__row34264566458"><td class="cellrowborder" valign="top" width="21.21212121212121%" headers="mcps1.3.4.2.1.1.2.5.1.1 "><p id="rds_log_0004__p9621111903719">ids</p>
</td>
<td class="cellrowborder" valign="top" width="19.191919191919194%" headers="mcps1.3.4.2.1.1.2.5.1.2 "><p id="rds_log_0004__p136211719123717">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="23.232323232323235%" headers="mcps1.3.4.2.1.1.2.5.1.3 "><p id="rds_log_0004__p19305165815610">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="36.36363636363637%" headers="mcps1.3.4.2.1.1.2.5.1.4 "><p id="rds_log_0004__p17621131953718">Specifies the list of audit logs. A maximum of 50 audit log IDs are allowed in the list.</p>
<p id="rds_log_0004__p169233820594">This ids could be find in response of <a href="rds_log_0003.html">Obtaining an Audit Log List</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="rds_log_0004__ul4957411232"><li id="rds_log_0004__li4411135064210">Example<p id="rds_log_0004__p1454414211213"><a name="rds_log_0004__li4411135064210"></a><a name="li4411135064210"></a>POST https://rds.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/cee5265e1e5845649e354841234567dfin01/auditlog-links</p>
</li></ul>
<ul id="rds_log_0004__ul1231298530"><li id="rds_log_0004__li173126815317">Request example<pre class="codeblock" id="rds_log_0004__codeblock731218434">{
"ids": ["fa163e9970a3t11e9d834e122fdceb1d6br01", "fa163ea0e2bet11e9d8364943103c94c5br01"]
}</pre>
</li></ul>
</div>
<div class="section" id="rds_log_0004__section59835867"><h4 class="sectiontitle">Response</h4><ul id="rds_log_0004__ul66273227"><li id="rds_log_0004__li59588135">Normal response
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_log_0004__table29752153" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameter description</caption><thead align="left"><tr id="rds_log_0004__row62070345"><th align="left" class="cellrowborder" valign="top" width="23.880000000000003%" id="mcps1.3.5.2.1.1.2.4.1.1"><p id="rds_log_0004__p61642077"><strong id="rds_log_0004__b5447132495">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="31.119999999999997%" id="mcps1.3.5.2.1.1.2.4.1.2"><p id="rds_log_0004__p26952341"><strong id="rds_log_0004__b20714913164918">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.5.2.1.1.2.4.1.3"><p id="rds_log_0004__p35656026"><strong id="rds_log_0004__b7515101404915">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rds_log_0004__row49943891183823"><td class="cellrowborder" valign="top" width="23.880000000000003%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_log_0004__p9423342133810">links</p>
</td>
<td class="cellrowborder" valign="top" width="31.119999999999997%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_log_0004__p542317427389">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_log_0004__p642313424387">Indicates the list of audit log download links. The validity period is 5 minutes.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="rds_log_0004__ul26818564"><li id="rds_log_0004__li40040492">Example normal response<pre class="codeblock" id="rds_log_0004__codeblock1228919710610">{
"links": ["https://obs.domainname.com/rdsbucket.username.1/xxxxxx", "https://obs.domainname.com/rdsbucket.username.2/xxxxxx"]
}</pre>
</li><li id="rds_log_0004__li1953636143515">Abnormal response<p id="rds_log_0004__p46896054"><a name="rds_log_0004__li1953636143515"></a><a name="li1953636143515"></a>For details, see <a href="en-us_topic_0032488197.html">Abnormal Request Results</a>.</p>
</li></ul>
</div>
<div class="section" id="rds_log_0004__section4778540915440"><h4 class="sectiontitle">Status Code</h4><ul id="rds_log_0004__en-us_topic_0032347778_ul7858132212142"><li id="rds_log_0004__en-us_topic_0032347778_li58581622171411">Normal<p id="rds_log_0004__en-us_topic_0032347778_p1040982941020"><a name="rds_log_0004__en-us_topic_0032347778_li58581622171411"></a><a name="en-us_topic_0032347778_li58581622171411"></a>200</p>
</li><li id="rds_log_0004__en-us_topic_0032347778_li11583183218149">Abnormal<p id="rds_log_0004__en-us_topic_0032347778_p0723374409"><a name="rds_log_0004__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_log_0004__section1183074220016"><h4 class="sectiontitle">Error Code</h4><p id="rds_log_0004__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>