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>
347 lines
24 KiB
HTML
347 lines
24 KiB
HTML
<a name="CreateStaticRoute"></a><a name="CreateStaticRoute"></a>
|
|
|
|
<h1 class="topictitle1">Creating a Static Route</h1>
|
|
<div id="body1708331107508"><div class="section" id="CreateStaticRoute__section1258715345219"><h4 class="sectiontitle">Function</h4><p id="CreateStaticRoute__p7588103410216">This API is used to create a static route. Static routes are manually created, and effective routes are preferred routes.</p>
|
|
</div>
|
|
<div class="section" id="CreateStaticRoute__section205883346212"><h4 class="sectiontitle">Constraints</h4><p id="CreateStaticRoute__p1158915341323">If <strong id="CreateStaticRoute__b0589193411213">is_blackhole</strong> is set to <strong id="CreateStaticRoute__b8589173416212">false</strong>, the <strong id="CreateStaticRoute__b4589163416218">attachment_id</strong> parameter must be carried. If <strong id="CreateStaticRoute__b45892344216">is_blackhole</strong> is set to <strong id="CreateStaticRoute__b135893341926">true</strong>, the <strong id="CreateStaticRoute__b458915343215">attachment_id</strong> parameter cannot be passed.</p>
|
|
</div>
|
|
<div class="section" id="CreateStaticRoute__section459013413218"><h4 class="sectiontitle">URI</h4><p id="CreateStaticRoute__p359010345211">POST /v3/{project_id}/enterprise-router/route-tables/{route_table_id}/static-routes</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateStaticRoute__table195918343211" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="CreateStaticRoute__row95911034223"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="CreateStaticRoute__p185911341620">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="CreateStaticRoute__p959210349220">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="CreateStaticRoute__p1859223417212">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="CreateStaticRoute__p1059215341827">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateStaticRoute__row459113341026"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateStaticRoute__p159316346214">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateStaticRoute__p1559314341029">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateStaticRoute__p155931934122">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateStaticRoute__p145941134526">Project ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row11591173418211"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateStaticRoute__p25941034723">route_table_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateStaticRoute__p1759410341328">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateStaticRoute__p1759412347215">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateStaticRoute__p1059519341528">Route table ID</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateStaticRoute__section145957342029"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateStaticRoute__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="CreateStaticRoute__row35962034121"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="CreateStaticRoute__p12596734827">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="CreateStaticRoute__p1159610341627">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="CreateStaticRoute__p25971434526">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="CreateStaticRoute__p12597183411219">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateStaticRoute__row175961134921"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="CreateStaticRoute__p185971834324">X-Client-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="CreateStaticRoute__p559815341223">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="CreateStaticRoute__p135981934421">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="CreateStaticRoute__p1659820341324">Idempotence identifier</p>
|
|
<p id="CreateStaticRoute__p18599123419214">Minimum: <strong id="CreateStaticRoute__b135997341829">1</strong></p>
|
|
<p id="CreateStaticRoute__p75991342023">Maximum: <strong id="CreateStaticRoute__b145991334822">64</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateStaticRoute__request_CreateRouteRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="CreateStaticRoute__row155995348214"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="CreateStaticRoute__p760003419218">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.2"><p id="CreateStaticRoute__p5600143416212">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.3"><p id="CreateStaticRoute__p56005343220">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.3.2.5.1.4"><p id="CreateStaticRoute__p136015344214">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateStaticRoute__row759920344210"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="CreateStaticRoute__p1760163415220">route</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="CreateStaticRoute__p1060112341626">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="CreateStaticRoute__p1160215341424"><a href="#CreateStaticRoute__request_CreateRoute">CreateRoute</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="CreateStaticRoute__p1602734227">Request body for creating a route</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="CreateStaticRoute__request_CreateRoute"></a><a name="request_CreateRoute"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateStaticRoute__request_CreateRoute" frame="border" border="1" rules="all"><caption><b>Table 4 </b>CreateRoute</caption><thead align="left"><tr id="CreateStaticRoute__row5602173416213"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.1"><p id="CreateStaticRoute__p18603173411219">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.2"><p id="CreateStaticRoute__p260318341522">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.3"><p id="CreateStaticRoute__p19604183419214">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.4.2.5.1.4"><p id="CreateStaticRoute__p2604203417215">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateStaticRoute__row260210341322"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="CreateStaticRoute__p176049341926">destination</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="CreateStaticRoute__p660517341227">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="CreateStaticRoute__p14605143411215">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="CreateStaticRoute__p186058341526">Destination address of the route</p>
|
|
<p id="CreateStaticRoute__p106061734525">Minimum: <strong id="CreateStaticRoute__b146061341126">0</strong></p>
|
|
<p id="CreateStaticRoute__p1460613341425">Maximum: <strong id="CreateStaticRoute__b116061634929">256</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row136021234029"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="CreateStaticRoute__p060613415217">attachment_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="CreateStaticRoute__p166062345220">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="CreateStaticRoute__p1060718346215">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="CreateStaticRoute__p176071341213">ID of the attachment that the next hop of the route points to</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row660212348214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="CreateStaticRoute__p136077341223">is_blackhole</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="CreateStaticRoute__p1160718349211">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="CreateStaticRoute__p7608734221">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="CreateStaticRoute__p96087342219">Whether the route is a blackhole route. The default value is false.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateStaticRoute__section176091934525"><h4 class="sectiontitle">Response Parameters</h4><p id="CreateStaticRoute__p3609193415212"><strong id="CreateStaticRoute__b1160914342214">Status code: 202</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateStaticRoute__ResponseHeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response header parameters</caption><thead align="left"><tr id="CreateStaticRoute__row06091134121"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="CreateStaticRoute__p146101634426">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.2"><p id="CreateStaticRoute__p9610113410220">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.3.2.4.1.3"><p id="CreateStaticRoute__p1061053418211">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateStaticRoute__row2060973412220"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="CreateStaticRoute__p26117345219">X-Client-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="CreateStaticRoute__p1661115343212">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="CreateStaticRoute__p96118343215">Idempotence identifier</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateStaticRoute__response_RouteResponse" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="CreateStaticRoute__row1661219347216"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.1"><p id="CreateStaticRoute__p1961218345215">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.2"><p id="CreateStaticRoute__p961318341828">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.4.2.4.1.3"><p id="CreateStaticRoute__p14613113417210">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateStaticRoute__row1361211341722"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="CreateStaticRoute__p5613183410217">route</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="CreateStaticRoute__p861412349210"><a href="#CreateStaticRoute__response_Route">Route</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="CreateStaticRoute__p1661412346213">Route</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row1461216341027"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="CreateStaticRoute__p36141348214">request_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="CreateStaticRoute__p166146342211">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="CreateStaticRoute__p66156345216">Request ID</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="CreateStaticRoute__response_Route"></a><a name="response_Route"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateStaticRoute__response_Route" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Route</caption><thead align="left"><tr id="CreateStaticRoute__row1961514341326"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.1"><p id="CreateStaticRoute__p146161341323">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.2"><p id="CreateStaticRoute__p8616334225">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.5.2.4.1.3"><p id="CreateStaticRoute__p261733413216">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateStaticRoute__row261517341225"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="CreateStaticRoute__p176171034229">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="CreateStaticRoute__p186191534921">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="CreateStaticRoute__p1561993420213">Route ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row1961518341724"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="CreateStaticRoute__p20619434522">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="CreateStaticRoute__p116201534728">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="CreateStaticRoute__p8620634425">Route type. The value is <strong id="CreateStaticRoute__b0620143412214">static</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row86158341024"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="CreateStaticRoute__p126200345211">state</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="CreateStaticRoute__p862153418218">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="CreateStaticRoute__p76211347210">Route status. Value options: <strong id="CreateStaticRoute__b56213341219">pending</strong>, <strong id="CreateStaticRoute__b1062163415212">available</strong>, <strong id="CreateStaticRoute__b362110349213">modifying</strong>, <strong id="CreateStaticRoute__b136213341523">deleting</strong>, <strong id="CreateStaticRoute__b16621143412213">deleted</strong>, and <strong id="CreateStaticRoute__b96211634724">failed</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row261563418217"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="CreateStaticRoute__p1462214341222">is_blackhole</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="CreateStaticRoute__p16622123419219">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="CreateStaticRoute__p166220340219">Whether the route is a blackhole route</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row56151234829"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="CreateStaticRoute__p662220341426">destination</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="CreateStaticRoute__p1962319345216">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="CreateStaticRoute__p196237341029">Destination address of the route</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row9615143419215"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="CreateStaticRoute__p36232348212">attachments</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="CreateStaticRoute__p96241734823">Array of <a href="#CreateStaticRoute__response_RouteAttachment">RouteAttachment</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="CreateStaticRoute__p106242341323">Next hops</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row146151234425"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="CreateStaticRoute__p1062417341217">route_table_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="CreateStaticRoute__p96252343213">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="CreateStaticRoute__p11625334625">Route table ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row66151934528"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="CreateStaticRoute__p1662563416218">created_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="CreateStaticRoute__p362503414216">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="CreateStaticRoute__p196261734125">Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row261533419213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="CreateStaticRoute__p1626113413215">updated_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="CreateStaticRoute__p1162610341025">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="CreateStaticRoute__p196271634224">Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="CreateStaticRoute__response_RouteAttachment"></a><a name="response_RouteAttachment"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateStaticRoute__response_RouteAttachment" frame="border" border="1" rules="all"><caption><b>Table 8 </b>RouteAttachment</caption><thead align="left"><tr id="CreateStaticRoute__row162763415214"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.6.2.4.1.1"><p id="CreateStaticRoute__p12628113415214">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.6.2.4.1.2"><p id="CreateStaticRoute__p1662816349210">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.6.2.4.1.3"><p id="CreateStaticRoute__p86281234029">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateStaticRoute__row17627934523"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.1 "><p id="CreateStaticRoute__p176289347215">resource_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.2 "><p id="CreateStaticRoute__p1962913345216">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.6.2.4.1.3 "><p id="CreateStaticRoute__p156295341821">Attached resource ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row126272340217"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.1 "><p id="CreateStaticRoute__p06293341925">resource_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.2 "><p id="CreateStaticRoute__p186301934522">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.6.2.4.1.3 "><p id="CreateStaticRoute__p363013417214">Attachment type.</p>
|
|
<ul id="CreateStaticRoute__ul763043411212"><li id="CreateStaticRoute__li56309348213"><strong id="CreateStaticRoute__b1363011342025">vpc</strong>: VPC attachment</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateStaticRoute__row1962712341923"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.1 "><p id="CreateStaticRoute__p163119341127">attachment_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.2 "><p id="CreateStaticRoute__p176315341327">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.6.2.4.1.3 "><p id="CreateStaticRoute__p1963283410219">Attachment ID</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateStaticRoute__section1863215346210"><h4 class="sectiontitle">Example Requests</h4><p id="CreateStaticRoute__p863243418213">Creating a static route</p>
|
|
<pre class="screen" id="CreateStaticRoute__screen1663314341928">POST https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/route-tables/0d1748a0-5188-11e5-b86f-a51b5f125b84/static-routes
|
|
|
|
{
|
|
"route" : {
|
|
"destination" : "192.168.0.0/16",
|
|
"is_blackhole" : false,
|
|
"attachment_id" : "b70aee08-c671-4cad-9fd5-7381d163bcc8"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="CreateStaticRoute__section163513343217"><h4 class="sectiontitle">Example Responses</h4><p id="CreateStaticRoute__p20636123411211"><strong id="CreateStaticRoute__b18636634920">Status code: 202</strong></p>
|
|
<p id="CreateStaticRoute__p1463616341026">Accepted</p>
|
|
<pre class="screen" id="CreateStaticRoute__screen20637934227">{
|
|
"route" : {
|
|
"id" : "9b3b38a9-1c9d-4f01-9429-81af6b545289",
|
|
"type" : "static",
|
|
"destination" : "192.168.0.0/16",
|
|
"attachments" : [ {
|
|
"resource_id" : "9c4ab06a-0ab4-4fad-93a8-f733f3a4433d",
|
|
"resource_type" : "vpc",
|
|
"attachment_id" : "b70aee08-c671-4cad-9fd5-7381d163bcc8"
|
|
} ],
|
|
"route_table_id" : "0d1748a0-5188-11e5-b86f-a51b5f125b84",
|
|
"is_blackhole" : false,
|
|
"state" : "pending",
|
|
"created_at" : "2020-03-11T15:13:31Z",
|
|
"updated_at" : "2020-03-11T15:13:31Z"
|
|
},
|
|
"request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="CreateStaticRoute__section1164011342211"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateStaticRoute__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="CreateStaticRoute__row464183416210"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="CreateStaticRoute__p20641143413214">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="CreateStaticRoute__p206416341423">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateStaticRoute__row10641153417212"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="CreateStaticRoute__p20642103418212">202</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="CreateStaticRoute__p176422341726">Accepted</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateStaticRoute__section1064215341628"><h4 class="sectiontitle">Error Codes</h4><p id="CreateStaticRoute__p1764314341212">See <a href="ErrorCode.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="Route.html">Routes</a></div>
|
|
</div>
|
|
</div>
|
|
|