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>
341 lines
24 KiB
HTML
341 lines
24 KiB
HTML
<a name="dli_02_0189"></a><a name="dli_02_0189"></a>
|
|
|
|
<h1 class="topictitle1">Querying an Enhanced Datasource Connection</h1>
|
|
<div id="body1565767253378"><div class="section" id="dli_02_0189__section13287428103611"><h4 class="sectiontitle">Function</h4><p id="dli_02_0189__p184751628133613">This API is used to query the created enhanced datasource connections.</p>
|
|
</div>
|
|
<div class="section" id="dli_02_0189__section52924285361"><h4 class="sectiontitle">URI</h4><ul id="dli_02_0189__ul1547562815364"><li id="dli_02_0189__li1847520284363">URI format<p id="dli_02_0189__p13994132964119"><a name="dli_02_0189__li1847520284363"></a><a name="li1847520284363"></a>GET /v2.0/{project_id}/datasource/enhanced-connections/{connection_id}</p>
|
|
</li><li id="dli_02_0189__li1047502816366">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0189__table18299172853614" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="dli_02_0189__row947592853614"><th align="left" class="cellrowborder" valign="top" width="19.661966196619662%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="dli_02_0189__p1347513282368">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.61126112611261%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="dli_02_0189__p74757287366">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="11.761176117611761%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="dli_02_0189__p1441651611233">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.965596559655964%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="dli_02_0189__p1475182833610">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0189__row16475152833619"><td class="cellrowborder" valign="top" width="19.661966196619662%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0189__p1547552803615">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.61126112611261%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0189__p19475828123613">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.761176117611761%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0189__p1641681614234">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.965596559655964%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0189__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_0189__row16535918171816"><td class="cellrowborder" valign="top" width="19.661966196619662%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0189__p84192317188">connection_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.61126112611261%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0189__p1941914313180">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.761176117611761%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0189__p1541612162236">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.965596559655964%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0189__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_0189__section1831452873613"><h4 class="sectiontitle">Request</h4><p id="dli_02_0189__p149001951163817">None</p>
|
|
</div>
|
|
<div class="section" id="dli_02_0189__section134515287360"><h4 class="sectiontitle">Response</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0189__table8348112818368" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameters</caption><thead align="left"><tr id="dli_02_0189__row11478132863610"><th align="left" class="cellrowborder" valign="top" width="20.607939206079394%" id="mcps1.3.4.2.2.5.1.1"><p id="dli_02_0189__p04782028173616">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="10.93890610938906%" id="mcps1.3.4.2.2.5.1.2"><p id="dli_02_0189__p3263114452616">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.408159184081594%" id="mcps1.3.4.2.2.5.1.3"><p id="dli_02_0189__p34781128193612">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.04499550044995%" id="mcps1.3.4.2.2.5.1.4"><p id="dli_02_0189__p1347917286364">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0189__row18479182813362"><td class="cellrowborder" valign="top" width="20.607939206079394%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0189__p3887202462117">is_success</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.93890610938906%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0189__p122631544122613">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0189__p1888762420218">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.04499550044995%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0189__p15887824122119">Indicates whether the request is successfully executed. Value <strong id="dli_02_0189__b10120111105816">true</strong> indicates that the request is successfully executed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row1588462431911"><td class="cellrowborder" valign="top" width="20.607939206079394%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0189__p1887924172113">message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.93890610938906%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0189__p726315446266">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0189__p19887624142119">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.04499550044995%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0189__p1488772410218">System prompt. If execution succeeds, the parameter setting may be left blank.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row11325133161917"><td class="cellrowborder" valign="top" width="20.607939206079394%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0189__p13887724132113">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.93890610938906%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0189__p13263164482611">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0189__p128873240215">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.04499550044995%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0189__p4887324102110">Connection ID. Identifies the UUID of a datasource connection.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row127038355479"><td class="cellrowborder" valign="top" width="20.607939206079394%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0189__p1588772472117">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.93890610938906%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0189__p202631544192613">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0189__p1088715246216">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.04499550044995%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0189__p12887132482113">User-defined connection name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row19638124013193"><td class="cellrowborder" valign="top" width="20.607939206079394%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0189__p18876241211">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.93890610938906%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0189__p1726354418261">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0189__p138871024112112">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.04499550044995%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0189__p121716565343">Connection status. The options are as follows:</p>
|
|
<ul id="dli_02_0189__ul172719221353"><li id="dli_02_0189__li72713223353">Active: The connection has been activated.</li><li id="dli_02_0189__li3272222351">DELETED: The connection has been deleted.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row19639104016191"><td class="cellrowborder" valign="top" width="20.607939206079394%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0189__p14901162017492">available_queue_info</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.93890610938906%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0189__p42631144162612">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0189__p490172018491">Array of Objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.04499550044995%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0189__p69011020174911">For details about how to create a datasource connection for each queue, see <a href="#dli_02_0189__table9559942155012">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row028593792014"><td class="cellrowborder" valign="top" width="20.607939206079394%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0189__p00741174913">dest_vpc_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.93890610938906%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0189__p112631244132615">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0189__p12015419499">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.04499550044995%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0189__p1603412496">The VPC ID of the connected service. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row1978546145010"><td class="cellrowborder" valign="top" width="20.607939206079394%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0189__p3134111617507">dest_network_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.93890610938906%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0189__p172634443267">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0189__p1913520169503">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.04499550044995%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0189__p713516162500">Subnet ID of the connected service. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row112851837172015"><td class="cellrowborder" valign="top" width="20.607939206079394%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0189__p178891324162118">create_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.93890610938906%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0189__p12631344142614">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0189__p7889162416214">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.04499550044995%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0189__p188891524202119">Time when a link is created. The time is converted to a UTC timestamp.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row131236161719"><td class="cellrowborder" valign="top" width="20.607939206079394%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0189__p13143661714">hosts</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.93890610938906%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0189__p1263244152615">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.408159184081594%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0189__p12311336151718">Array of Objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.04499550044995%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0189__p1228216154115">User-defined host information. For details, see <a href="#dli_02_0189__table6991727151310">hosts parameter description</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="dli_02_0189__table9559942155012"></a><a name="table9559942155012"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0189__table9559942155012" frame="border" border="1" rules="all"><caption><b>Table 3 </b>available_queue_info parameter description</caption><thead align="left"><tr id="dli_02_0189__row18672164215014"><th align="left" class="cellrowborder" valign="top" width="17.21%" id="mcps1.3.4.3.2.5.1.1"><p id="dli_02_0189__p10672842125018">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="11.41%" id="mcps1.3.4.3.2.5.1.2"><p id="dli_02_0189__p040135682712">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.64%" id="mcps1.3.4.3.2.5.1.3"><p id="dli_02_0189__p1167254235019">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="58.74%" id="mcps1.3.4.3.2.5.1.4"><p id="dli_02_0189__p167254255015">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0189__row1667224212505"><td class="cellrowborder" valign="top" width="17.21%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0189__p767212427500">peer_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.41%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0189__p340165612712">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.64%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0189__p467214245015">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.74%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0189__p6672114213505">ID of a datasource connection.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row126721421503"><td class="cellrowborder" valign="top" width="17.21%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0189__p1267264216500">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.41%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0189__p13416563278">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.64%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0189__p6672174265017">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.74%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0189__p167294210507">Connection status. For details about the status code, see <a href="#dli_02_0189__table13946174752513">Table 5</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row76738424502"><td class="cellrowborder" valign="top" width="17.21%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0189__p10673124216507">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.41%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0189__p124155616271">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.64%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0189__p9673142155011">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.74%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0189__p136731942135015">Name of a queue.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row367334225010"><td class="cellrowborder" valign="top" width="17.21%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0189__p7673174213507">err_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.41%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0189__p194113561271">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.64%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0189__p176739423506">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.74%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0189__p17673164235011">Detailed error message when the status is <strong id="dli_02_0189__b17582102911288">FAILED</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row26735428509"><td class="cellrowborder" valign="top" width="17.21%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0189__p4673174285010">update_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.41%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0189__p124111565277">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.64%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0189__p196732421506">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.74%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0189__p126731142135012">Time when the available queue list was updated.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="dli_02_0189__table6991727151310"></a><a name="table6991727151310"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0189__table6991727151310" frame="border" border="1" rules="all"><caption><b>Table 4 </b>hosts parameter description</caption><thead align="left"><tr id="dli_02_0189__row159942715132"><th align="left" class="cellrowborder" valign="top" width="12.46%" id="mcps1.3.4.4.2.5.1.1"><p id="dli_02_0189__p1999162711134">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="11.49%" id="mcps1.3.4.4.2.5.1.2"><p id="dli_02_0189__p1935512220284">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.98%" id="mcps1.3.4.4.2.5.1.3"><p id="dli_02_0189__p101006279131">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="59.07%" id="mcps1.3.4.4.2.5.1.4"><p id="dli_02_0189__p1210019278137">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0189__row9100162701310"><td class="cellrowborder" valign="top" width="12.46%" headers="mcps1.3.4.4.2.5.1.1 "><p id="dli_02_0189__p31002272131">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.49%" headers="mcps1.3.4.4.2.5.1.2 "><p id="dli_02_0189__p83551322122816">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.98%" headers="mcps1.3.4.4.2.5.1.3 "><p id="dli_02_0189__p91001127191314">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.07%" headers="mcps1.3.4.4.2.5.1.4 "><p id="dli_02_0189__p7100427171315">The user-defined host name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row17100192717138"><td class="cellrowborder" valign="top" width="12.46%" headers="mcps1.3.4.4.2.5.1.1 "><p id="dli_02_0189__p19100182711311">ip</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.49%" headers="mcps1.3.4.4.2.5.1.2 "><p id="dli_02_0189__p1035513227289">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.98%" headers="mcps1.3.4.4.2.5.1.3 "><p id="dli_02_0189__p10100227101313">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.07%" headers="mcps1.3.4.4.2.5.1.4 "><p id="dli_02_0189__p181004273132">The IPv4 address of the host.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="dli_02_0189__table13946174752513"></a><a name="table13946174752513"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0189__table13946174752513" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Connection status</caption><thead align="left"><tr id="dli_02_0189__row1994634702518"><th align="left" class="cellrowborder" valign="top" width="22.672267226722674%" id="mcps1.3.4.5.2.4.1.1"><p id="dli_02_0189__p4609112117266">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="27.662766276627664%" id="mcps1.3.4.5.2.4.1.2"><p id="dli_02_0189__p146091921172617">Definition</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="49.66496649664967%" id="mcps1.3.4.5.2.4.1.3"><p id="dli_02_0189__p7609192132613">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0189__row20946164712252"><td class="cellrowborder" valign="top" width="22.672267226722674%" headers="mcps1.3.4.5.2.4.1.1 "><p id="dli_02_0189__p1460915210264">CREATING</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.662766276627664%" headers="mcps1.3.4.5.2.4.1.2 "><p id="dli_02_0189__p6609112119268">Creating</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.66496649664967%" headers="mcps1.3.4.5.2.4.1.3 "><p id="dli_02_0189__p136091821192618">The datasource connection is being created.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row494612478259"><td class="cellrowborder" valign="top" width="22.672267226722674%" headers="mcps1.3.4.5.2.4.1.1 "><p id="dli_02_0189__p166098217269">ACTIVE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.662766276627664%" headers="mcps1.3.4.5.2.4.1.2 "><p id="dli_02_0189__p1960902152610">Active</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.66496649664967%" headers="mcps1.3.4.5.2.4.1.3 "><p id="dli_02_0189__p17609192112617">The datasource connection has been created, and the connection to the destination address is normal.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row1294694782513"><td class="cellrowborder" valign="top" width="22.672267226722674%" headers="mcps1.3.4.5.2.4.1.1 "><p id="dli_02_0189__p160952172619">FAILED</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.662766276627664%" headers="mcps1.3.4.5.2.4.1.2 "><p id="dli_02_0189__p16096213265">Failed</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.66496649664967%" headers="mcps1.3.4.5.2.4.1.3 "><p id="dli_02_0189__p1660911214266">Failed to create a datasource connection.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0189__section1217010661112"><h4 class="sectiontitle">Example Request</h4><p id="dli_02_0189__p6101181617111">None</p>
|
|
</div>
|
|
<div class="section" id="dli_02_0189__section910624615450"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="dli_02_0189__screen14492195603016">{
|
|
"is_success": true,
|
|
"message": "",
|
|
"name": "withvpc",
|
|
"id": "4c693ecc-bab8-4113-a838-129cedc9a563",
|
|
"available_queue_info": [
|
|
{
|
|
"status": "ACTIVE",
|
|
"name": "resource_mode_1",
|
|
"peer_id": "d2ae6628-fa37-4e04-806d-c59c497492d1",
|
|
"err_msg": "",
|
|
"update_time": 1566889577861
|
|
}
|
|
],
|
|
"dest_vpc_id": "22094d8f-c310-4621-913d-4c4d655d8495",
|
|
"dest_network_id": "78f2562a-36e4-4b39-95b9-f5aab22e1281",
|
|
"create_time": 1566888011125,
|
|
"status": "ACTIVE",
|
|
"hosts": [
|
|
{
|
|
"ip":"192.168.0.1",
|
|
"name":"ecs-97f8-0001"
|
|
},
|
|
{
|
|
"ip":"192.168.0.2",
|
|
"name":"ecs-97f8-0002"
|
|
}
|
|
]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="dli_02_0189__sf39cfd445ad24e9e82754fcb0027179d"><h4 class="sectiontitle">Status Codes</h4><p id="dli_02_0189__a04144ca3a08e4576b386c6a98f43a2ae"><a href="#dli_02_0189__tb12870f1c5f24b27abd55ca24264af36">Table 6</a> describes the status code.</p>
|
|
|
|
<div class="tablenoborder"><a name="dli_02_0189__tb12870f1c5f24b27abd55ca24264af36"></a><a name="tb12870f1c5f24b27abd55ca24264af36"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0189__tb12870f1c5f24b27abd55ca24264af36" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Status codes</caption><thead align="left"><tr id="dli_02_0189__r8d54231f95b14c01a5e55e95f3b2e838"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.7.3.2.3.1.1"><p id="dli_02_0189__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_0189__aea1d3bd107bb4c499da79a88832d256c">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0189__r211ad4eb571d4d938e5579998723174e"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0189__a3153e07b3a9749adba92599fe6628fbf">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0189__p104431642124811">The query is successful.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row44937531727"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0189__p184941532219">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0189__p2049413539219">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0189__row65331212142411"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0189__p5537171216249">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0189__p953813124249">Internal service error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0189__section13596141025715"><h4 class="sectiontitle">Error Codes</h4><p id="dli_02_0189__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>
|
|
|