forked from docs/doc-exports
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com> Co-authored-by: gtema <artem.goncharov@gmail.com> Co-committed-by: gtema <artem.goncharov@gmail.com>
260 lines
22 KiB
HTML
260 lines
22 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">Name</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 Message</h4><ul id="vpc_api01_0001__ul5992193374713"><li id="vpc_api01_0001__li59922337473">Request parameter
|
|
<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.1.1.2.5.1.1"><p id="vpc_api01_0001__p29423469144730">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.122312231223123%" id="mcps1.3.3.2.1.1.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.1.1.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.1.1.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.1.1.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.1.1.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.1.1.2.5.1.3 "><p id="vpc_api01_0001__p41691159213"><a href="vpc_api01_0001.html">vpc</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.79437943794379%" headers="mcps1.3.3.2.1.1.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.2.1.2.2.5.1.1"><p id="vpc_api01_0001__p52976421">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.240000000000002%" id="mcps1.3.3.2.1.2.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.2.1.2.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.2.1.2.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.2.1.2.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.2.1.2.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.2.1.2.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.2.1.2.2.5.1.4 "><ul id="vpc_api01_0001__ul122583362468"><li id="vpc_api01_0001__li625820362467">Specifies the VPC name.</li><li id="vpc_api01_0001__li1425817365462">The value can contain no more than 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.).</li><li id="vpc_api01_0001__li1025893604620">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.2.1.2.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.2.1.2.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.2.1.2.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.2.1.2.2.5.1.4 "><ul id="vpc_api01_0001__ul49905267911"><li id="vpc_api01_0001__li1699011267910">Provides supplementary information about the VPC.</li><li id="vpc_api01_0001__li699072618918">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.2.1.2.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.2.1.2.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.2.1.2.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.2.1.2.2.5.1.4 "><ul id="vpc_api01_0001__ul10389173917465"><li id="vpc_api01_0001__li1389739194615">Specifies the available IP address ranges for subnets in the VPC.</li><li id="vpc_api01_0001__li183146222548">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__li191981628122312">192.168.0.0/16-24</li></ul>
|
|
</li><li id="vpc_api01_0001__li898228181014">If <strong id="vpc_api01_0001__b544916498325">cidr</strong> is not specified, the default value is left blank.</li><li id="vpc_api01_0001__li138920394463">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.2.1.2.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.2.1.2.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.2.1.2.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.2.1.2.2.5.1.4 "><ul id="vpc_api01_0001__ul6464125124610"><li id="vpc_api01_0001__li34641551134613">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__li24641551184612">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>
|
|
<div class="note" id="vpc_api01_0001__note61091327154914"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="vpc_api01_0001__p182751511487">This parameter is unsupported. Do not use it.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<ul id="vpc_api01_0001__ul173002053194720"><li id="vpc_api01_0001__li15300185311471">Example request<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 class="section" id="vpc_api01_0001__section33379675"><h4 class="sectiontitle">Response Message</h4><ul id="vpc_api01_0001__ul2144514204819"><li id="vpc_api01_0001__li61441714114816">Response parameter
|
|
<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.1.1.2.4.1.1"><p id="vpc_api01_0001__p1122260615449">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.15%" id="mcps1.3.5.2.1.1.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.1.1.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.1.1.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.1.1.2.4.1.2 "><p id="vpc_api01_0001__p18458338205916"><a href="vpc_api01_0001.html">vpc</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.51%" headers="mcps1.3.5.2.1.1.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.34%" id="mcps1.3.5.2.1.2.2.4.1.1"><p id="vpc_api01_0001__p63685038">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.74%" id="mcps1.3.5.2.1.2.2.4.1.2"><p id="vpc_api01_0001__p3336232165612">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="59.919999999999995%" id="mcps1.3.5.2.1.2.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.34%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="vpc_api01_0001__p44982630">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.74%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="vpc_api01_0001__p1799372165612">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.919999999999995%" headers="mcps1.3.5.2.1.2.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.34%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="vpc_api01_0001__p46415143">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.74%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="vpc_api01_0001__p11531473165612">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.919999999999995%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><ul id="vpc_api01_0001__ul951112614463"><li id="vpc_api01_0001__li0511326144618">Specifies the VPC name.</li><li id="vpc_api01_0001__li1511202620460">The value can contain no more than 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.).</li><li id="vpc_api01_0001__li1751182634613">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.34%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="vpc_api01_0001__p10612132071113">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.74%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="vpc_api01_0001__p9612132031119">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.919999999999995%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><ul id="vpc_api01_0001__ul56121201111"><li id="vpc_api01_0001__li161232013119">Provides supplementary information about the VPC.</li><li id="vpc_api01_0001__li16612192031118">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.34%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="vpc_api01_0001__p48934940">cidr</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.74%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="vpc_api01_0001__p61634143165612">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.919999999999995%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><ul id="vpc_api01_0001__ul62941023970"><li id="vpc_api01_0001__li192949237711">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_li191981628122312">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.34%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="vpc_api01_0001__p41640866">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.74%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="vpc_api01_0001__p26309661165612">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.919999999999995%" headers="mcps1.3.5.2.1.2.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.34%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="vpc_api01_0001__p55159683192136">routes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.74%" headers="mcps1.3.5.2.1.2.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="59.919999999999995%" headers="mcps1.3.5.2.1.2.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.34%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="vpc_api01_0001__p114561520515">enable_shared_snat</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.74%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="vpc_api01_0001__p5456112185112">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.919999999999995%" headers="mcps1.3.5.2.1.2.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.34%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="vpc_api01_0001__p195139222567">enterprise_project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.74%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="vpc_api01_0001__p151332225616">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.919999999999995%" headers="mcps1.3.5.2.1.2.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>
|
|
<div class="note" id="vpc_api01_0001__note19041412125118"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="vpc_api01_0001__vpc_api01_0001_p182751511487">This parameter is unsupported. Do not use it.</p>
|
|
</div></div>
|
|
</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.2.1.3.2.4.1.1"><p id="vpc_api01_0001__p798956991556">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.38%" id="mcps1.3.5.2.1.3.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.2.1.3.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.2.1.3.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.2.1.3.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.2.1.3.2.4.1.3 "><ul id="vpc_api01_0001__ul391783612478"><li id="vpc_api01_0001__li199174362472">Specifies the destination network segment of a route.</li><li id="vpc_api01_0001__li1917133694719">The value must be in the CIDR format. Currently, only the value <strong>0.0.0.0/0</strong> is supported.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_api01_0001__row6565233911054"><td class="cellrowborder" valign="top" width="18.34%" headers="mcps1.3.5.2.1.3.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.2.1.3.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.2.1.3.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 and must belong to the subnet in the VPC. Otherwise, this value does not take effect.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="vpc_api01_0001__ul9780202374818"><li id="vpc_api01_0001__li3780523164820">Example response<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": []
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</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>
|
|
|