doc-exports/docs/vpc/api-ref/vpc_peering_0003.html
Qin Ying, Fan 310d2d9eb1 VPC API 20230106 version
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>
2024-02-06 08:38:37 +00:00

277 lines
22 KiB
HTML

<a name="vpc_peering_0003"></a><a name="vpc_peering_0003"></a>
<h1 class="topictitle1">Creating a VPC Peering Connection</h1>
<div id="body1504753416893"><div class="section" id="vpc_peering_0003__section18987589718"><h4 class="sectiontitle">Function</h4><p id="vpc_peering_0003__p13145159777">This API is used to create a VPC peering connection.</p>
</div>
<p id="vpc_peering_0003__p2752547116550">If you create a VPC peering connection with another VPC of your own, the connection is created without the need for you to accept the connection.</p>
<p id="vpc_peering_0003__p2372251216328">If you create a VPC peering connection with a VPC of another tenant, the peer tenant must accept the connection so that the connection can be created. If the peer tenant refuses the connection, it cannot be created.</p>
<div class="section" id="vpc_peering_0003__section29889818711"><h4 class="sectiontitle">URI</h4><p id="vpc_peering_0003__p17477433151613">POST /v2.0/vpc/peerings</p>
</div>
<div class="section" id="vpc_peering_0003__section39941481775"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_peering_0003__table1699419817711" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request parameter</caption><thead align="left"><tr id="vpc_peering_0003__row71471891872"><th align="left" class="cellrowborder" valign="top" width="14.14%" id="mcps1.3.5.2.2.5.1.1"><p id="vpc_peering_0003__p11147299719">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="8.129999999999999%" id="mcps1.3.5.2.2.5.1.2"><p id="vpc_peering_0003__p81044352112"><strong id="vpc_peering_0003__b84235270615219">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.09%" id="mcps1.3.5.2.2.5.1.3"><p id="vpc_peering_0003__p5147295710">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="67.64%" id="mcps1.3.5.2.2.5.1.4"><p id="vpc_peering_0003__p3147493713">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_peering_0003__row314712915720"><td class="cellrowborder" valign="top" width="14.14%" headers="mcps1.3.5.2.2.5.1.1 "><p id="vpc_peering_0003__p31471491176">peering</p>
</td>
<td class="cellrowborder" valign="top" width="8.129999999999999%" headers="mcps1.3.5.2.2.5.1.2 "><p id="vpc_peering_0003__p31074342118">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="10.09%" headers="mcps1.3.5.2.2.5.1.3 "><p id="vpc_peering_0003__p17147129372"><a href="#vpc_peering_0003__table1026243410414">peering</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="67.64%" headers="mcps1.3.5.2.2.5.1.4 "><p id="vpc_peering_0003__p1036719511614">Specifies the VPC peering connection. For details, see <a href="#vpc_peering_0003__table1026243410414">Table 2</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="vpc_peering_0003__table1026243410414"></a><a name="table1026243410414"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_peering_0003__table1026243410414" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Description of the <strong id="vpc_peering_0003__b9624159153311">peering</strong> field</caption><thead align="left"><tr id="vpc_peering_0003__row145386341548"><th align="left" class="cellrowborder" valign="top" width="23.18%" id="mcps1.3.5.3.2.5.1.1"><p id="vpc_peering_0003__p553843415417"><strong id="vpc_peering_0003__b217918212349">Attribute</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.69%" id="mcps1.3.5.3.2.5.1.2"><p id="vpc_peering_0003__p98691347587"><strong id="vpc_peering_0003__b42607311344">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21.67%" id="mcps1.3.5.3.2.5.1.3"><p id="vpc_peering_0003__p453814344418"><strong id="vpc_peering_0003__b04994411346">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40.46%" id="mcps1.3.5.3.2.5.1.4"><p id="vpc_peering_0003__p13539183410412"><strong id="vpc_peering_0003__b842714583411">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_peering_0003__row185391134449"><td class="cellrowborder" valign="top" width="23.18%" headers="mcps1.3.5.3.2.5.1.1 "><p id="vpc_peering_0003__p15540123413417">name</p>
</td>
<td class="cellrowborder" valign="top" width="14.69%" headers="mcps1.3.5.3.2.5.1.2 "><p id="vpc_peering_0003__p17869133485814">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="21.67%" headers="mcps1.3.5.3.2.5.1.3 "><p id="vpc_peering_0003__p85405341547">String</p>
</td>
<td class="cellrowborder" valign="top" width="40.46%" headers="mcps1.3.5.3.2.5.1.4 "><p id="vpc_peering_0003__p1654017341747">Specifies the name of the VPC peering connection. The value can contain 1 to 64 characters.</p>
</td>
</tr>
<tr id="vpc_peering_0003__row1542112714577"><td class="cellrowborder" valign="top" width="23.18%" headers="mcps1.3.5.3.2.5.1.1 "><p id="vpc_peering_0003__p19990426299">description</p>
</td>
<td class="cellrowborder" valign="top" width="14.69%" headers="mcps1.3.5.3.2.5.1.2 "><p id="vpc_peering_0003__p149901726897">No</p>
</td>
<td class="cellrowborder" valign="top" width="21.67%" headers="mcps1.3.5.3.2.5.1.3 "><p id="vpc_peering_0003__p59901262916">String</p>
</td>
<td class="cellrowborder" valign="top" width="40.46%" headers="mcps1.3.5.3.2.5.1.4 "><p id="vpc_peering_0003__p192022175910">Provides supplementary information about the VPC peering connection.</p>
<p id="vpc_peering_0003__p1862218195912">The value can contain no more than 255 characters and cannot contain angle brackets (&lt; or &gt;).</p>
</td>
</tr>
<tr id="vpc_peering_0003__row155415343411"><td class="cellrowborder" valign="top" width="23.18%" headers="mcps1.3.5.3.2.5.1.1 "><p id="vpc_peering_0003__p185411334349">request_vpc_info</p>
</td>
<td class="cellrowborder" valign="top" width="14.69%" headers="mcps1.3.5.3.2.5.1.2 "><p id="vpc_peering_0003__p15869434165816">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="21.67%" headers="mcps1.3.5.3.2.5.1.3 "><p id="vpc_peering_0003__p1854183414414"><a href="#vpc_peering_0003__table1132310347417">vpc_info</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40.46%" headers="mcps1.3.5.3.2.5.1.4 "><p id="vpc_peering_0003__p155422348412">Specifies information about the local VPC. For details, see <a href="#vpc_peering_0003__table1132310347417">Table 3</a>.</p>
</td>
</tr>
<tr id="vpc_peering_0003__row145425341249"><td class="cellrowborder" valign="top" width="23.18%" headers="mcps1.3.5.3.2.5.1.1 "><p id="vpc_peering_0003__p25421834641">accept_vpc_info</p>
</td>
<td class="cellrowborder" valign="top" width="14.69%" headers="mcps1.3.5.3.2.5.1.2 "><p id="vpc_peering_0003__p1869834185812">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="21.67%" headers="mcps1.3.5.3.2.5.1.3 "><p id="vpc_peering_0003__p354211341141"><a href="#vpc_peering_0003__table1132310347417">vpc_info</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40.46%" headers="mcps1.3.5.3.2.5.1.4 "><p id="vpc_peering_0003__p3542143419414">Specifies information about the peer VPC. For details, see <a href="#vpc_peering_0003__table1132310347417">Table 3</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="vpc_peering_0003__table1132310347417"></a><a name="table1132310347417"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_peering_0003__table1132310347417" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Description of the <strong id="vpc_peering_0003__b6658157103514">vpc_info</strong> field</caption><thead align="left"><tr id="vpc_peering_0003__row65431034046"><th align="left" class="cellrowborder" valign="top" width="23.45%" id="mcps1.3.5.4.2.5.1.1"><p id="vpc_peering_0003__p14543173418413"><strong id="vpc_peering_0003__b6702339369">Attribute</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.3%" id="mcps1.3.5.4.2.5.1.2"><p id="vpc_peering_0003__p1178104810017"><strong id="vpc_peering_0003__b1215103410362">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.78%" id="mcps1.3.5.4.2.5.1.3"><p id="vpc_peering_0003__p1354353413410"><strong id="vpc_peering_0003__b16435143511363">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40.47%" id="mcps1.3.5.4.2.5.1.4"><p id="vpc_peering_0003__p19543634641"><strong id="vpc_peering_0003__b457713618369">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_peering_0003__row4543434247"><td class="cellrowborder" valign="top" width="23.45%" headers="mcps1.3.5.4.2.5.1.1 "><p id="vpc_peering_0003__p13544163416415">vpc_id</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.5.4.2.5.1.2 "><p id="vpc_peering_0003__p2781104816010">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.78%" headers="mcps1.3.5.4.2.5.1.3 "><p id="vpc_peering_0003__p654410341549">String</p>
</td>
<td class="cellrowborder" valign="top" width="40.47%" headers="mcps1.3.5.4.2.5.1.4 "><p id="vpc_peering_0003__p55448348416">Specifies the ID of a VPC involved in a VPC peering connection.</p>
</td>
</tr>
<tr id="vpc_peering_0003__row65441334646"><td class="cellrowborder" valign="top" width="23.45%" headers="mcps1.3.5.4.2.5.1.1 "><p id="vpc_peering_0003__p14544034945">tenant_id</p>
</td>
<td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.5.4.2.5.1.2 "><p id="vpc_peering_0003__p169319114373">No</p>
</td>
<td class="cellrowborder" valign="top" width="17.78%" headers="mcps1.3.5.4.2.5.1.3 "><p id="vpc_peering_0003__p454413347419">String</p>
</td>
<td class="cellrowborder" valign="top" width="40.47%" headers="mcps1.3.5.4.2.5.1.4 "><p id="vpc_peering_0003__p105449344410">Specifies the ID of the project to which a VPC involved in the VPC peering connection belongs.</p>
<p id="vpc_peering_0003__p69581145183714">This parameter is mandatory if the VPC peering connection is created between VPCs in different accounts.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="vpc_peering_0003__section88713467231"><h4 class="sectiontitle">Example Request</h4><ul id="vpc_peering_0003__ul9744104814233"><li id="vpc_peering_0003__li374415486234">Create a VPC peering connection. The VPC ID of the requester is 9daeac7c-a98f-430f-8e38-67f9c044e299, the VPC ID of the receiver is f583c072-0bb8-4e19-afb2-afb7c1693be5, and the VPC peering connection is named <strong id="vpc_peering_0003__b18162327144014">test</strong>.<pre class="screen" id="vpc_peering_0003__screen714918910718">POST https://{Endpoint}/v2.0/vpc/peerings
{
"peering": {
"name": "test",
"request_vpc_info": {
"vpc_id": "9daeac7c-a98f-430f-8e38-67f9c044e299"
},
"accept_vpc_info": {
"vpc_id": "f583c072-0bb8-4e19-afb2-afb7c1693be5"
}
}
}</pre>
</li></ul>
</div>
<div class="section" id="vpc_peering_0003__section124179176"><h4 class="sectiontitle">Response Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_peering_0003__table351893713" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response parameter</caption><thead align="left"><tr id="vpc_peering_0003__row91481295715"><th align="left" class="cellrowborder" valign="top" width="15.379999999999999%" id="mcps1.3.7.2.2.4.1.1"><p id="vpc_peering_0003__p51481696718">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.99%" id="mcps1.3.7.2.2.4.1.2"><p id="vpc_peering_0003__p18148898716">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="73.63%" id="mcps1.3.7.2.2.4.1.3"><p id="vpc_peering_0003__p11148891674">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_peering_0003__row11148093711"><td class="cellrowborder" valign="top" width="15.379999999999999%" headers="mcps1.3.7.2.2.4.1.1 "><p id="vpc_peering_0003__p5148791174">peering</p>
</td>
<td class="cellrowborder" valign="top" width="10.99%" headers="mcps1.3.7.2.2.4.1.2 "><p id="vpc_peering_0003__p131495911711"><a href="#vpc_peering_0003__table14258131481112">peering</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="73.63%" headers="mcps1.3.7.2.2.4.1.3 "><p id="vpc_peering_0003__p3149109876">Specifies the VPC peering connection. For details, see <a href="#vpc_peering_0003__table14258131481112">Table 5</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="vpc_peering_0003__table14258131481112"></a><a name="table14258131481112"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_peering_0003__table14258131481112" frame="border" border="1" rules="all"><caption><b>Table 5 </b><strong id="vpc_peering_0003__b236113419474">peering</strong> objects</caption><thead align="left"><tr id="vpc_peering_0003__row1525861441116"><th align="left" class="cellrowborder" valign="top" width="32.81%" id="mcps1.3.7.3.2.4.1.1"><p id="vpc_peering_0003__p625881431111"><strong id="vpc_peering_0003__b9829201480">Attribute</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="23.43%" id="mcps1.3.7.3.2.4.1.2"><p id="vpc_peering_0003__p325891414115"><strong id="vpc_peering_0003__b189911613486">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="43.76%" id="mcps1.3.7.3.2.4.1.3"><p id="vpc_peering_0003__p1325811410110"><strong id="vpc_peering_0003__b13758823483">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_peering_0003__row195391034944"><td class="cellrowborder" valign="top" width="32.81%" headers="mcps1.3.7.3.2.4.1.1 "><p id="vpc_peering_0003__p1053943410414">id</p>
</td>
<td class="cellrowborder" valign="top" width="23.43%" headers="mcps1.3.7.3.2.4.1.2 "><p id="vpc_peering_0003__p753963414417">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.76%" headers="mcps1.3.7.3.2.4.1.3 "><p id="vpc_peering_0003__p17539123411413">Specifies the VPC peering connection ID.</p>
</td>
</tr>
<tr id="vpc_peering_0003__row6258114111117"><td class="cellrowborder" valign="top" width="32.81%" headers="mcps1.3.7.3.2.4.1.1 "><p id="vpc_peering_0003__p2258514141119">name</p>
</td>
<td class="cellrowborder" valign="top" width="23.43%" headers="mcps1.3.7.3.2.4.1.2 "><p id="vpc_peering_0003__p172581414111119">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.76%" headers="mcps1.3.7.3.2.4.1.3 "><p id="vpc_peering_0003__p225811149115">Specifies the VPC peering connection name.</p>
</td>
</tr>
<tr id="vpc_peering_0003__row45401734847"><td class="cellrowborder" valign="top" width="32.81%" headers="mcps1.3.7.3.2.4.1.1 "><p id="vpc_peering_0003__p354083416417">status</p>
</td>
<td class="cellrowborder" valign="top" width="23.43%" headers="mcps1.3.7.3.2.4.1.2 "><p id="vpc_peering_0003__p11540034946">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.76%" headers="mcps1.3.7.3.2.4.1.3 "><p id="vpc_peering_0003__p11298143785016">Specifies the VPC peering connection status. Possible values are as follows:</p>
<ul id="vpc_peering_0003__ul6640134318521"><li id="vpc_peering_0003__li146411343125218"><strong id="vpc_peering_0003__b57549231512">PENDING_ACCEPTANCE</strong></li><li id="vpc_peering_0003__li186411432525"><strong id="vpc_peering_0003__b6171725155120">REJECTED</strong></li><li id="vpc_peering_0003__li1164164315525"><strong id="vpc_peering_0003__b7986325135118">EXPIRED</strong></li><li id="vpc_peering_0003__li146411643165213"><strong id="vpc_peering_0003__b974313261515">DELETED</strong></li><li id="vpc_peering_0003__li10641443115215"><strong id="vpc_peering_0003__b33731427195115">ACTIVE</strong></li></ul>
</td>
</tr>
<tr id="vpc_peering_0003__row925801431119"><td class="cellrowborder" valign="top" width="32.81%" headers="mcps1.3.7.3.2.4.1.1 "><p id="vpc_peering_0003__p825911451110">request_vpc_info</p>
</td>
<td class="cellrowborder" valign="top" width="23.43%" headers="mcps1.3.7.3.2.4.1.2 "><p id="vpc_peering_0003__p1425911414113"><a href="#vpc_peering_0003__table1125991417114">vpc_info</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="43.76%" headers="mcps1.3.7.3.2.4.1.3 "><p id="vpc_peering_0003__p12259181441112">Specifies information about the local VPC. For details, see <a href="#vpc_peering_0003__table1125991417114">Table 6</a>.</p>
</td>
</tr>
<tr id="vpc_peering_0003__row0259161401118"><td class="cellrowborder" valign="top" width="32.81%" headers="mcps1.3.7.3.2.4.1.1 "><p id="vpc_peering_0003__p725941415110">accept_vpc_info</p>
</td>
<td class="cellrowborder" valign="top" width="23.43%" headers="mcps1.3.7.3.2.4.1.2 "><p id="vpc_peering_0003__p14259111441119"><a href="#vpc_peering_0003__table1125991417114">vpc_info</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="43.76%" headers="mcps1.3.7.3.2.4.1.3 "><p id="vpc_peering_0003__p1225921416112">Specifies information about the peer VPC. For details, see <a href="#vpc_peering_0003__table1125991417114">Table 6</a>.</p>
</td>
</tr>
<tr id="vpc_peering_0003__row17791105316527"><td class="cellrowborder" valign="top" width="32.81%" headers="mcps1.3.7.3.2.4.1.1 "><p id="vpc_peering_0003__p9792195385219">description</p>
</td>
<td class="cellrowborder" valign="top" width="23.43%" headers="mcps1.3.7.3.2.4.1.2 "><p id="vpc_peering_0003__p3792205365218">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.76%" headers="mcps1.3.7.3.2.4.1.3 "><p id="vpc_peering_0003__p10792953155215">Provides supplementary information about the VPC peering connection.</p>
</td>
</tr>
<tr id="vpc_peering_0003__row4121155915218"><td class="cellrowborder" valign="top" width="32.81%" headers="mcps1.3.7.3.2.4.1.1 "><p id="vpc_peering_0003__p1312155914528">created_at</p>
</td>
<td class="cellrowborder" valign="top" width="23.43%" headers="mcps1.3.7.3.2.4.1.2 "><p id="vpc_peering_0003__p201218597524">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.76%" headers="mcps1.3.7.3.2.4.1.3 "><p id="vpc_peering_0003__p1395374115919">Specifies the time (UTC) when the VPC peering connection is created.</p>
<p id="vpc_peering_0003__p65980291419">Format: <em id="vpc_peering_0003__i1294974625311">yyyy-MM-ddTHH:mm:ss</em></p>
</td>
</tr>
<tr id="vpc_peering_0003__row15465113115319"><td class="cellrowborder" valign="top" width="32.81%" headers="mcps1.3.7.3.2.4.1.1 "><p id="vpc_peering_0003__p74651838533">updated_at</p>
</td>
<td class="cellrowborder" valign="top" width="23.43%" headers="mcps1.3.7.3.2.4.1.2 "><p id="vpc_peering_0003__p8465203125315">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.76%" headers="mcps1.3.7.3.2.4.1.3 "><p id="vpc_peering_0003__p271618182568">Specifies the time (UTC) when the VPC peering connection is updated.</p>
<p id="vpc_peering_0003__p187161918125617">Format: <em id="vpc_peering_0003__i3939205220536">yyyy-MM-ddTHH:mm:ss</em></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="vpc_peering_0003__table1125991417114"></a><a name="table1125991417114"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_peering_0003__table1125991417114" frame="border" border="1" rules="all"><caption><b>Table 6 </b><strong id="vpc_peering_0003__b4209135418539">vpc_info</strong> objects</caption><thead align="left"><tr id="vpc_peering_0003__row1725931413118"><th align="left" class="cellrowborder" valign="top" width="32.81%" id="mcps1.3.7.4.2.4.1.1"><p id="vpc_peering_0003__p122592014121114"><strong id="vpc_peering_0003__b4364175675318">Attribute</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="23.43%" id="mcps1.3.7.4.2.4.1.2"><p id="vpc_peering_0003__p11259121417111"><strong id="vpc_peering_0003__b996455755320">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="43.76%" id="mcps1.3.7.4.2.4.1.3"><p id="vpc_peering_0003__p17259191412115"><strong id="vpc_peering_0003__b4834105845313">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_peering_0003__row4259191411115"><td class="cellrowborder" valign="top" width="32.81%" headers="mcps1.3.7.4.2.4.1.1 "><p id="vpc_peering_0003__p1125911141118">vpc_id</p>
</td>
<td class="cellrowborder" valign="top" width="23.43%" headers="mcps1.3.7.4.2.4.1.2 "><p id="vpc_peering_0003__p1026031417117">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.76%" headers="mcps1.3.7.4.2.4.1.3 "><p id="vpc_peering_0003__p926061418117">Specifies the ID of a VPC involved in a VPC peering connection.</p>
</td>
</tr>
<tr id="vpc_peering_0003__row1326013145116"><td class="cellrowborder" valign="top" width="32.81%" headers="mcps1.3.7.4.2.4.1.1 "><p id="vpc_peering_0003__p72601514191115">tenant_id</p>
</td>
<td class="cellrowborder" valign="top" width="23.43%" headers="mcps1.3.7.4.2.4.1.2 "><p id="vpc_peering_0003__p3260171410114">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.76%" headers="mcps1.3.7.4.2.4.1.3 "><p id="vpc_peering_0003__p326071415115">Specifies the ID of the project to which a VPC involved in the VPC peering connection belongs.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="vpc_peering_0003__section76990219249"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="vpc_peering_0003__screen21501091679">{
"peering": {
"name": "test",
"id": "22b76469-08e3-4937-8c1d-7aad34892be1",
"request_vpc_info": {
"vpc_id": "9daeac7c-a98f-430f-8e38-67f9c044e299",
"tenant_id": "f65e9ebc-ed5d-418b-a931-9a723718ba4e"
},
"accept_vpc_info": {
"vpc_id": "f583c072-0bb8-4e19-afb2-afb7c1693be5",
"tenant_id": "f65e9ebc-ed5d-418b-a931-9a723718ba4e"
},
"status": "ACTIVE"
}
}</pre>
</div>
<div class="section" id="vpc_peering_0003__section31981619"><h4 class="sectiontitle">Status Code</h4><p id="vpc_peering_0003__p18112112662914">See <a href="vpc_api_0002.html">Status Codes</a>.</p>
</div>
<div class="section" id="vpc_peering_0003__section85821649202813"><h4 class="sectiontitle">Error Code</h4><p id="vpc_peering_0003__p17281622133910">See <a href="vpc_api_0003.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="vpc_peering_0000.html">VPC Peering Connection</a></div>
</div>
</div>