doc-exports/docs/dli/api-ref/dli_02_0256.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

196 lines
14 KiB
HTML

<a name="dli_02_0256"></a><a name="dli_02_0256"></a>
<h1 class="topictitle1">Querying Authorization of an Enhanced Datasource Connection</h1>
<div id="body1586938061410"><div class="section" id="dli_02_0256__section13287428103611"><h4 class="sectiontitle">Function</h4><p id="dli_02_0256__p6109426103819">This API is used to query the authorization about an enhanced datasource connection.</p>
</div>
<div class="section" id="dli_02_0256__section52924285361"><h4 class="sectiontitle">URI</h4><ul id="dli_02_0256__ul1547562815364"><li id="dli_02_0256__li1847520284363">URI format<p id="dli_02_0256__p8475152813362"><a name="dli_02_0256__li1847520284363"></a><a name="li1847520284363"></a>GET /v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/privileges</p>
</li><li id="dli_02_0256__li1047502816366">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0256__table18299172853614" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="dli_02_0256__row947592853614"><th align="left" class="cellrowborder" valign="top" width="17.89178917891789%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="dli_02_0256__p1347513282368">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.77137713771377%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="dli_02_0256__p74757287366">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.911091109110911%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="dli_02_0256__p14175144614296">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.425742574257434%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="dli_02_0256__p1475182833610">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0256__row16475152833619"><td class="cellrowborder" valign="top" width="17.89178917891789%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0256__p1547552803615">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="13.77137713771377%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0256__p19475828123613">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="10.911091109110911%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0256__p15175104662918">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.425742574257434%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0256__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_0256__row1758412516020"><td class="cellrowborder" valign="top" width="17.89178917891789%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0256__p84192317188">connection_id</p>
</td>
<td class="cellrowborder" valign="top" width="13.77137713771377%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0256__p1941914313180">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="10.911091109110911%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0256__p0176746182919">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.425742574257434%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0256__p94197315183">Connection ID. Identifies the UUID of a datasource connection.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="dli_02_0256__section1831452873613"><h4 class="sectiontitle">Request</h4><p id="dli_02_0256__p116355331028">None</p>
</div>
<div class="section" id="dli_02_0256__section134515287360"><h4 class="sectiontitle">Response</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0256__table8348112818368" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameters</caption><thead align="left"><tr id="dli_02_0256__row11478132863610"><th align="left" class="cellrowborder" valign="top" width="14.450000000000001%" id="mcps1.3.4.2.2.5.1.1"><p id="dli_02_0256__p04782028173616">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="9.870000000000001%" id="mcps1.3.4.2.2.5.1.2"><p id="dli_02_0256__p1310111523518">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.850000000000001%" id="mcps1.3.4.2.2.5.1.3"><p id="dli_02_0256__p34781128193612">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60.830000000000005%" id="mcps1.3.4.2.2.5.1.4"><p id="dli_02_0256__p1347917286364">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0256__row18479182813362"><td class="cellrowborder" valign="top" width="14.450000000000001%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0256__p392161273513">is_success</p>
</td>
<td class="cellrowborder" valign="top" width="9.870000000000001%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0256__p810114524518">No</p>
</td>
<td class="cellrowborder" valign="top" width="14.850000000000001%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0256__p18921161219357">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="60.830000000000005%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0256__p12921712163514">Whether the request is successfully executed. Value <strong id="dli_02_0256__b985019716598">true</strong> indicates that the request is successfully executed.</p>
</td>
</tr>
<tr id="dli_02_0256__row14946145019340"><td class="cellrowborder" valign="top" width="14.450000000000001%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0256__p692141213515">message</p>
</td>
<td class="cellrowborder" valign="top" width="9.870000000000001%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0256__p31011352152">No</p>
</td>
<td class="cellrowborder" valign="top" width="14.850000000000001%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0256__p6921012133518">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.830000000000005%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0256__p1921161214351">System prompt. If execution succeeds, the parameter setting may be left blank.</p>
</td>
</tr>
<tr id="dli_02_0256__row19868319411"><td class="cellrowborder" valign="top" width="14.450000000000001%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0256__p1587837415">connection_id</p>
</td>
<td class="cellrowborder" valign="top" width="9.870000000000001%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0256__p1010185210519">No</p>
</td>
<td class="cellrowborder" valign="top" width="14.850000000000001%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0256__p128763247">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.830000000000005%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0256__p107634211952">Enhanced datasource connection ID, which is used to identify the UUID of a datasource connection.</p>
</td>
</tr>
<tr id="dli_02_0256__row68833646"><td class="cellrowborder" valign="top" width="14.450000000000001%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0256__p1988731046">privileges</p>
</td>
<td class="cellrowborder" valign="top" width="9.870000000000001%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0256__p11023521758">No</p>
</td>
<td class="cellrowborder" valign="top" width="14.850000000000001%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0256__p1688031840">Array of Object</p>
</td>
<td class="cellrowborder" valign="top" width="60.830000000000005%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0256__p141856392050">Datasource connection information about each authorized project. For details, see <a href="#dli_02_0256__table7853923368">Table 3</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="dli_02_0256__table7853923368"></a><a name="table7853923368"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0256__table7853923368" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="dli_02_0256__b13376130183119">privileges</strong> parameters</caption><thead align="left"><tr id="dli_02_0256__row98541323969"><th align="left" class="cellrowborder" valign="top" width="19.17%" id="mcps1.3.4.3.2.5.1.1"><p id="dli_02_0256__p8854023865">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.01%" id="mcps1.3.4.3.2.5.1.2"><p id="dli_02_0256__p1985416237615">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="9.99%" id="mcps1.3.4.3.2.5.1.3"><p id="dli_02_0256__p15854122313614">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60.83%" id="mcps1.3.4.3.2.5.1.4"><p id="dli_02_0256__p785414235614">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0256__row118541923865"><td class="cellrowborder" valign="top" width="19.17%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0256__p78548237614">object</p>
</td>
<td class="cellrowborder" valign="top" width="10.01%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0256__p2085412238617">No</p>
</td>
<td class="cellrowborder" valign="top" width="9.99%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0256__p17854122319615">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.83%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0256__p8854923063">Object information during authorization.</p>
</td>
</tr>
<tr id="dli_02_0256__row185518231763"><td class="cellrowborder" valign="top" width="19.17%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0256__p1985519231368">applicant_project_id</p>
</td>
<td class="cellrowborder" valign="top" width="10.01%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0256__p158551823266">No</p>
</td>
<td class="cellrowborder" valign="top" width="9.99%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0256__p1885542314613">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.83%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0256__p285515235616">ID of an authorized project.</p>
</td>
</tr>
<tr id="dli_02_0256__row18855132311612"><td class="cellrowborder" valign="top" width="19.17%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0256__p1785517233613">privileges</p>
</td>
<td class="cellrowborder" valign="top" width="10.01%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0256__p1585515231569">No</p>
</td>
<td class="cellrowborder" valign="top" width="9.99%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0256__p385592319612">Array of Strings</p>
</td>
<td class="cellrowborder" valign="top" width="60.83%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0256__p208553231614">Authorization operation information.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_02_0256__section1217010661112"><h4 class="sectiontitle">Example Request</h4><p id="dli_02_0256__p6101181617111">None</p>
</div>
<div class="section" id="dli_02_0256__section910624615450"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="dli_02_0256__screen587751511378">{
"is_success": true,
"message": "",
"privileges": [
{
"object": "edsconnections.503fc86a-5e60-4349-92c2-7e399404fa8a",
"applicant_project_id": "330e068af1334c9782f4226acc00a2e2",
"privileges": ["BIND_QUEUE"]
}
],
"connection_id": "503fc86a-5e60-4349-92c2-7e399404fa8a"
}</pre>
</div>
<div class="section" id="dli_02_0256__s1b495ba11cd9411c9ad2ee50103334a7"><h4 class="sectiontitle">Status Codes</h4><p id="dli_02_0256__acef1445366354016b2ed90921927a555"><a href="#dli_02_0256__t43c1f1c0ba344f4cbcb270953d9cca2a">Table 4</a> describes status codes.</p>
<div class="tablenoborder"><a name="dli_02_0256__t43c1f1c0ba344f4cbcb270953d9cca2a"></a><a name="t43c1f1c0ba344f4cbcb270953d9cca2a"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0256__t43c1f1c0ba344f4cbcb270953d9cca2a" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Status codes</caption><thead align="left"><tr id="dli_02_0256__r2ad0f008ce2248a1800a3e8b77226a56"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.7.3.2.3.1.1"><p id="dli_02_0256__afa33b7f5b0ac4d008ebcf6493f629b24">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_0256__af801170b350b4f8ba3b575c7ddb8b13e">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0256__r0b449b1d3b8c498ea3e6cce16c80a14c"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0256__a8c63a97e3bad402ebaead0bd99cad632">200</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0256__af86844c7bb364c48b6300df1af164af2">The query is successful.</p>
</td>
</tr>
<tr id="dli_02_0256__row1232118139110"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0256__p14321113711">400</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0256__p1832191314113">The input parameter is invalid.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_02_0256__section13596141025715"><h4 class="sectiontitle">Error Codes</h4><p id="dli_02_0256__dli_02_0225_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 class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0256__dli_02_0225_table847819307387" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Error codes</caption><thead align="left"><tr id="dli_02_0256__dli_02_0225_row2479163016383"><th align="left" class="cellrowborder" valign="top" width="16.29%" id="mcps1.3.8.3.2.3.1.1"><p id="dli_02_0256__dli_02_0225_p114796309389">Error Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="83.71%" id="mcps1.3.8.3.2.3.1.2"><p id="dli_02_0256__dli_02_0225_p1647973053817">Error Message</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0256__dli_02_0225_row1047920308387"><td class="cellrowborder" valign="top" width="16.29%" headers="mcps1.3.8.3.2.3.1.1 "><p id="dli_02_0256__p757412201219">DLI.0001</p>
</td>
<td class="cellrowborder" valign="top" width="83.71%" headers="mcps1.3.8.3.2.3.1.2 "><p id="dli_02_0256__p91255263121">Connection 503fc86a-5e60-4349-92c2-7e399404fa8a does not exist.</p>
</td>
</tr>
</tbody>
</table>
</div>
</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>