forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
112 lines
7.1 KiB
HTML
112 lines
7.1 KiB
HTML
<a name="en-us_topic_0055025318"></a><a name="en-us_topic_0055025318"></a>
|
|
|
|
<h1 class="topictitle1">Querying a Connection</h1>
|
|
<div id="body3738651"><div class="section" id="en-us_topic_0055025318__section17487184"><h4 class="sectiontitle">Function</h4><p id="en-us_topic_0055025318__p51221589">This API is used to query a connection.</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0055025318__section23166934"><h4 class="sectiontitle">URI</h4><p id="en-us_topic_0055025318__p47641446143520">GET /v2.0/dcaas/direct-connects/{direct_connect_id}</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0055025318__table124068816367" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="en-us_topic_0055025318__row15414138103616"><th align="left" class="cellrowborder" valign="top" width="19.388061193880613%" id="mcps1.3.2.3.2.5.1.1"><p id="en-us_topic_0055025318__p12422178183614">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.42785721427857%" id="mcps1.3.2.3.2.5.1.2"><p id="en-us_topic_0055025318__p1042220853620"><strong id="en-us_topic_0055025318__b842352706165439">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.328367163283673%" id="mcps1.3.2.3.2.5.1.3"><p id="en-us_topic_0055025318__p64295813620"><strong id="en-us_topic_0055025318__b842352706192549">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="42.85571442855714%" id="mcps1.3.2.3.2.5.1.4"><p id="en-us_topic_0055025318__p642910843610"><strong id="en-us_topic_0055025318__b84235270615331">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0055025318__row13437788366"><td class="cellrowborder" valign="top" width="19.388061193880613%" headers="mcps1.3.2.3.2.5.1.1 "><p id="en-us_topic_0055025318__p1243714817363">direct_connect_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.42785721427857%" headers="mcps1.3.2.3.2.5.1.2 "><p id="en-us_topic_0055025318__p1444416814364">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.328367163283673%" headers="mcps1.3.2.3.2.5.1.3 "><p id="en-us_topic_0055025318__p34443811365">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42.85571442855714%" headers="mcps1.3.2.3.2.5.1.4 "><p id="en-us_topic_0055025318__p24447810369">Specifies the connection ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0055025318__section64582388"><h4 class="sectiontitle">Request</h4><p id="en-us_topic_0055025318__p65639508397">None</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0055025318__section44370581"><a name="en-us_topic_0055025318__section44370581"></a><a name="section44370581"></a><h4 class="sectiontitle">Response</h4><p id="en-us_topic_0055025318__p42735278143140"><a href="#en-us_topic_0055025318__table7306830153125">Table 2</a> lists the response parameter.</p>
|
|
|
|
<div class="tablenoborder"><a name="en-us_topic_0055025318__table7306830153125"></a><a name="table7306830153125"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0055025318__table7306830153125" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameter</caption><thead align="left"><tr id="en-us_topic_0055025318__row59179138153125"><th align="left" class="cellrowborder" valign="top" width="23.14%" id="mcps1.3.4.3.2.4.1.1"><p id="en-us_topic_0055025318__p6185651415404">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25.650000000000002%" id="mcps1.3.4.3.2.4.1.2"><p id="en-us_topic_0055025318__p4432173215404"><strong id="en-us_topic_0055025318__b1335373826">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.21%" id="mcps1.3.4.3.2.4.1.3"><p id="en-us_topic_0055025318__p1217810515404">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0055025318__row37905744153125"><td class="cellrowborder" valign="top" width="23.14%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en-us_topic_0055025318__p50466461153125">direct_connect</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.650000000000002%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en-us_topic_0055025318__p61251530153125">Dictionary</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.21%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en-us_topic_0055025318__p23412453153125">Specifies the <strong id="en-us_topic_0055025318__b842352706185536">direct_connect</strong> object.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="en-us_topic_0055025318__p1825510517222">For details about the <strong id="en-us_topic_0055025318__b1278515695113">direct_connect</strong> field, see <a href="en-us_topic_0055025314.html#en-us_topic_0055025314__en-us_topic_0070676569_table49902238182444">Table 1</a>.</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0055025318__section63790914"><h4 class="sectiontitle">Examples</h4><ul id="en-us_topic_0055025318__ul71261140153711"><li id="en-us_topic_0055025318__li21261540193711">Example request</li></ul>
|
|
<pre class="screen" id="en-us_topic_0055025318__screen15604521">GET /v2.0/dcaas/direct-connects/{direct_connect_id}</pre>
|
|
</div>
|
|
<ul id="en-us_topic_0055025318__ul1335395017373"><li id="en-us_topic_0055025318__li1635315020376"><a name="en-us_topic_0055025318__li1635315020376"></a><a name="li1635315020376"></a>Example response<pre class="screen" id="en-us_topic_0055025318__screen192561423382">{
|
|
"direct_connects" : {
|
|
"name": "direct connect",
|
|
"id": "294ebeeb-62dd-4ece-99f5-73055df6d835",
|
|
"description": "",
|
|
"tenant_id": "0605768ad980d5762f8ac010b919754c",
|
|
"type": "hosted",
|
|
"hosting_id": "0e85c677-6eb5-4ef6-87a7-74d4586be895",
|
|
"vlan": 228,
|
|
"charge_mode": null,
|
|
"port_type": "1G",
|
|
"bandwidth": 2,
|
|
"location": "Biere",
|
|
"peer_location": "",
|
|
"device_id": "18.8.215.131",
|
|
"interface_name": "Eth-Trunk2",
|
|
"redundant_id": null,
|
|
"provider": "OTC",
|
|
"provider_status": "ACTIVE",
|
|
"status": "ACTIVE",
|
|
"apply_time": "2022-12-08T01:59:36.000Z",
|
|
"reason": null,
|
|
"admin_state_up": true,
|
|
"order_id": null,
|
|
"product_id": null,
|
|
"spec_code": null,
|
|
"applicant": null,
|
|
"mobile": null,
|
|
"email": null,
|
|
"create_time": "2022-12-08T01:59:36.000Z",
|
|
"region_id": null,
|
|
"service_key": null,
|
|
"cable_label": null,
|
|
"peer_port_type": null,
|
|
"peer_provider": null,
|
|
"onestop_product_id": null,
|
|
"building_line_product_id": null,
|
|
"last_onestop_product_id": null,
|
|
"period_type": null,
|
|
"period_num": null,
|
|
"vgw_type": "default",
|
|
"lag_id": null
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
<div class="section" id="en-us_topic_0055025318__section85501627143317"><h4 class="sectiontitle">Status Codes</h4><p id="en-us_topic_0055025318__p176816317298">For details, see <a href="en-us_topic_0055025342.html">Common Status Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0055025313.html">Connection</a></div>
|
|
</div>
|
|
</div>
|
|
|