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>
312 lines
25 KiB
HTML
312 lines
25 KiB
HTML
<a name="en-us_topic_0055025315"></a><a name="en-us_topic_0055025315"></a>
|
|
|
|
<h1 class="topictitle1">Creating a Connection</h1>
|
|
<div id="body27824865"><div class="section" id="en-us_topic_0055025315__section54540374"><h4 class="sectiontitle">Function</h4><p id="en-us_topic_0055025315__p57902635">This API is used to create a hosted connection.</p>
|
|
<div class="note" id="en-us_topic_0055025315__note74461744413"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en-us_topic_0055025315__p12446876447">This API can only be used to create hosted connections.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0055025315__section21101319"><h4 class="sectiontitle">URI</h4><p id="en-us_topic_0055025315__p1014814366318">POST /v2.0/dcaas/direct-connects</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0055025315__table7306830153125" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="en-us_topic_0055025315__row59179138153125"><th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.2.3.2.5.1.1"><p id="en-us_topic_0055025315__p6185651415404">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.2.3.2.5.1.2"><p id="en-us_topic_0055025315__p4432173215404">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.2.3.2.5.1.3"><p id="en-us_topic_0055025315__p3329052615404">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.3.2.5.1.4"><p id="en-us_topic_0055025315__p1217810515404">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0055025315__row37905744153125"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.2.3.2.5.1.1 "><p id="en-us_topic_0055025315__p50466461153125">direct_connect</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.3.2.5.1.2 "><p id="en-us_topic_0055025315__p61251530153125">Dictionary</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.3.2.5.1.3 "><p id="en-us_topic_0055025315__p62426879153125">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.5.1.4 "><p id="en-us_topic_0055025315__p23412453153125">Specifies the <strong id="en-us_topic_0055025315__b842352706163957">direct_connect</strong> object.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0055025315__section31485239"><h4 class="sectiontitle">Request</h4><p id="en-us_topic_0055025315__p21078426103641">For details about the <strong id="en-us_topic_0055025315__b84235270617391">direct_connect</strong> field, see <a href="#en-us_topic_0055025315__table26517876">Table 2</a>.</p>
|
|
|
|
<div class="tablenoborder"><a name="en-us_topic_0055025315__table26517876"></a><a name="table26517876"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0055025315__table26517876" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="en-us_topic_0055025315__row40476817"><th align="left" class="cellrowborder" valign="top" width="18.81188118811881%" id="mcps1.3.3.3.2.5.1.1"><p id="en-us_topic_0055025315__p57396781"><strong id="en-us_topic_0055025315__b8423527069918">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.861386138613863%" id="mcps1.3.3.3.2.5.1.2"><p id="en-us_topic_0055025315__p18627652"><strong id="en-us_topic_0055025315__b842352706165439">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.82178217821782%" id="mcps1.3.3.3.2.5.1.3"><p id="en-us_topic_0055025315__p32444864"><strong id="en-us_topic_0055025315__b842352706192549">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="49.504950495049506%" id="mcps1.3.3.3.2.5.1.4"><p id="en-us_topic_0055025315__p10788361"><strong id="en-us_topic_0055025315__b84235270616553">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0055025315__row1442054"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p11555769212825">tenant_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p46548661212825">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p40193754212825">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p56409663212825">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row56455847212711"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p60046645212825">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p60303421212825">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p43405365212825">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p50361529212825">Specifies the connection name.</p>
|
|
<p id="en-us_topic_0055025315__p207812037202815"><span id="en-us_topic_0055025315__text15699204710333">Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.</span></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row17304671212718"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p21811400212825">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p10454292212825">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p30649615212825">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p2345077921328">Provides supplementary information about the connection.</p>
|
|
<p id="en-us_topic_0055025315__p16450248935"><span id="en-us_topic_0055025315__text243011117548">Angle brackets (<>) are not allowed.</span></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row10181252212730"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p33947790212825">port_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p24798963212825">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p20471702212825">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p14661139118">Specifies the type of the port used by the connection. The value can be <strong id="en-us_topic_0055025315__b756616343571">1G</strong>, <strong id="en-us_topic_0055025315__b05665340571">10G</strong>, <strong id="en-us_topic_0055025315__b5567234175719">40G</strong>, or <strong id="en-us_topic_0055025315__b65679344572">100G</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row12404882212734"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p17969725212825">bandwidth</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p15690831212825">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p31440261212825">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p3259456521328">Specifies the bandwidth of the connection in Mbit/s.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row13373700212741"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p39007376212955">location</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p2805339212955">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p43667943212955">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p859792021328">Specifies the connection access location.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row568472521295"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p35118572212955">peer_location</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p46823096212955">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p59054635212955">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p5662013921328">Specifies the physical location of the peer device accessed by the connection, specific to the street or data center name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row938903521299"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p61193031212955">device_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p32925369212955">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p34771507212955">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p4654985521328">Specifies the gateway device ID of the connection.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row47530080212912"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p18777601212955">interface_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p41025697212955">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p63373303212955">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p3850248621328">Specifies the name of the interface accessed by the connection.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row57761938115652"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p48205386115652">redundant_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p5189660115752">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p17709321115752">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p2875131911580">Specifies the ID of the redundant connection using the same gateway.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row54509260212915"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p17229947212955">provider</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p61142987212955">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p65804377212955">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p2055217021328">Specifies the carrier who provides the leased line.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row62300161212918"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p43762504212955">provider_status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p35371259212955">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p21643169212955">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p28964426203734">Specifies the status of the carrier's leased line.</p>
|
|
<p id="en-us_topic_0055025315__p3389609721328">The value can be <strong id="en-us_topic_0055025315__b842352706171439">ACTIVE</strong> or <strong id="en-us_topic_0055025315__b842352706171443">DOWN</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row39647359112012"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p1555872112023">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p58916789112023">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p7530619112023">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p168021375614">Specifies the connection type. The value can only be <strong id="en-us_topic_0055025315__b790639356">hosted</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row5337525611209"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p12222720112023">hosting_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p50516226112023">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p65282521112023">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p53392877112023">Specifies the ID of the operations connection on which the hosted connection is created.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row21368111958"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p56574156112023">charge_mode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p19103944112023">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p3915665112023">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p3200428141913">Specifies the billing mode. This parameter is not mandatory. The value can only be <strong id="en-us_topic_0055025315__b41301431132417">port</strong> for operations connections.</p>
|
|
<p id="en-us_topic_0055025315__p1911160151916">This parameter is not possible to be used for hosted connections.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row13082768154933"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p36324518154942">order_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p56604823154942">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p21587982154942">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p3796080154942">Specifies the order number of the connection.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row29968911154930"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p15879398154942">product_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p11162871154942">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p31777360154942">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p23829402154942">Specifies the product ID corresponding to the connection's order.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row24943363212922"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p12636115212955">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p19656103212955">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p8052318212955">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p8311016203710">Specifies the connection status.</p>
|
|
<p id="en-us_topic_0055025315__p2927466021328">The value can be <strong id="en-us_topic_0055025315__b84235270617169">ACTIVE</strong>, <strong id="en-us_topic_0055025315__b842352706171613">DOWN</strong>, <strong id="en-us_topic_0055025315__b842352706171618">BUILD</strong>, <strong id="en-us_topic_0055025315__b842352706171622">ERROR</strong>, <strong id="en-us_topic_0055025315__b842352706171633">PENDING_DELETE</strong>, <strong id="en-us_topic_0055025315__b842352706231627">DELETED</strong>, <strong id="en-us_topic_0055025315__b842352706171637">APPLY</strong>, <strong id="en-us_topic_0055025315__b842352706171640">DENY</strong>, <strong id="en-us_topic_0055025315__b842352706171644">PENDING_PAY</strong>, <strong id="en-us_topic_0055025315__b842352706171648">PAID</strong>, <strong id="en-us_topic_0055025315__b842352706231650">ORDERING</strong>, <strong id="en-us_topic_0055025315__b84235270615185">ACCEPT,</strong> or <strong id="en-us_topic_0055025315__b842352706231656">REJECTED</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0055025315__row59943627212941"><td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en-us_topic_0055025315__p25408944212955">admin_state_up</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en-us_topic_0055025315__p47722852212955">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en-us_topic_0055025315__p2012153212955">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.504950495049506%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en-us_topic_0055025315__p29293435203715">Specifies the administrative status of the connection.</p>
|
|
<p id="en-us_topic_0055025315__p895390621328">The value can be <strong id="en-us_topic_0055025315__b842352706154840">true</strong> or <strong id="en-us_topic_0055025315__b842352706154844">false</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0055025315__section14931696"><h4 class="sectiontitle">Response</h4><p id="en-us_topic_0055025315__p42735278143140"><a href="#en-us_topic_0055025315__table50787760154022">Table 3</a> lists the response parameter.</p>
|
|
|
|
<div class="tablenoborder"><a name="en-us_topic_0055025315__table50787760154022"></a><a name="table50787760154022"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0055025315__table50787760154022" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response parameter</caption><thead align="left"><tr id="en-us_topic_0055025315__row48608566154022"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.4.3.2.4.1.1"><p id="en-us_topic_0055025315__p44979764154022">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.000000000000004%" id="mcps1.3.4.3.2.4.1.2"><p id="en-us_topic_0055025315__p19482271154022"><strong id="en-us_topic_0055025315__b250889441">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="42%" id="mcps1.3.4.3.2.4.1.3"><p id="en-us_topic_0055025315__p47904218154022">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0055025315__row55036410154022"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en-us_topic_0055025315__p28764198154022">direct_connect</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.000000000000004%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en-us_topic_0055025315__p48198727154022">Dictionary</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en-us_topic_0055025315__p14887047154022">Specifies the <strong id="en-us_topic_0055025315__b84235270616488">direct_connect</strong> object.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="en-us_topic_0055025315__p515284671719">For details about the <strong id="en-us_topic_0055025315__b14391349204914">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_0055025315__section38241653113834"><h4 class="sectiontitle">Examples</h4><ul id="en-us_topic_0055025315__ul115651283418"><li id="en-us_topic_0055025315__li10561712193411">Example request<pre class="screen" id="en-us_topic_0055025315__screen37309928112646">POST /v2.0/dcaas/direct-connects
|
|
{
|
|
"direct_connect" : {
|
|
"name": "client-dc-55df",
|
|
"bandwidth": 2,
|
|
"description": "",
|
|
"type": "hosted",
|
|
"vlan": "1234",
|
|
"port_type": "1G",
|
|
"location": "Biere",
|
|
"provider": "OTC",
|
|
"hosting_id": "07fa7f82-826f-4bf1-9a90-8364e53b91f4",
|
|
"tenant_id": "06057682ed80d5762f25c00b5deb794a"
|
|
}
|
|
} </pre>
|
|
</li></ul>
|
|
</div>
|
|
<ul id="en-us_topic_0055025315__ul11972112633419"><li id="en-us_topic_0055025315__li2972102623411">Example response<pre class="screen" id="en-us_topic_0055025315__screen18613164313419">{
|
|
"direct_connect" : {
|
|
"id" : "10a91e67-90e9-4b06-87c8-e762296fada1",
|
|
"name" : "client-dc-65de",
|
|
"description" : "",
|
|
"tenant_id" : "06057682ed80d5762f25c00b5deb794a",
|
|
"type" : "hosted",
|
|
"hosting_id" : "07fa7f82-826f-4bf1-9a90-8364e53b91f4",
|
|
"vlan" : 1234,
|
|
"charge_mode" : null,
|
|
"port_type" : "1G",
|
|
"bandwidth" : 2,
|
|
"location" : "Biere",
|
|
"peer_location" : "",
|
|
"device_id" : "18.8.215.131",
|
|
"provider" : "OTC",
|
|
"provider_status" : "ACTIVE",
|
|
"status" : "BUILD",
|
|
"apply_time" : "2023-02-12T23:46:26.000Z",
|
|
"reason" : null,
|
|
"admin_state_up" : true,
|
|
"order_id" : null,
|
|
"product_id" : null,
|
|
"spec_code" : null,
|
|
"create_time" : "2023-02-12T23:46:26.000Z",
|
|
"peer_port_type" : null,
|
|
"peer_provider" : null,
|
|
"onestop_product_id" : null,
|
|
"building_line_product_id" : null,
|
|
"last_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_0055025315__section6416329132915"><h4 class="sectiontitle">Status Codes</h4><p id="en-us_topic_0055025315__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>
|
|
|