Files
doc-exports/docs/dds/api-ref/dds_api_025.html
wangdengke2 87153b4b9b dds_api
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>
2025-08-13 15:59:03 +00:00

156 lines
12 KiB
HTML

<a name="dds_api_025"></a><a name="dds_api_025"></a>
<h1 class="topictitle1">Disassociating an Instance from an LTS Log Stream</h1>
<div id="body0000002107272436"><div class="section" id="dds_api_025__section4894192115617"><h4 class="sectiontitle">API Description</h4><p id="dds_api_025__p7543419193119">After you have disassociated an instance from an LTS log stream, logs of the instance are not uploaded to the LTS log stream.</p>
</div>
<div class="section" id="dds_api_025__section1389616295612"><h4 class="sectiontitle">URI</h4><ul id="dds_api_025__ul791121595"><li id="dds_api_025__li591812155912">URI format<p id="dds_api_025__p65649569316"><a name="dds_api_025__li591812155912"></a><a name="li591812155912"></a>DELETE https://{Endpoint}/v3/{project_id}/instances/logs/lts-configs</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dds_api_025__table1438681574215" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="dds_api_025__row153861315124219"><th align="left" class="cellrowborder" valign="top" width="19.900000000000002%" id="mcps1.3.2.2.1.2.2.5.1.1"><p id="dds_api_025__p88294471429"><strong id="dds_api_025__b1182984754216">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.96%" id="mcps1.3.2.2.1.2.2.5.1.2"><p id="dds_api_025__p10829114704218"><strong id="dds_api_025__b1882974794214">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.900000000000002%" id="mcps1.3.2.2.1.2.2.5.1.3"><p id="dds_api_025__p482924794219"><strong id="dds_api_025__b138296479423">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40.239999999999995%" id="mcps1.3.2.2.1.2.2.5.1.4"><p id="dds_api_025__p2082994714425">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dds_api_025__row133871415174214"><td class="cellrowborder" valign="top" width="19.900000000000002%" headers="mcps1.3.2.2.1.2.2.5.1.1 "><p id="dds_api_025__p639832517565">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.1.2.2.5.1.2 "><p id="dds_api_025__p239862515562">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="19.900000000000002%" headers="mcps1.3.2.2.1.2.2.5.1.3 "><p id="dds_api_025__p439822513563">String</p>
</td>
<td class="cellrowborder" valign="top" width="40.239999999999995%" headers="mcps1.3.2.2.1.2.2.5.1.4 "><p id="dds_api_025__p398313448589">Project ID of a tenant in a region. To obtain the project ID, see <a href="dds_projectid.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dds_api_025__table23896261404" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="dds_api_025__row93889261102"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.1.3.2.5.1.1"><p id="dds_api_025__p1538710261103"><strong id="dds_api_025__b0934133616589">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.1.3.2.5.1.2"><p id="dds_api_025__p133871026302"><strong id="dds_api_025__b9224173810581">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.1.3.2.5.1.3"><p id="dds_api_025__p143880261108"><strong id="dds_api_025__b8376239155812">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.2.1.3.2.5.1.4"><p id="dds_api_025__p6388112615015">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dds_api_025__row6388326307"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.1.3.2.5.1.1 "><p id="dds_api_025__p1838813261804">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.1.3.2.5.1.2 "><p id="dds_api_025__p1938814261015">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.1.3.2.5.1.3 "><p id="dds_api_025__p338820261201">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.2.1.3.2.5.1.4 "><p id="dds_api_025__p1873515157396">User token obtained from IAM.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="dds_api_025__section187659393189"><h4 class="sectiontitle">Requests</h4><ul id="dds_api_025__ul169379231585"><li id="dds_api_025__li10937162315588">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dds_api_025__table228903751753" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="dds_api_025__row70524471753"><th align="left" class="cellrowborder" valign="top" width="19.98%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="dds_api_025__p343772981753">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.22%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="dds_api_025__p636754041753"><strong id="dds_api_025__b026617625912">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.119999999999997%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="dds_api_025__p330977911753"><strong id="dds_api_025__b12535276592">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="39.68%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="dds_api_025__p574120414014">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dds_api_025__row13675632193216"><td class="cellrowborder" valign="top" width="19.98%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="dds_api_025__p69201433173213">lts_configs</p>
</td>
<td class="cellrowborder" valign="top" width="20.22%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="dds_api_025__p1092083333212">Array of <a href="#dds_api_025__table134061651112112">Table 4</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="20.119999999999997%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="dds_api_025__p1392018332327">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="39.68%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="dds_api_025__p1392043315328">List of LTS configurations to be disabled. To disable multiple log configurations for an instance, you need to specify multiple items.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="dds_api_025__table134061651112112"></a><a name="table134061651112112"></a><table cellpadding="4" cellspacing="0" summary="" id="dds_api_025__table134061651112112" frame="border" border="1" rules="all"><caption><b>Table 4 </b>lts_configs</caption><thead align="left"><tr id="dds_api_025__row44088517216"><th align="left" class="cellrowborder" valign="top" width="20.04%" id="mcps1.3.3.2.1.2.2.5.1.1"><p id="dds_api_025__p3776454132111">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.09%" id="mcps1.3.3.2.1.2.2.5.1.2"><p id="dds_api_025__p777614542217"><strong id="dds_api_025__b839858826">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.57%" id="mcps1.3.3.2.1.2.2.5.1.3"><p id="dds_api_025__p16776854122120"><strong id="dds_api_025__b160718322">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="44.3%" id="mcps1.3.3.2.1.2.2.5.1.4"><p id="dds_api_025__p277615462115">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dds_api_025__row1284274993317"><td class="cellrowborder" valign="top" width="20.04%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="dds_api_025__p912085173318">instance_id</p>
</td>
<td class="cellrowborder" valign="top" width="20.09%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="dds_api_025__p612095111331">String</p>
</td>
<td class="cellrowborder" valign="top" width="15.57%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="dds_api_025__p91201751193310">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="44.3%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="dds_api_025__p121203518337">DDS Instance ID, which can be obtained by calling the API for querying instances and details. If there are no instances available, create one by calling the API used for creating an instance.</p>
</td>
</tr>
<tr id="dds_api_025__row157481147133313"><td class="cellrowborder" valign="top" width="20.04%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="dds_api_025__p3120145115336">log_type</p>
</td>
<td class="cellrowborder" valign="top" width="20.09%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="dds_api_025__p281318516167">String</p>
</td>
<td class="cellrowborder" valign="top" width="15.57%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="dds_api_025__p181316517164">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="44.3%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="dds_api_025__p392283981911">LTS log type. This parameter cannot be left empty. The only supported option is <strong id="dds_api_025__b546311264174">audit_log</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="dds_api_025__li73231939125810">Example request<p id="dds_api_025__p67615443584"><a name="dds_api_025__li73231939125810"></a><a name="li73231939125810"></a>Disabling audit log reporting to LTS for a DB instance</p>
<p id="dds_api_025__p83361942143415">DELETE https://{endpoint}/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/logs/lts-configs</p>
<pre class="screen" id="dds_api_025__screen7287133963518">{
"lts_configs" : [ {
"instance_id" : "520c58ba00a3497e97ce0b9604874dd6in02",
"log_type" : "audit_log"
} ]
}</pre>
</li></ul>
</div>
<div class="section" id="dds_api_025__section15939152205612"><h4 class="sectiontitle">Responses</h4><ul id="dds_api_025__ul18539131631517"><li id="dds_api_025__li15539916121519">Parameter description<p id="dds_api_025__p1872542342713"><a name="dds_api_025__li15539916121519"></a><a name="li15539916121519"></a>None</p>
</li></ul>
<ul id="dds_api_025__ul16464105314172"><li id="dds_api_025__li124649532175">Example response<p id="dds_api_025__p123858310275"><a name="dds_api_025__li124649532175"></a><a name="li124649532175"></a>None</p>
</li></ul>
</div>
<div class="section" id="dds_api_025__section10950024562"><h4 class="sectiontitle">Status Code</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dds_api_025__table346mcpsimp" frame="border" border="1" rules="all"><thead align="left"><tr id="dds_api_025__row351mcpsimp"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.5.2.1.3.1.1"><p id="dds_api_025__p353mcpsimp">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.5.2.1.3.1.2"><p id="dds_api_025__p355mcpsimp">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dds_api_025__row357mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.5.2.1.3.1.1 "><p id="dds_api_025__p359mcpsimp">202</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.5.2.1.3.1.2 "><p id="dds_api_025__p361mcpsimp">Accepted.</p>
</td>
</tr>
<tr id="dds_api_025__row362mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.5.2.1.3.1.1 "><p id="dds_api_025__p364mcpsimp">default</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.5.2.1.3.1.2 "><p id="dds_api_025__p157499514151">Client or server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dds_api_025__section8954192115620"><h4 class="sectiontitle">Error Code</h4><p id="dds_api_025__en-us_topic_0122053819_p20466124120334">For details, see <a href="dds_error_code.html">Error Code</a>.</p>
</div>
<p id="dds_api_025__p127110550525"></p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dds_instance_mgmt.html">DB Instance Management</a></div>
</div>
</div>