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>
279 lines
23 KiB
HTML
279 lines
23 KiB
HTML
<a name="vpc_api01_0001"></a><a name="vpc_api01_0001"></a>
|
|
|
|
<h1 class="topictitle1">Creating a VPC</h1>
|
|
<div id="body27824865"><div class="section" id="vpc_api01_0001__section20114008"><h4 class="sectiontitle">Function</h4><p id="vpc_api01_0001__p39221624">This API is used to create a VPC.</p>
|
|
</div>
|
|
<div class="section" id="vpc_api01_0001__section46808346"><h4 class="sectiontitle">URI</h4><p id="vpc_api01_0001__p79935945717">POST /v1/{project_id}/vpcs</p>
|
|
<div class="p" id="vpc_api01_0001__p17644162411346"><a href="#vpc_api01_0001__table3672032">Table 1</a> describes the parameters.
|
|
<div class="tablenoborder"><a name="vpc_api01_0001__table3672032"></a><a name="table3672032"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_api01_0001__table3672032" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="vpc_api01_0001__row10026740"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.3.2.2.4.1.1"><p id="vpc_api01_0001__p6859639">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.3.2.2.4.1.2"><p id="vpc_api01_0001__p18759866">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.3.2.2.4.1.3"><p id="vpc_api01_0001__p43154149">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_api01_0001__row5825185"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="vpc_api01_0001__p2077973">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.2 "><p id="vpc_api01_0001__p34098154">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="vpc_api01_0001__p622613501739">Specifies the project ID. </p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_api01_0001__section18621933"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_api01_0001__table59675338144730" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameter</caption><thead align="left"><tr id="vpc_api01_0001__row22732874144730"><th align="left" class="cellrowborder" valign="top" width="12.591259125912593%" id="mcps1.3.3.2.2.5.1.1"><p id="vpc_api01_0001__p29423469144730">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.122312231223123%" id="mcps1.3.3.2.2.5.1.2"><p id="vpc_api01_0001__p34490826144730">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20.49204920492049%" id="mcps1.3.3.2.2.5.1.3"><p id="vpc_api01_0001__p42293511144730">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="43.79437943794379%" id="mcps1.3.3.2.2.5.1.4"><p id="vpc_api01_0001__p3222348144730">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_api01_0001__row59683650144730"><td class="cellrowborder" valign="top" width="12.591259125912593%" headers="mcps1.3.3.2.2.5.1.1 "><p id="vpc_api01_0001__p2537488144730">vpc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.122312231223123%" headers="mcps1.3.3.2.2.5.1.2 "><p id="vpc_api01_0001__p4210015144730">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.49204920492049%" headers="mcps1.3.3.2.2.5.1.3 "><p id="vpc_api01_0001__p41691159213"><a href="#vpc_api01_0001__table33750194">vpc</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.79437943794379%" headers="mcps1.3.3.2.2.5.1.4 "><p id="vpc_api01_0001__p32639071144730"><a href="#vpc_api01_0001__table33750194">Specifies the VPC objects.</a></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_api01_0001__table33750194"></a><a name="table33750194"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_api01_0001__table33750194" frame="border" border="1" rules="all"><caption><b>Table 3 </b>VPC objects</caption><thead align="left"><tr id="vpc_api01_0001__row51192804"><th align="left" class="cellrowborder" valign="top" width="13.15%" id="mcps1.3.3.3.2.5.1.1"><p id="vpc_api01_0001__p52976421">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.240000000000002%" id="mcps1.3.3.3.2.5.1.2"><p id="vpc_api01_0001__p63231703">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.73%" id="mcps1.3.3.3.2.5.1.3"><p id="vpc_api01_0001__p2491821616557">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.88%" id="mcps1.3.3.3.2.5.1.4"><p id="vpc_api01_0001__p21494305">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_api01_0001__row63317164"><td class="cellrowborder" valign="top" width="13.15%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_api01_0001__p28416672">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.240000000000002%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_api01_0001__p20049059">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_api01_0001__p510960516557">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.88%" headers="mcps1.3.3.3.2.5.1.4 "><ul id="vpc_api01_0001__ul10917210135420"><li id="vpc_api01_0001__li1917710105419">Specifies the VPC name.</li><li id="vpc_api01_0001__li1291811102544">The value can contain no more than 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.).</li><li id="vpc_api01_0001__li119183101549">Each VPC name of a tenant must be unique if the VPC name is not left blank.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row1034214180910"><td class="cellrowborder" valign="top" width="13.15%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_api01_0001__p19990426299">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.240000000000002%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_api01_0001__p149901726897">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_api01_0001__p59901262916">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.88%" headers="mcps1.3.3.3.2.5.1.4 "><ul id="vpc_api01_0001__ul769112885417"><li id="vpc_api01_0001__li10691285542">Provides supplementary information about the VPC.</li><li id="vpc_api01_0001__li7691580544">The value can contain no more than 255 characters and cannot contain angle brackets (< or >).</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row18134306"><td class="cellrowborder" valign="top" width="13.15%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_api01_0001__p59592696">cidr</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.240000000000002%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_api01_0001__p62279078">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_api01_0001__p1122484216557">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.88%" headers="mcps1.3.3.3.2.5.1.4 "><ul id="vpc_api01_0001__ul20205129125113"><li id="vpc_api01_0001__li4761107546">Specifies the available IP address ranges for subnets in the VPC.</li><li id="vpc_api01_0001__li176113014548">Possible values are as follows:<ul id="vpc_api01_0001__ul53161626155413"><li id="vpc_api01_0001__li19197628192317">10.0.0.0/8-24</li><li id="vpc_api01_0001__li181981528172314">172.16.0.0/12-24</li><li id="vpc_api01_0001__li51911853165015">192.168.0.0/16-24</li></ul>
|
|
</li><li id="vpc_api01_0001__li2020516955113">If <strong id="vpc_api01_0001__b544916498325">cidr</strong> is not specified, the default value is left blank.</li><li id="vpc_api01_0001__li186416535420">The value must be in CIDR format, for example, <strong id="vpc_api01_0001__b842352706211337_1">192.168.0.0/16</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row14131555104815"><td class="cellrowborder" valign="top" width="13.15%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_api01_0001__p315455194820">enterprise_project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.240000000000002%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_api01_0001__p101514558488">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_api01_0001__p171555513485">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.88%" headers="mcps1.3.3.3.2.5.1.4 "><ul id="vpc_api01_0001__ul1681092225411"><li id="vpc_api01_0001__li5810142219540">Specifies the enterprise project ID. When creating a VPC, you can associate an enterprise project ID with the VPC.</li><li id="vpc_api01_0001__li6810162220540">The value is <strong id="vpc_api01_0001__b03492983513">0</strong> or a string that contains a maximum of 36 characters in UUID format with hyphens (-). Value <strong id="vpc_api01_0001__b2075717317356">0</strong> indicates the default enterprise project.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_api01_0001__section11180151911710"><h4 class="sectiontitle">Example Request</h4><ul id="vpc_api01_0001__ul185801277820"><li id="vpc_api01_0001__li165801271386">Create a VPC named <strong id="vpc_api01_0001__b62597279324">vpc</strong> and set its CIDR block to 192.168.0.0/16.<pre class="screen" id="vpc_api01_0001__screen1778465375316">POST https://{Endpoint}/v1/{project_id}/vpcs
|
|
|
|
{
|
|
"vpc": {
|
|
"name": "vpc",
|
|
"description": "test",
|
|
"cidr": "192.168.0.0/16",
|
|
"enterprise_project_id": "0aad99bc-f5f6-4f78-8404-c598d76b0ed2"
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="vpc_api01_0001__section33379675"><h4 class="sectiontitle">Response Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_api01_0001__table1969410815449" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response parameter</caption><thead align="left"><tr id="vpc_api01_0001__row2499368515449"><th align="left" class="cellrowborder" valign="top" width="18.34%" id="mcps1.3.5.2.2.4.1.1"><p id="vpc_api01_0001__p1122260615449">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.15%" id="mcps1.3.5.2.2.4.1.2"><p id="vpc_api01_0001__p1310021915449">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="59.51%" id="mcps1.3.5.2.2.4.1.3"><p id="vpc_api01_0001__p5448479815449">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_api01_0001__row5119248915449"><td class="cellrowborder" valign="top" width="18.34%" headers="mcps1.3.5.2.2.4.1.1 "><p id="vpc_api01_0001__p5295094915449">vpc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.15%" headers="mcps1.3.5.2.2.4.1.2 "><p id="vpc_api01_0001__p18458338205916"><a href="#vpc_api01_0001__table39714111">vpc</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.51%" headers="mcps1.3.5.2.2.4.1.3 "><p id="vpc_api01_0001__p393482915449"><a href="#vpc_api01_0001__table39714111">Specifies the VPC objects.</a></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_api01_0001__table39714111"></a><a name="table39714111"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_api01_0001__table39714111" frame="border" border="1" rules="all"><caption><b>Table 5 </b>VPC objects</caption><thead align="left"><tr id="vpc_api01_0001__row36411928"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.5.3.2.4.1.1"><p id="vpc_api01_0001__p63685038">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.81%" id="mcps1.3.5.3.2.4.1.2"><p id="vpc_api01_0001__p3336232165612">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60.19%" id="mcps1.3.5.3.2.4.1.3"><p id="vpc_api01_0001__p17753217">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_api01_0001__row28724493"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_api01_0001__p44982630">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.81%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_api01_0001__p1799372165612">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.19%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_api01_0001__p53364125">Specifies a resource ID in UUID format.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row10515080"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_api01_0001__p46415143">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.81%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_api01_0001__p11531473165612">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.19%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_api01_0001__ul16711301548"><li id="vpc_api01_0001__li1767143016546">Specifies the VPC name.</li><li id="vpc_api01_0001__li1467113012541">The value can contain no more than 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.).</li><li id="vpc_api01_0001__li10676303541">Each VPC name of a tenant must be unique if the VPC name is not left blank.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row1228919121119"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_api01_0001__p10612132071113">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.81%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_api01_0001__p9612132031119">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.19%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_api01_0001__ul34011932165414"><li id="vpc_api01_0001__li4401143235415">Provides supplementary information about the VPC.</li><li id="vpc_api01_0001__li840113320547">The value can contain no more than 255 characters and cannot contain angle brackets (< or >).</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row19659738"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_api01_0001__p48934940">cidr</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.81%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_api01_0001__p61634143165612">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.19%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_api01_0001__ul62941023970"><li id="vpc_api01_0001__li12415817165617">Specifies the available IP address ranges for subnets in the VPC.</li><li id="vpc_api01_0001__li10294123376">Possible values are as follows:<ul id="vpc_api01_0001__vpc_api01_0001_ul53161626155413"><li id="vpc_api01_0001__vpc_api01_0001_li19197628192317">10.0.0.0/8-24</li><li id="vpc_api01_0001__vpc_api01_0001_li181981528172314">172.16.0.0/12-24</li><li id="vpc_api01_0001__vpc_api01_0001_li51911853165015">192.168.0.0/16-24</li></ul>
|
|
</li><li id="vpc_api01_0001__li122950231977">If <strong id="vpc_api01_0001__b14339912133312">cidr</strong> is not specified, the default value is left blank.</li><li id="vpc_api01_0001__li112956236713">The value must be in CIDR format, for example, <strong id="vpc_api01_0001__b842352706211337_3">192.168.0.0/16</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row55195381"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_api01_0001__p41640866">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.81%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_api01_0001__p26309661165612">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.19%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_api01_0001__ul14742195924610"><li id="vpc_api01_0001__li174275974611">Specifies the VPC status.</li><li id="vpc_api01_0001__li20189125513330">Possible values are as follows:<ul id="vpc_api01_0001__ul87091357163310"><li id="vpc_api01_0001__li9428172103414"><strong id="vpc_api01_0001__b842352706152546">CREATING</strong>: The VPC is being created.</li><li id="vpc_api01_0001__li1274235918466"><strong id="vpc_api01_0001__b18125101851010">OK</strong>: The VPC is created successfully.</li></ul>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row680983192136"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_api01_0001__p55159683192136">routes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.81%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_api01_0001__p51691433192136">Array of <a href="#vpc_api01_0001__table3576833291556">route</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.19%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_api01_0001__ul088823124710"><li id="vpc_api01_0001__li888893184717">Specifies the route information.</li><li id="vpc_api01_0001__li58885354712">For details, see the description of the <a href="#vpc_api01_0001__table3576833291556">route objects</a>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row10709675013"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_api01_0001__p114561520515">enable_shared_snat</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.81%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_api01_0001__p5456112185112">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.19%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_api01_0001__p204561128510">Specifies whether the shared SNAT function is enabled. The value <strong id="vpc_api01_0001__b84235270612178">true</strong> indicates that the function is enabled, and the value <strong id="vpc_api01_0001__b84235270614243">false</strong> indicates that the function is not enabled.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row14513192217564"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_api01_0001__p195139222567">enterprise_project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.81%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_api01_0001__p151332225616">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.19%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_api01_0001__ul2680192019477"><li id="vpc_api01_0001__li1668013203477">Specifies the enterprise project ID.</li><li id="vpc_api01_0001__li1168092011474">The value is <strong id="vpc_api01_0001__b1055254614356">0</strong> or a string that contains a maximum of 36 characters in UUID format with hyphens (-). Value <strong id="vpc_api01_0001__b136498489351">0</strong> indicates the default enterprise project.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row6424435132120"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_api01_0001__p8425113511211">tenant_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.81%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_api01_0001__p1342543532116">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.19%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_api01_0001__ul1844211234566"><li id="vpc_api01_0001__li194421323145620">Project ID</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row1667134111212"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_api01_0001__p106711441172119">created_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.81%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_api01_0001__p867112418216">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.19%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_api01_0001__ul1898152414340"><li id="vpc_api01_0001__li1189922443415">Specifies the time (UTC) when the VPC is created.</li><li id="vpc_api01_0001__li9899112417341">Format: <em id="vpc_api01_0001__i921415301272">yyyy-MM-ddTHH:mm:ss</em></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row116711341182113"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_api01_0001__p96711541192118">updated_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.81%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_api01_0001__p1467116412217">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.19%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_api01_0001__ul1344013314346"><li id="vpc_api01_0001__li1244063193415">Specifies the time (UTC) when the VPC is updated.</li><li id="vpc_api01_0001__li8440143193419">Format: <em id="vpc_api01_0001__i173269367279">yyyy-MM-ddTHH:mm:ss</em></li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_api01_0001__table3576833291556"></a><a name="table3576833291556"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_api01_0001__table3576833291556" frame="border" border="1" rules="all"><caption><b>Table 6 </b><strong id="vpc_api01_0001__b84235270615036">route</strong> objects</caption><thead align="left"><tr id="vpc_api01_0001__row921218691556"><th align="left" class="cellrowborder" valign="top" width="18.34%" id="mcps1.3.5.4.2.4.1.1"><p id="vpc_api01_0001__p798956991556">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.38%" id="mcps1.3.5.4.2.4.1.2"><p id="vpc_api01_0001__p754435891556">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="59.28%" id="mcps1.3.5.4.2.4.1.3"><p id="vpc_api01_0001__p711326791556">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_api01_0001__row3930377391556"><td class="cellrowborder" valign="top" width="18.34%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_api01_0001__p2948903591556">destination</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.38%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_api01_0001__p270722191556">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.28%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_api01_0001__ul391783612478"><li id="vpc_api01_0001__li199174362472">Specifies the destination CIDR block of a route.</li><li id="vpc_api01_0001__li1917133694719">Constraints: The value must be in the CIDR format. IPv4 and IPv6 CIDR formats are supported.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row6565233911054"><td class="cellrowborder" valign="top" width="18.34%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_api01_0001__p1623922311054">nexthop</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.38%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_api01_0001__p4377761311054">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.28%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_api01_0001__ul10508545114715"><li id="vpc_api01_0001__li9508104584710">Specifies the next hop of a route.</li><li id="vpc_api01_0001__li1250824515476">The value must be an IP address from the subnet of the VPC. IPv4 and IPv6 addresses are supported.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_api01_0001__section4613518121"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="vpc_api01_0001__screen678017232489">{
|
|
"vpc":
|
|
{
|
|
"id": "99d9d709-8478-4b46-9f3f-2206b1023fd3",
|
|
"name": "vpc",
|
|
"description": "test",
|
|
"cidr": "192.168.0.0/16",
|
|
"status": "CREATING",
|
|
"enterprise_project_id": "0aad99bc-f5f6-4f78-8404-c598d76b0ed2",
|
|
"routes": [],
|
|
"tenant_id": "087679f0aa80d32a2f4ec0172f5e902b",
|
|
"created_at": "2022-12-15T02:25:11",
|
|
"updated_at": "2022-12-15T02:25:11"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="vpc_api01_0001__section31981619"><h4 class="sectiontitle">Status Code</h4><p id="vpc_api01_0001__p18112112662914">See <a href="vpc_api_0002.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="vpc_api01_0001__section85821649202813"><h4 class="sectiontitle">Error Code</h4><p id="vpc_api01_0001__p7233105282813">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_api01_0000.html">Virtual Private Cloud</a></div>
|
|
</div>
|
|
</div>
|
|
|