forked from docs/doc-exports
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>
269 lines
22 KiB
HTML
269 lines
22 KiB
HTML
<a name="dli_02_0029"></a><a name="dli_02_0029"></a>
|
|
|
|
<h1 class="topictitle1">Querying All Databases</h1>
|
|
<div id="body8662426"><div class="section" id="dli_02_0029__s81476b125db145998a1baa1a8bc56e0c"><h4 class="sectiontitle">Function</h4><p id="dli_02_0029__en-us_topic_0069077899_p52620347">This API is used to query the information about all the databases.</p>
|
|
</div>
|
|
<div class="section" id="dli_02_0029__sbf07dde5c25a4911ae94d60a7ac93e10"><h4 class="sectiontitle">URI</h4><ul id="dli_02_0029__en-us_topic_0069077899_ul34389677"><li id="dli_02_0029__en-us_topic_0069077899_li41071643">URI format<p id="dli_02_0029__en-us_topic_0069077899_p34100468"><a name="dli_02_0029__en-us_topic_0069077899_li41071643"></a><a name="en-us_topic_0069077899_li41071643"></a>GET /v1.0/{project_id}/databases</p>
|
|
</li><li id="dli_02_0029__li1725612218454">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0029__en-us_topic_0069077803_table60779388" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameter</caption><thead align="left"><tr id="dli_02_0029__en-us_topic_0069077803_row61411666"><th align="left" class="cellrowborder" valign="top" width="14.57%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="dli_02_0029__a420a62a594f9410eaea229ffc8037a61">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.08%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="dli_02_0029__en-us_topic_0069077803_p873025824211">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_0029__p1815541162419">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="62.08%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="dli_02_0029__a692d3cd97b464aed90ba6d841900a4a5">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0029__en-us_topic_0069077803_row48589216"><td class="cellrowborder" valign="top" width="14.57%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0029__en-us_topic_0069077803_p43412436">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.08%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0029__en-us_topic_0069077803_p26746391">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_0029__p91511414246">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.08%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0029__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>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0029__table725416470257" frame="border" border="1" rules="all"><caption><b>Table 2 </b>query parameter description</caption><thead align="left"><tr id="dli_02_0029__row5254174772520"><th align="left" class="cellrowborder" valign="top" width="14.57%" id="mcps1.3.2.2.2.2.2.5.1.1"><p id="dli_02_0029__p152544473255">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.08%" id="mcps1.3.2.2.2.2.2.5.1.2"><p id="dli_02_0029__p725414710259">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="11.27%" id="mcps1.3.2.2.2.2.2.5.1.3"><p id="dli_02_0029__p112553479255">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="62.08%" id="mcps1.3.2.2.2.2.2.5.1.4"><p id="dli_02_0029__p1625534732518">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0029__row1525564711252"><td class="cellrowborder" valign="top" width="14.57%" headers="mcps1.3.2.2.2.2.2.5.1.1 "><p id="dli_02_0029__p1525544719251">with-priv</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.08%" headers="mcps1.3.2.2.2.2.2.5.1.2 "><p id="dli_02_0029__p19255194782513">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.27%" headers="mcps1.3.2.2.2.2.2.5.1.3 "><p id="dli_02_0029__p1525624752513">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.08%" headers="mcps1.3.2.2.2.2.2.5.1.4 "><p id="dli_02_0029__p9256164714257">Specifies whether to display the permission information. The value can be <span class="parmvalue" id="dli_02_0029__parmvalue20383181625418"><b>true</b></span> or <span class="parmvalue" id="dli_02_0029__parmvalue3388181685410"><b>false</b></span>. The default value is <span class="parmvalue" id="dli_02_0029__parmvalue63885166545"><b>false</b></span>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0029__row6256154717255"><td class="cellrowborder" valign="top" width="14.57%" headers="mcps1.3.2.2.2.2.2.5.1.1 "><p id="dli_02_0029__p12561747132517">offset</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.08%" headers="mcps1.3.2.2.2.2.2.5.1.2 "><p id="dli_02_0029__p125684710253">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.27%" headers="mcps1.3.2.2.2.2.2.5.1.3 "><p id="dli_02_0029__p725644718253">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.08%" headers="mcps1.3.2.2.2.2.2.5.1.4 "><p id="dli_02_0029__p20256124722515">The value should be no less than <strong id="dli_02_0029__b1014003145416">0</strong>. The default value is <strong id="dli_02_0029__b414013111545">0</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0029__row9256747202516"><td class="cellrowborder" valign="top" width="14.57%" headers="mcps1.3.2.2.2.2.2.5.1.1 "><p id="dli_02_0029__p6257134712520">limit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.08%" headers="mcps1.3.2.2.2.2.2.5.1.2 "><p id="dli_02_0029__p72571247112519">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.27%" headers="mcps1.3.2.2.2.2.2.5.1.3 "><p id="dli_02_0029__p137521156292">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.08%" headers="mcps1.3.2.2.2.2.2.5.1.4 "><p id="dli_02_0029__p1425724719252">Number of returned data records. The value must be greater than or equal to <strong id="dli_02_0029__b167791341545">0</strong>. By default, all data records are returned.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0029__row9257174713251"><td class="cellrowborder" valign="top" width="14.57%" headers="mcps1.3.2.2.2.2.2.5.1.1 "><p id="dli_02_0029__p15257174762514">keyword</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.08%" headers="mcps1.3.2.2.2.2.2.5.1.2 "><p id="dli_02_0029__p925718471251">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.27%" headers="mcps1.3.2.2.2.2.2.5.1.3 "><p id="dli_02_0029__p13257154762515">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.08%" headers="mcps1.3.2.2.2.2.2.5.1.4 "><p id="dli_02_0029__p925744714253">Database name filtering keyword. Fuzzy match is used to obtain all databases whose names contain the keyword.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0029__row15257184752519"><td class="cellrowborder" valign="top" width="14.57%" headers="mcps1.3.2.2.2.2.2.5.1.1 "><p id="dli_02_0029__p1725716478253">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.08%" headers="mcps1.3.2.2.2.2.2.5.1.2 "><p id="dli_02_0029__p1925784752516">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.27%" headers="mcps1.3.2.2.2.2.2.5.1.3 "><p id="dli_02_0029__p192571847202513">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.08%" headers="mcps1.3.2.2.2.2.2.5.1.4 "><p id="dli_02_0029__p1625784782515">Database tags. The format is <strong id="dli_02_0029__b1411818141554">key=value</strong>.</p>
|
|
<ul id="dli_02_0029__ul1334971453714"><li id="dli_02_0029__li153491714193718">Request with one specified tag</li></ul>
|
|
<p id="dli_02_0029__p162579474251">GET /v1.0/{project_id}/databases?offset=0&limit=10&with-priv=true&tags=k1%3Dv1</p>
|
|
<p id="dli_02_0029__p1425710477251">The equal sign (=) is escaped to <strong id="dli_02_0029__b18250124955617">%3D</strong>, <strong id="dli_02_0029__b159410522564">k1</strong> indicates the tag key, and <strong id="dli_02_0029__b1253412566569">v1</strong> indicates the tag value.</p>
|
|
<ul id="dli_02_0029__ul93421618203715"><li id="dli_02_0029__li1134210181379">Request with more than one tag</li></ul>
|
|
<p id="dli_02_0029__p5330162013320">Use commas (,) to separate tags. The commas (,) must be escaped to <strong id="dli_02_0029__b58719504918">%2C</strong>. For example:</p>
|
|
<p id="dli_02_0029__p1253753593511">GET /v1.0/{project_id}/databases?offset=0&limit=10&with-priv=true&tags=k1%3Dv1%2Ck2%3Dv2</p>
|
|
<p id="dli_02_0029__p5738121617364">The equal sign (=) is escaped to <strong id="dli_02_0029__b7875461016">%3D</strong>. <strong id="dli_02_0029__b1379318011112">k1</strong> indicates a tag key, and <strong id="dli_02_0029__b74271166112">v1</strong> indicates the tag value. <strong id="dli_02_0029__b137223297119">k2</strong> indicates another tag key, and <strong id="dli_02_0029__b530019163124">v2</strong> indicates the tag value.</p>
|
|
<p id="dli_02_0029__p3534134782810">Currently, only fuzzy query is supported. Exact query is not supported.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="note" id="dli_02_0029__note1579416518278"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dli_02_0029__p197974592720">The following is an example of the URL containing the <strong id="dli_02_0029__b7924259165618">query</strong> parameter:</p>
|
|
<p id="dli_02_0029__p1066119544271">GET /v1.0/{project_id}/databases?with-priv=<em id="dli_02_0029__i1106156162717">{<i><span class="varname" id="dli_02_0029__varname410625662717">is_with_priv</span></i>}</em>&offset=<em id="dli_02_0029__i171061256112716">{<i><span class="varname" id="dli_02_0029__varname201061156142712">offsetValue</span></i>}</em>&limit=<em id="dli_02_0029__i16106105612275">{<i><span class="varname" id="dli_02_0029__varname61062056182712">limitValue</span></i>}</em>&keyword=<em id="dli_02_0029__i13106256112712">{<i><span class="varname" id="dli_02_0029__varname13106195611279">keywordValue</span></i>}</em>?tags=<em id="dli_02_0029__i1210616564276">{<i><span class="varname" id="dli_02_0029__varname1510625652710">tagsValue</span></i>}</em></p>
|
|
</div></div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="dli_02_0029__sbac34c939f8e4646b61c2604b760765e"><h4 class="sectiontitle">Request</h4><p id="dli_02_0029__p55810808151831">None</p>
|
|
</div>
|
|
<div class="section" id="dli_02_0029__s2bf874ddfa964e6fa245d9464ab1b51a"><h4 class="sectiontitle">Response</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0029__en-us_topic_0069077899_table26748875" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response parameters</caption><thead align="left"><tr id="dli_02_0029__en-us_topic_0069077899_row35695092"><th align="left" class="cellrowborder" valign="top" width="16.3%" id="mcps1.3.4.2.2.5.1.1"><p id="dli_02_0029__a4abbd081d3484947b80555de87614621">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="11.04%" id="mcps1.3.4.2.2.5.1.2"><p id="dli_02_0029__p730017613157">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.16%" id="mcps1.3.4.2.2.5.1.3"><p id="dli_02_0029__en-us_topic_0069077899_p130413216125">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54.50000000000001%" id="mcps1.3.4.2.2.5.1.4"><p id="dli_02_0029__ad74ec8df4f924426b7f5246cf2e91141">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0029__en-us_topic_0069077899_row37381110"><td class="cellrowborder" valign="top" width="16.3%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0029__en-us_topic_0069077899_p7971050">is_success</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.04%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0029__p2030013681514">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.16%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0029__en-us_topic_0069077899_p20256672">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.50000000000001%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0029__p126781313131418">Indicates whether the request is successfully executed. Value <span class="parmvalue" id="dli_02_0029__parmvalue668112716853"><b>true</b></span> indicates that the request is successfully executed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0029__en-us_topic_0069077899_row3163968"><td class="cellrowborder" valign="top" width="16.3%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0029__en-us_topic_0069077899_p54954888">message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.04%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0029__p1430016614153">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.16%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0029__en-us_topic_0069077899_p50204720">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.50000000000001%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0029__a4fa277540d3e42e48cec2027a36ca6bc">System prompt. If execution succeeds, the parameter setting may be left blank.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0029__en-us_topic_0069077899_row24910445"><td class="cellrowborder" valign="top" width="16.3%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0029__en-us_topic_0069077899_p4480178">database_count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.04%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0029__p930112671515">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.16%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0029__en-us_topic_0069077899_p767489">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.50000000000001%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0029__en-us_topic_0069077899_p62166619">Total number of databases.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0029__en-us_topic_0069077899_row21841253"><td class="cellrowborder" valign="top" width="16.3%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0029__en-us_topic_0069077899_p24311098">databases</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.04%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0029__p133280618155">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.16%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0029__en-us_topic_0069077899_p54458150">Array of objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.50000000000001%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0029__en-us_topic_0069077899_p49033996">Database information. For details, see <a href="#dli_02_0029__table119519521616">Table 4</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="dli_02_0029__table119519521616"></a><a name="table119519521616"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0029__table119519521616" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="dli_02_0029__b77792241831">databases</strong> parameters</caption><thead align="left"><tr id="dli_02_0029__row9968510169"><th align="left" class="cellrowborder" valign="top" width="13.950000000000001%" id="mcps1.3.4.3.2.5.1.1"><p id="dli_02_0029__p896350165">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="8.36%" id="mcps1.3.4.3.2.5.1.2"><p id="dli_02_0029__p8966591611">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.520000000000001%" id="mcps1.3.4.3.2.5.1.3"><p id="dli_02_0029__p296153166">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="68.17%" id="mcps1.3.4.3.2.5.1.4"><p id="dli_02_0029__p596185191612">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0029__row17981153163"><td class="cellrowborder" valign="top" width="13.950000000000001%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0029__p2980571611">database_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.36%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0029__p159905141616">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.520000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0029__p29985191615">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="68.17%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0029__p169913561615">Name of a database.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0029__row399354167"><td class="cellrowborder" valign="top" width="13.950000000000001%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0029__p14991658161">owner</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.36%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0029__p8994511619">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.520000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0029__p19910581615">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="68.17%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0029__p189985111613">Creator of a database.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0029__row7990531610"><td class="cellrowborder" valign="top" width="13.950000000000001%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0029__p210015121620">table_number</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.36%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0029__p610016561615">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.520000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0029__p91001057162">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="68.17%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0029__p161009561612">Number of tables in a database.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0029__row510012515164"><td class="cellrowborder" valign="top" width="13.950000000000001%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0029__p131001952167">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.36%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0029__p610015101616">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.520000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0029__p1810019541613">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="68.17%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0029__p1510017531611">Information about a database.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0029__row1694815451363"><td class="cellrowborder" valign="top" width="13.950000000000001%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0029__p6269533134318">enterprise_project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.36%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0029__p15269183364318">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.520000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0029__p5269103315439">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="68.17%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0029__p1326917339437">Enterprise project ID. The value <strong id="dli_02_0029__b12453720831">0</strong> indicates the default enterprise project. </p>
|
|
<div class="note" id="dli_02_0029__note1358194815815"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="dli_02_0029__p16581348175819">Users who have enabled Enterprise Management can set this parameter to bind a specified project.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0029__section121050712911"><h4 class="sectiontitle">Example Request</h4><p id="dli_02_0029__p519013181918">None</p>
|
|
</div>
|
|
<div class="section" id="dli_02_0029__section25311746151747"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="dli_02_0029__screen6423118415185">{
|
|
"is_success": true,
|
|
"message": "",
|
|
"database_count": 1,
|
|
"databases": [
|
|
{
|
|
"database_name": "db2",
|
|
"description": "this is for test",
|
|
"owner": "tenant1",
|
|
"table_number": 15
|
|
|
|
}
|
|
]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="dli_02_0029__sf39cfd445ad24e9e82754fcb0027179d"><h4 class="sectiontitle">Status Codes</h4><p id="dli_02_0029__a04144ca3a08e4576b386c6a98f43a2ae"><a href="#dli_02_0029__tb12870f1c5f24b27abd55ca24264af36">Table 5</a> describes the status code.</p>
|
|
|
|
<div class="tablenoborder"><a name="dli_02_0029__tb12870f1c5f24b27abd55ca24264af36"></a><a name="tb12870f1c5f24b27abd55ca24264af36"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0029__tb12870f1c5f24b27abd55ca24264af36" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Status codes</caption><thead align="left"><tr id="dli_02_0029__r8d54231f95b14c01a5e55e95f3b2e838"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.7.3.2.3.1.1"><p id="dli_02_0029__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_0029__aea1d3bd107bb4c499da79a88832d256c">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0029__r211ad4eb571d4d938e5579998723174e"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0029__a3153e07b3a9749adba92599fe6628fbf">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0029__p104431642124811">The query is successful.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0029__row44937531727"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0029__p184941532219">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0029__p2049413539219">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0029__row65331212142411"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0029__p5537171216249">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0029__p953813124249">Internal service error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0029__section13596141025715"><h4 class="sectiontitle">Error Codes</h4><p id="dli_02_0029__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_0027.html">Database-related APIs</a></div>
|
|
</div>
|
|
</div>
|
|
|