forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: fanqinying <fanqinying@huawei.com> Co-committed-by: fanqinying <fanqinying@huawei.com>
316 lines
35 KiB
HTML
316 lines
35 KiB
HTML
<a name="vpc_apiroutetab_0005"></a><a name="vpc_apiroutetab_0005"></a>
|
|
|
|
<h1 class="topictitle1">Associating Subnets with a Route Table</h1>
|
|
<div id="body1548666369734"><div class="section" id="vpc_apiroutetab_0005__section42379229468"><h4 class="sectiontitle">Function</h4><p id="vpc_apiroutetab_0005__p15534124104611">This API is used to associate a subnet with a route table.</p>
|
|
<p id="vpc_apiroutetab_0005__p59622042152519">If a subnet has already been associated with route table A, you can associate the subnet with route table B directly without disassociating it from route table A first.</p>
|
|
</div>
|
|
<div class="section" id="vpc_apiroutetab_0005__section192534222467"><h4 class="sectiontitle">URI</h4><p id="vpc_apiroutetab_0005__p153422444618">POST /v1/{project_id}/routetables/{routetable_id}/action</p>
|
|
<p id="vpc_apiroutetab_0005__p1178823520121"><a href="#vpc_apiroutetab_0005__table125312228469">Table 1</a> describes the parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="vpc_apiroutetab_0005__table125312228469"></a><a name="table125312228469"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiroutetab_0005__table125312228469" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="vpc_apiroutetab_0005__row17534172414462"><th align="left" class="cellrowborder" valign="top" width="21.43%" id="mcps1.3.2.4.2.5.1.1"><p id="vpc_apiroutetab_0005__p18534172413464"><strong id="vpc_apiroutetab_0005__b172073437553">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.43%" id="mcps1.3.2.4.2.5.1.2"><p id="vpc_apiroutetab_0005__p19534024174615"><strong id="vpc_apiroutetab_0005__b161311544175512">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.57%" id="mcps1.3.2.4.2.5.1.3"><p id="vpc_apiroutetab_0005__p853472434619"><strong id="vpc_apiroutetab_0005__b3907450550">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.57%" id="mcps1.3.2.4.2.5.1.4"><p id="vpc_apiroutetab_0005__p16534182417467"><strong id="vpc_apiroutetab_0005__b69458455559">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_apiroutetab_0005__row15534132464619"><td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.2.4.2.5.1.1 "><p id="vpc_apiroutetab_0005__p15341924134612">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.2.4.2.5.1.2 "><p id="vpc_apiroutetab_0005__p1353442420469">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.2.4.2.5.1.3 "><p id="vpc_apiroutetab_0005__p12534192454610">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.2.4.2.5.1.4 "><p id="vpc_apiroutetab_0005__p10487112">Specifies the project ID. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_apiroutetab_0005__row1853492454613"><td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.2.4.2.5.1.1 "><p id="vpc_apiroutetab_0005__p1534124114619">routetable_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.2.4.2.5.1.2 "><p id="vpc_apiroutetab_0005__p053413243463">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.2.4.2.5.1.3 "><p id="vpc_apiroutetab_0005__p135341624154612">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.2.4.2.5.1.4 "><p id="vpc_apiroutetab_0005__p653492464614">Specifies the route table ID, which uniquely identifies a route table.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_apiroutetab_0005__section331592218468"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiroutetab_0005__table173621322144619" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameter</caption><thead align="left"><tr id="vpc_apiroutetab_0005__row553452484617"><th align="left" class="cellrowborder" valign="top" width="21.65%" id="mcps1.3.3.2.2.5.1.1"><p id="vpc_apiroutetab_0005__p1653413249466"><strong id="vpc_apiroutetab_0005__b179938416565">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.65%" id="mcps1.3.3.2.2.5.1.2"><p id="vpc_apiroutetab_0005__p19534102424619"><strong id="vpc_apiroutetab_0005__b131729675614">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.71%" id="mcps1.3.3.2.2.5.1.3"><p id="vpc_apiroutetab_0005__p145341124184610"><strong id="vpc_apiroutetab_0005__b310710712567">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="32.99%" id="mcps1.3.3.2.2.5.1.4"><p id="vpc_apiroutetab_0005__p135342244464"><strong id="vpc_apiroutetab_0005__b18981177105617">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_apiroutetab_0005__row2534102413469"><td class="cellrowborder" valign="top" width="21.65%" headers="mcps1.3.3.2.2.5.1.1 "><p id="vpc_apiroutetab_0005__p11534102414619">routetable</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.65%" headers="mcps1.3.3.2.2.5.1.2 "><p id="vpc_apiroutetab_0005__p653462414463">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.71%" headers="mcps1.3.3.2.2.5.1.3 "><p id="vpc_apiroutetab_0005__p19534924134612"><a href="#vpc_apiroutetab_0005__table104243226461">routetable</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32.99%" headers="mcps1.3.3.2.2.5.1.4 "><p id="vpc_apiroutetab_0005__p8534162474610">Specifies the route table. For details, see <a href="#vpc_apiroutetab_0005__table104243226461">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_apiroutetab_0005__table104243226461"></a><a name="table104243226461"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiroutetab_0005__table104243226461" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Description of the <strong id="vpc_apiroutetab_0005__b52771421125615">routetable</strong> field</caption><thead align="left"><tr id="vpc_apiroutetab_0005__row75341324204619"><th align="left" class="cellrowborder" valign="top" width="19.388061193880617%" id="mcps1.3.3.3.2.5.1.1"><p id="vpc_apiroutetab_0005__p1353414249465"><strong id="vpc_apiroutetab_0005__b117771224125611">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.348265173482655%" id="mcps1.3.3.3.2.5.1.2"><p id="vpc_apiroutetab_0005__p6534724194619"><strong id="vpc_apiroutetab_0005__b175894253568">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.427857214278575%" id="mcps1.3.3.3.2.5.1.3"><p id="vpc_apiroutetab_0005__p1053452444618"><strong id="vpc_apiroutetab_0005__b867142665611">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="41.83581641835817%" id="mcps1.3.3.3.2.5.1.4"><p id="vpc_apiroutetab_0005__p165348244461"><strong id="vpc_apiroutetab_0005__b1850311276562">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_apiroutetab_0005__row75341624184618"><td class="cellrowborder" valign="top" width="19.388061193880617%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_apiroutetab_0005__p11534152454618">subnets</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482655%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_apiroutetab_0005__p1853452418467">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.427857214278575%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_apiroutetab_0005__p65341324164616"><a href="#vpc_apiroutetab_0005__table12518142212468">subnet</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="41.83581641835817%" headers="mcps1.3.3.3.2.5.1.4 "><ul id="vpc_apiroutetab_0005__ul7534162454619"><li id="vpc_apiroutetab_0005__li1753432414466">Specifies the subnets associated with the route table.</li><li id="vpc_apiroutetab_0005__li75341824174614">Only subnets (specified by <strong id="vpc_apiroutetab_0005__b1719219918387">network_id</strong>) in the VPC that the route table belongs to can be associated with the route table.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_apiroutetab_0005__table12518142212468"></a><a name="table12518142212468"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiroutetab_0005__table12518142212468" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Description of the <strong id="vpc_apiroutetab_0005__b5853151815144">subnet</strong> field</caption><thead align="left"><tr id="vpc_apiroutetab_0005__row8534152419469"><th align="left" class="cellrowborder" valign="top" width="20.407959204079592%" id="mcps1.3.3.4.2.5.1.1"><p id="vpc_apiroutetab_0005__p4534172444619"><strong id="vpc_apiroutetab_0005__b9806181912148">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.348265173482652%" id="mcps1.3.3.4.2.5.1.2"><p id="vpc_apiroutetab_0005__p2053432410465"><strong id="vpc_apiroutetab_0005__b252122019145">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.447755224477554%" id="mcps1.3.3.4.2.5.1.3"><p id="vpc_apiroutetab_0005__p175346245462"><strong id="vpc_apiroutetab_0005__b3251142131414">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="39.796020397960206%" id="mcps1.3.3.4.2.5.1.4"><p id="vpc_apiroutetab_0005__p165341243465"><strong id="vpc_apiroutetab_0005__b18769142111410">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_apiroutetab_0005__row9534224114619"><td class="cellrowborder" valign="top" width="20.407959204079592%" headers="mcps1.3.3.4.2.5.1.1 "><p id="vpc_apiroutetab_0005__p10534182474614">associate</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.3.4.2.5.1.2 "><p id="vpc_apiroutetab_0005__p15341624194620">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.447755224477554%" headers="mcps1.3.3.4.2.5.1.3 "><p id="vpc_apiroutetab_0005__p1253410244465">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.3.4.2.5.1.4 "><p id="vpc_apiroutetab_0005__p8534142454614">Specifies a list of IDs of the subnets to be associated with the route table.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_apiroutetab_0005__row15341624194619"><td class="cellrowborder" valign="top" width="20.407959204079592%" headers="mcps1.3.3.4.2.5.1.1 "><p id="vpc_apiroutetab_0005__p125345244468">disassociate</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.3.4.2.5.1.2 "><p id="vpc_apiroutetab_0005__p05498240465">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.447755224477554%" headers="mcps1.3.3.4.2.5.1.3 "><p id="vpc_apiroutetab_0005__p154721911667">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.3.4.2.5.1.4 "><p id="vpc_apiroutetab_0005__p205491024114618">Specifies a list of IDs of the subnets to be disassociated from the route table.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_apiroutetab_0005__section2046113215537"><h4 class="sectiontitle">Example Request</h4><ul id="vpc_apiroutetab_0005__ul259716237534"><li id="vpc_apiroutetab_0005__li3597152325316">Associate route table 3d42a0d4-a980-4613-ae76-a2cddecff054 with subnet 1a8b8c98-3976-401b-a735-8b058109268c.<pre class="screen" id="vpc_apiroutetab_0005__screen554916247465">POST https://{Endpoint}/v1/6fbe9263116a4b68818cf1edce16bc4f/routetables/3d42a0d4-a980-4613-ae76-a2cddecff054/action
|
|
|
|
{
|
|
"routetable": {
|
|
"subnets": {
|
|
"associate": [
|
|
"1a8b8c98-3976-401b-a735-8b058109268c"
|
|
]
|
|
}
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="vpc_apiroutetab_0005__section2706622154614"><h4 class="sectiontitle">Response Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiroutetab_0005__table27371522184610" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response parameter</caption><thead align="left"><tr id="vpc_apiroutetab_0005__row854992454615"><th align="left" class="cellrowborder" valign="top" width="22.45%" id="mcps1.3.5.2.2.4.1.1"><p id="vpc_apiroutetab_0005__p3549152434613"><strong id="vpc_apiroutetab_0005__b18778175814177">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="31.630000000000003%" id="mcps1.3.5.2.2.4.1.2"><p id="vpc_apiroutetab_0005__p1054992410465"><strong id="vpc_apiroutetab_0005__b1363125918172">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.92%" id="mcps1.3.5.2.2.4.1.3"><p id="vpc_apiroutetab_0005__p16549924174618"><strong id="vpc_apiroutetab_0005__b101638018184">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_apiroutetab_0005__row554912454611"><td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.2.2.4.1.1 "><p id="vpc_apiroutetab_0005__p1954992494614">routetable</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.630000000000003%" headers="mcps1.3.5.2.2.4.1.2 "><p id="vpc_apiroutetab_0005__p9549202416468"><a href="#vpc_apiroutetab_0005__table884119412392">routetable</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.92%" headers="mcps1.3.5.2.2.4.1.3 "><p id="vpc_apiroutetab_0005__p45497248465">Specifies the route table. For details, see <a href="#vpc_apiroutetab_0005__table884119412392">Table 6</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_apiroutetab_0005__table884119412392"></a><a name="table884119412392"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiroutetab_0005__table884119412392" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Description of the <strong id="vpc_apiroutetab_0005__b615921111222">routetable</strong> field</caption><thead align="left"><tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_row2153143113131"><th align="left" class="cellrowborder" valign="top" width="22.45%" id="mcps1.3.5.3.2.4.1.1"><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p11153203171311">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.45%" id="mcps1.3.5.3.2.4.1.2"><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p16153103141315">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.1%" id="mcps1.3.5.3.2.4.1.3"><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p41531131161315">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_row101531031111314"><td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p151531313136">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p315343151313">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.1%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_ul1815353171319"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li181532318139">Specifies the route table ID, which uniquely identifies the route table.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li3153531201316">The value must be in standard UUID format.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_row191533312137"><td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p91531631181315">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p10153163111137">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.1%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_ul1915323113139"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li3153113115138">Specifies the route table name.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li171531731181319">The value can contain up to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.).</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_row7153331191314"><td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p1815318314131">default</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p4153331111318">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.1%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_ul51531531151314"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li2153123111137">Specifies whether the route table is the default one.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li915313171311">The value can be <strong id="vpc_apiroutetab_0005__b6113632142216">true</strong> (default route table) or <strong id="vpc_apiroutetab_0005__b101131632162215">false</strong> (custom route table).</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_row512113911571"><td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_p1122203915571">routes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_p1269685835715">Array of <a href="#vpc_apiroutetab_0005__table1687317463915">route</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.1%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_ul086816394595"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li15868103955918">Specifies the route list. For details, see <a href="#vpc_apiroutetab_0005__table1687317463915">Table 7</a>.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li326581711292">Each route table can have a maximum of 200 routes.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_row515318312131"><td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p14153133111134">subnets</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p315315313135">Array of <a href="#vpc_apiroutetab_0005__table17950204203919">subnet</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.1%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_ul3153431131314"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li171536312133">Specifies the subnets associated with the route table. For details, see <a href="#vpc_apiroutetab_0005__table17950204203919">Table 8</a>.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li10153831121316">Only subnets in the VPC to which the route table belongs can be associated with the route table.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_row31531731141313"><td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p1715333191318">tenant_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p9153173114136">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.1%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_ul16478202755010"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li1547832714507">Specifies the project ID.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_row1915313114132"><td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p1415393118135">vpc_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p81531531201312">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.1%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_ul31089364503"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li12108133610504">Specifies the ID of the VPC associated with the route table.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_row1215373114136"><td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p161536314133">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.45%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p181538313131">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.1%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_ul9153531151310"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li915323112133">Provides supplementary information about the route table.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li1415323111313">The value can contain no more than 255 characters and cannot contain angle brackets (< or >).</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_apiroutetab_0005__table1687317463915"></a><a name="table1687317463915"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiroutetab_0005__table1687317463915" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Description of the <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b1637410588517">route</strong> field</caption><thead align="left"><tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_row515383161311"><th align="left" class="cellrowborder" valign="top" width="23.23%" id="mcps1.3.5.4.2.4.1.1"><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p2153931101310">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.220000000000002%" id="mcps1.3.5.4.2.4.1.2"><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p3153173181310">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54.55%" id="mcps1.3.5.4.2.4.1.3"><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p1415312315135">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_row1279917312363"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_p1480043123618">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.220000000000002%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_p158001311368">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.55%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_ul18902107153719"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li13194174943813">Specifies the route type.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li1719418493388">Values:<ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_ul16261353173811"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li19020720376"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b193325221666">ecs</strong> (ECS)</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li109021479374"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b1829722314619">eni</strong> (NIC)</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li1790220753714"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b22746249616">vip</strong> (Virtual IP address)</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li49028715373"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b1928920893020">nat</strong> (NAT gateway)</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li109023723719"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b1380518261296">peering</strong> (VPC peering connection)</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li3902777379"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b116334289290">vpn</strong> (VPN)</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li490317183717"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b11814429112920">dc</strong> (Direct Connect connection)</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li390320743713"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b14690112514523">egw</strong>: VPC endpoint. This route type is not supported.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li1762023194020"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b2082313198401">er</strong>: enterprise router</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li176942105378"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b19253062103">subeni</strong>: supplementary network interface. This type of route cannot be created or updated by users.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li89692309136"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b46488541257">local</strong>: reserved CIDR block. The destination CIDR block of the route configured cannot overlap with that defined by <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b12961114419475">local</strong>.</li></ul>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_row1815318312139"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p315333113133">destination</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.220000000000002%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p815343121311">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.55%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_ul1515313116131"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li2015312310139">Specifies the destination CIDR block of a route.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_li515316311133">Constraints: The value must be in valid IPv4 or IPv6 CIDR formats.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_row915313171320"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p1153173111318">nexthop</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.220000000000002%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p141531331141316">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.55%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_ul99929820391"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li139928812396">Specifies the ID of the next hop in the route.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li3992684394">Values:<ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_ul7886201515396"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li699210815391">When <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b1133715543297">type</strong> is <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b193381354102918">ecs</strong>, the value is an ECS ID.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li1499208133920">When <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b5230155652910">type</strong> is <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b1323015560298">eni</strong>, the value is an extension NIC ID.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li109922818396">When <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b103481157192910">type</strong> is <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b1034917576294">vip</strong>, the value is a virtual IP address.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li11992583397">When <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b4409558182911">type</strong> is <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b20410195822918">nat</strong>, the value a NAT gateway ID.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li119929819391">When <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b7522159152914">type</strong> is <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b1452215962914">peering</strong>, the value is a VPC peering connection ID.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li1399220813913">When <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b32791405309">type</strong> is <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b14280110143012">vpn</strong>, the value is a VPN ID.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li179925810397">When <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b9222016303">type</strong> is <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b162248163015">dc</strong>, the value is a Direct Connect connection ID.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li4774843203312">When <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b137248253258">type</strong> is set to <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b8510112852517">egw</strong>, the value is a VPC endpoint ID.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li7973111319409">When <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b251935344110">type</strong> is set to <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b185198539416">er</strong>, the value is the ID of an enterprise router.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li5776204312381">When <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b08319964316">type</strong> is set to <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_b3835954312">subeni</strong>, the value is the ID of a supplementary network interface.</li></ul>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_row1343283418367"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_p13432734173616">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.220000000000002%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_p19432133423620">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.55%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_ul18155710164020"><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li15155201024020">Provides supplementary information about the route.</li><li id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_li415520107401">The value can contain up to 255 characters and cannot contain angle brackets (< or >).</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_apiroutetab_0005__table17950204203919"></a><a name="table17950204203919"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiroutetab_0005__table17950204203919" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Description of the <strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_b14181491115">subnet</strong> field</caption><thead align="left"><tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_row171531331131310"><th align="left" class="cellrowborder" valign="top" width="23.23%" id="mcps1.3.5.5.2.4.1.1"><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p6153173121320"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_b1935205112115">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.220000000000002%" id="mcps1.3.5.5.2.4.1.2"><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p191537315136"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_b1646311523114">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54.55%" id="mcps1.3.5.5.2.4.1.3"><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p15153173119138"><strong id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_b193346530117">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_row1015343151311"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.5.5.2.4.1.1 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p1153153110133">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.220000000000002%" headers="mcps1.3.5.5.2.4.1.2 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p8153163112134">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.55%" headers="mcps1.3.5.5.2.4.1.3 "><p id="vpc_apiroutetab_0005__vpc_apiroutetab_0002_vpc_apiroutetab_0001_p141761235103513">Specifies the ID of the subnet associated with the route table.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_apiroutetab_0005__section1826218095420"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="vpc_apiroutetab_0005__screen4311202655210">{
|
|
"routetable": {
|
|
"id": "3d42a0d4-a980-4613-ae76-a2cddecff054",
|
|
"vpc_id": "ab78be2d-782f-42a5-aa72-35879f6890ff",
|
|
"description": "abc",
|
|
"routes": [
|
|
{
|
|
"type": "ecs",
|
|
"destination": "10.10.10.0/24",
|
|
"nexthop": "7c50463d-d36c-4417-aa85-cc11fa10f341",
|
|
"description": "abc"
|
|
}
|
|
],
|
|
"subnets": [
|
|
{
|
|
"id": "8d4ce32f-d68a-4c4c-9f18-c68d8a5c7f2f"
|
|
}
|
|
],
|
|
"tenant_id": "6fbe9263116a4b68818cf1edce16bc4f"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="vpc_apiroutetab_0005__section31981619"><h4 class="sectiontitle">Status Code</h4><p id="vpc_apiroutetab_0005__p18112112662914">See <a href="vpc_api_0002.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="vpc_apiroutetab_0005__section85821649202813"><h4 class="sectiontitle">Error Code</h4><p id="vpc_apiroutetab_0005__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_apiroutetab_0000.html">Route Table</a></div>
|
|
</div>
|
|
</div>
|
|
|