doc-exports/docs/dli/api-ref/dli_02_0188.html
Su, Xiaomeng 57a0d535be dli_api_0910_version_api
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2023-10-16 22:01:57 +00:00

115 lines
8.6 KiB
HTML

<a name="dli_02_0188"></a><a name="dli_02_0188"></a>
<h1 class="topictitle1">Deleting an Enhanced Datasource Connection</h1>
<div id="body1565767253378"><div class="section" id="dli_02_0188__section13287428103611"><h4 class="sectiontitle">Function</h4><p id="dli_02_0188__p184751628133613">This API is used to delete an enhanced datasource connection.</p>
<div class="note" id="dli_02_0188__note85881373585"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dli_02_0188__p165891277585">The connection that is being created cannot be deleted.</p>
</div></div>
</div>
<div class="section" id="dli_02_0188__section52924285361"><h4 class="sectiontitle">URI</h4><ul id="dli_02_0188__ul1547562815364"><li id="dli_02_0188__li1847520284363">URI format<p id="dli_02_0188__p19975179193713"><a name="dli_02_0188__li1847520284363"></a><a name="li1847520284363"></a>DELETE /v2.0/{project_id}/datasource/enhanced-connections/{connection_id}</p>
</li><li id="dli_02_0188__li1047502816366">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0188__table18299172853614" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="dli_02_0188__row947592853614"><th align="left" class="cellrowborder" valign="top" width="19.73%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="dli_02_0188__p1347513282368">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11.66%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="dli_02_0188__p74757287366">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11.27%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="dli_02_0188__p187058316227">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.34%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="dli_02_0188__p1475182833610">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0188__row16475152833619"><td class="cellrowborder" valign="top" width="19.73%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0188__p1547552803615">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="11.66%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0188__p19475828123613">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="11.27%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0188__p127061231223">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.34%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0188__p1310472724012">Project ID, which is used for resource isolation. For details about how to obtain its value, see <a href="dli_02_0183.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="dli_02_0188__row16535918171816"><td class="cellrowborder" valign="top" width="19.73%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0188__p84192317188">connection_id</p>
</td>
<td class="cellrowborder" valign="top" width="11.66%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0188__p1941914313180">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="11.27%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0188__p17063311223">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.34%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0188__p94197315183">Connection ID. Identifies the UUID of a datasource connection. Set the value to the connection ID returned by <a href="dli_02_0187.html">Creating an Enhanced Datasource Connection</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="dli_02_0188__section1831452873613"><h4 class="sectiontitle">Request</h4><p id="dli_02_0188__p149001951163817">None</p>
</div>
<div class="section" id="dli_02_0188__section134515287360"><h4 class="sectiontitle">Response</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0188__table8348112818368" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameters</caption><thead align="left"><tr id="dli_02_0188__row11478132863610"><th align="left" class="cellrowborder" valign="top" width="19.63%" id="mcps1.3.4.2.2.4.1.1"><p id="dli_02_0188__p04782028173616">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.65%" id="mcps1.3.4.2.2.4.1.2"><p id="dli_02_0188__p34781128193612">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="62.72%" id="mcps1.3.4.2.2.4.1.3"><p id="dli_02_0188__p1347917286364">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0188__row18479182813362"><td class="cellrowborder" valign="top" width="19.63%" headers="mcps1.3.4.2.2.4.1.1 "><p id="dli_02_0188__p3887202462117">is_success</p>
</td>
<td class="cellrowborder" valign="top" width="17.65%" headers="mcps1.3.4.2.2.4.1.2 "><p id="dli_02_0188__p1888762420218">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="62.72%" headers="mcps1.3.4.2.2.4.1.3 "><p id="dli_02_0188__p15887824122119">Indicates whether the request is successfully executed. Value <span class="parmvalue" id="dli_02_0188__parmvalue4993877595041"><b>true</b></span> indicates that the request is successfully executed.</p>
</td>
</tr>
<tr id="dli_02_0188__row1588462431911"><td class="cellrowborder" valign="top" width="19.63%" headers="mcps1.3.4.2.2.4.1.1 "><p id="dli_02_0188__p1887924172113">message</p>
</td>
<td class="cellrowborder" valign="top" width="17.65%" headers="mcps1.3.4.2.2.4.1.2 "><p id="dli_02_0188__p19887624142119">String</p>
</td>
<td class="cellrowborder" valign="top" width="62.72%" headers="mcps1.3.4.2.2.4.1.3 "><p id="dli_02_0188__p1488772410218">System message. Value <strong id="dli_02_0188__b127699316511">Deleted</strong> indicates that the operation is successful.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_02_0188__section1217010661112"><h4 class="sectiontitle">Example Request</h4><p id="dli_02_0188__p6101181617111">None</p>
</div>
<div class="section" id="dli_02_0188__section910624615450"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="dli_02_0188__screen14492195603016">{
"is_success": true,
"message": "Deleted"
}</pre>
</div>
<div class="section" id="dli_02_0188__sf39cfd445ad24e9e82754fcb0027179d"><h4 class="sectiontitle">Status Codes</h4><p id="dli_02_0188__a04144ca3a08e4576b386c6a98f43a2ae"><a href="#dli_02_0188__tb12870f1c5f24b27abd55ca24264af36">Table 3</a> describes the status code.</p>
<div class="tablenoborder"><a name="dli_02_0188__tb12870f1c5f24b27abd55ca24264af36"></a><a name="tb12870f1c5f24b27abd55ca24264af36"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0188__tb12870f1c5f24b27abd55ca24264af36" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Status codes</caption><thead align="left"><tr id="dli_02_0188__r8d54231f95b14c01a5e55e95f3b2e838"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.7.3.2.3.1.1"><p id="dli_02_0188__ab49d21f312644072a331f43e92baf853">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.7.3.2.3.1.2"><p id="dli_02_0188__aea1d3bd107bb4c499da79a88832d256c">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0188__r211ad4eb571d4d938e5579998723174e"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0188__a3153e07b3a9749adba92599fe6628fbf">200</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0188__p104431642124811">Deletion succeeded.</p>
</td>
</tr>
<tr id="dli_02_0188__row44937531727"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0188__p184941532219">400</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0188__p2049413539219">Request error.</p>
</td>
</tr>
<tr id="dli_02_0188__row65331212142411"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0188__p5537171216249">500</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0188__p953813124249">Internal service error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_02_0188__section13596141025715"><h4 class="sectiontitle">Error Codes</h4><p id="dli_02_0188__p420584425712">If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see <a href="dli_02_0056.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_02_0186.html">APIs Related to Enhanced Datasource Connections</a></div>
</div>
</div>