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>
290 lines
22 KiB
HTML
290 lines
22 KiB
HTML
<a name="nat_api_0061"></a><a name="nat_api_0061"></a>
|
|
|
|
<h1 class="topictitle1">Creating a NAT Gateway</h1>
|
|
<div id="body49596206"><div class="section" id="nat_api_0061__section19627306"><h4 class="sectiontitle">Function</h4><p id="nat_api_0061__p57869722">This API is used to create a NAT gateway.</p>
|
|
</div>
|
|
<div class="section" id="nat_api_0061__section79426345357"><h4 class="sectiontitle">URI</h4><p id="nat_api_0061__p34711558113616">POST /v2.0/nat_gateways</p>
|
|
</div>
|
|
<div class="section" id="nat_api_0061__section14118316"><h4 class="sectiontitle">Request</h4><p id="nat_api_0061__p1027211320387"><a href="#nat_api_0061__table531642713017">Table 1</a> describes the request parameter.</p>
|
|
|
|
<div class="tablenoborder"><a name="nat_api_0061__table531642713017"></a><a name="table531642713017"></a><table cellpadding="4" cellspacing="0" summary="" id="nat_api_0061__table531642713017" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request parameter</caption><thead align="left"><tr id="nat_api_0061__row15519227163019"><th align="left" class="cellrowborder" valign="top" width="22.939999999999998%" id="mcps1.3.3.3.2.5.1.1"><p id="nat_api_0061__p1519927183015">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="8.23%" id="mcps1.3.3.3.2.5.1.2"><p id="nat_api_0061__p165191278302">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.77%" id="mcps1.3.3.3.2.5.1.3"><p id="nat_api_0061__p85191827133020">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.06%" id="mcps1.3.3.3.2.5.1.4"><p id="nat_api_0061__p10519027113020">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="nat_api_0061__row12519162773014"><td class="cellrowborder" valign="top" width="22.939999999999998%" headers="mcps1.3.3.3.2.5.1.1 "><p id="nat_api_0061__p19519182710304">nat_gateway</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.23%" headers="mcps1.3.3.3.2.5.1.2 "><p id="nat_api_0061__p651913277303">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.77%" headers="mcps1.3.3.3.2.5.1.3 "><p id="nat_api_0061__p1836019108576">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.06%" headers="mcps1.3.3.3.2.5.1.4 "><p id="nat_api_0061__p15519192743011">Specifies the NAT gateway object. For details, see <a href="#nat_api_0061__table93481227153014">Table 2</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="nat_api_0061__table93481227153014"></a><a name="table93481227153014"></a><table cellpadding="4" cellspacing="0" summary="" id="nat_api_0061__table93481227153014" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Description of the <strong id="nat_api_0061__b674335165215">nat_gateway</strong> field</caption><thead align="left"><tr id="nat_api_0061__row1051916278301"><th align="left" class="cellrowborder" valign="top" width="22.939999999999998%" id="mcps1.3.3.4.2.5.1.1"><p id="nat_api_0061__p10519132723015">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="8.23%" id="mcps1.3.3.4.2.5.1.2"><p id="nat_api_0061__p95191427163010">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.77%" id="mcps1.3.3.4.2.5.1.3"><p id="nat_api_0061__p195191927133019">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.06%" id="mcps1.3.3.4.2.5.1.4"><p id="nat_api_0061__p85191127143015">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="nat_api_0061__row13519162717309"><td class="cellrowborder" valign="top" width="22.939999999999998%" headers="mcps1.3.3.4.2.5.1.1 "><p id="nat_api_0061__p8519142717306">tenant_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.23%" headers="mcps1.3.3.4.2.5.1.2 "><p id="nat_api_0061__p1519427203019">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.77%" headers="mcps1.3.3.4.2.5.1.3 "><p id="nat_api_0061__p7519227183020">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.06%" headers="mcps1.3.3.4.2.5.1.4 "><p id="nat_api_0061__p16519162711308">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row0519192793015"><td class="cellrowborder" valign="top" width="22.939999999999998%" headers="mcps1.3.3.4.2.5.1.1 "><p id="nat_api_0061__p8519142711302">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.23%" headers="mcps1.3.3.4.2.5.1.2 "><p id="nat_api_0061__p1151962733014">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.77%" headers="mcps1.3.3.4.2.5.1.3 "><p id="nat_api_0061__p13519112753013">String(64)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.06%" headers="mcps1.3.3.4.2.5.1.4 "><p id="nat_api_0061__p12519327113012">Specifies the NAT gateway name.</p>
|
|
<p id="nat_api_0061__p15519227143015">The name can contain only digits, letters, underscores (_), and hyphens (-).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row1651920271306"><td class="cellrowborder" valign="top" width="22.939999999999998%" headers="mcps1.3.3.4.2.5.1.1 "><p id="nat_api_0061__p65191327153018">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.23%" headers="mcps1.3.3.4.2.5.1.2 "><p id="nat_api_0061__p5519122733012">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.77%" headers="mcps1.3.3.4.2.5.1.3 "><p id="nat_api_0061__p125191227203016">String(255)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.06%" headers="mcps1.3.3.4.2.5.1.4 "><p id="nat_api_0061__p6519152719306">Provides supplementary information about the NAT gateway.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row95191027143013"><td class="cellrowborder" valign="top" width="22.939999999999998%" headers="mcps1.3.3.4.2.5.1.1 "><p id="nat_api_0061__p95190271307">spec</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.23%" headers="mcps1.3.3.4.2.5.1.2 "><p id="nat_api_0061__p195191927143014">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.77%" headers="mcps1.3.3.4.2.5.1.3 "><p id="nat_api_0061__p12519172793015">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.06%" headers="mcps1.3.3.4.2.5.1.4 "><p id="nat_api_0061__p251962719307">Specifies the NAT gateway type.</p>
|
|
<p id="nat_api_0061__p15191327183013">The type can be:</p>
|
|
<ul id="nat_api_0061__ul151911279307"><li id="nat_api_0061__li851917277302"><strong id="nat_api_0061__b6934161912815">0</strong>: micro type, which supports up to 1,000 SNAT connections.</li><li id="nat_api_0061__li1794116694911"><strong id="nat_api_0061__b1313513211787">1</strong>: small type, which supports up to 10,000 SNAT connections.</li><li id="nat_api_0061__li751902720307"><strong id="nat_api_0061__b15436163935910">2</strong>: medium type, which supports up to 50,000 SNAT connections.</li><li id="nat_api_0061__li251952703017"><strong id="nat_api_0061__b1139694119">3</strong>: large type, which supports up to 200,000 SNAT connections.</li><li id="nat_api_0061__li185192279309"><strong id="nat_api_0061__b83552382110">4</strong>: extra-large type, which supports up to 1,000,000 SNAT connections.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row35192277306"><td class="cellrowborder" valign="top" width="22.939999999999998%" headers="mcps1.3.3.4.2.5.1.1 "><p id="nat_api_0061__p55191827103018">router_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.23%" headers="mcps1.3.3.4.2.5.1.2 "><p id="nat_api_0061__p1751942763015">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.77%" headers="mcps1.3.3.4.2.5.1.3 "><p id="nat_api_0061__p19519152720308">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.06%" headers="mcps1.3.3.4.2.5.1.4 "><p id="nat_api_0061__p151972713301">Specifies the VPC ID. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row10519172753011"><td class="cellrowborder" valign="top" width="22.939999999999998%" headers="mcps1.3.3.4.2.5.1.1 "><p id="nat_api_0061__p45191127163011">internal_network_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="8.23%" headers="mcps1.3.3.4.2.5.1.2 "><p id="nat_api_0061__p1051910279307">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.77%" headers="mcps1.3.3.4.2.5.1.3 "><p id="nat_api_0061__p85191527133017">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.06%" headers="mcps1.3.3.4.2.5.1.4 "><p id="nat_api_0061__p1034195216414">Specifies the network ID of the downstream interface (the next hop of the DVR) of the NAT gateway. </p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="nat_api_0061__section59955987"><h4 class="sectiontitle">Response</h4><p id="nat_api_0061__p8275315114910"><a href="#nat_api_0061__table1899835483516">Table 3</a> lists response parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="nat_api_0061__table1899835483516"></a><a name="table1899835483516"></a><table cellpadding="4" cellspacing="0" summary="" id="nat_api_0061__table1899835483516" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response parameter</caption><thead align="left"><tr id="nat_api_0061__row7169955173518"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.4.3.2.4.1.1"><p id="nat_api_0061__p17169195519358">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.999999999999996%" id="mcps1.3.4.3.2.4.1.2"><p id="nat_api_0061__p5169105593518">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.00000000000001%" id="mcps1.3.4.3.2.4.1.3"><p id="nat_api_0061__p2169855193514">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="nat_api_0061__row316945543510"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.4.3.2.4.1.1 "><p id="nat_api_0061__p161697551351">nat_gateway</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.999999999999996%" headers="mcps1.3.4.3.2.4.1.2 "><p id="nat_api_0061__p716916553359">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.4.3.2.4.1.3 "><p id="nat_api_0061__p141693558351">Specifies the NAT gateway object. For details, see <a href="#nat_api_0061__table5998115418352">Table 4</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="nat_api_0061__table5998115418352"></a><a name="table5998115418352"></a><table cellpadding="4" cellspacing="0" summary="" id="nat_api_0061__table5998115418352" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Description of the <strong id="nat_api_0061__b6319173051013">nat_gateway</strong> field</caption><thead align="left"><tr id="nat_api_0061__row6169455113517"><th align="left" class="cellrowborder" valign="top" width="23.23%" id="mcps1.3.4.4.2.4.1.1"><p id="nat_api_0061__p18169125533511">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.18%" id="mcps1.3.4.4.2.4.1.2"><p id="nat_api_0061__p11692559359">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="58.589999999999996%" id="mcps1.3.4.4.2.4.1.3"><p id="nat_api_0061__p15169165515355">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="nat_api_0061__row16169555143516"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p131697559351">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p11169115553519">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><p id="nat_api_0061__p16169195593517">Specifies the NAT gateway ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row5169755193513"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p141694552355">tenant_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p816965583515">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><p id="nat_api_0061__p201693557359">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row91691755183512"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p16169555143511">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p14169155513358">String(64)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><p id="nat_api_0061__p19169955183517">Specifies the NAT gateway name.</p>
|
|
<p id="nat_api_0061__p15169055203514">The name can contain only digits, letters, underscores (_), and hyphens (-).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row191691855183511"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p1616925533510">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p111692055193514">String(255)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><p id="nat_api_0061__p181694559355">Provides supplementary information about the NAT gateway.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row1169655103519"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p2016935510359">spec</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p7169165511359">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><p id="nat_api_0061__p1216915518351">Specifies the NAT gateway type.</p>
|
|
<p id="nat_api_0061__p19169115553517">The type can be:</p>
|
|
<ul id="nat_api_0061__ul14313123645112"><li id="nat_api_0061__li23131036135113"><strong id="nat_api_0061__b203231131885">0</strong>: micro type, which supports up to 1,000 SNAT connections.</li></ul>
|
|
<ul id="nat_api_0061__ul1216911558358"><li id="nat_api_0061__li81698551359"><strong id="nat_api_0061__b69605375103">1</strong>: small type, which supports up to 10,000 SNAT connections.</li><li id="nat_api_0061__li51698556351"><strong id="nat_api_0061__b2085620429102">2</strong>: medium type, which supports up to 50,000 SNAT connections.</li><li id="nat_api_0061__li17169255203511"><strong id="nat_api_0061__b4885124519109">3</strong>: large type, which supports up to 200,000 SNAT connections.</li><li id="nat_api_0061__li1216955593514"><strong id="nat_api_0061__b1247834831015">4</strong>: extra-large type, which supports up to 1,000,000 SNAT connections.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row1716985523510"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p1016965563511">router_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p1616917554354">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><p id="nat_api_0061__p15169195517351">Specifies the router ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row10169355153512"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p17169135563513">internal_network_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p10169125533515">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><p id="nat_api_0061__p8169195593518">Specifies the network ID of the downstream interface (the next hop of the DVR) of the NAT gateway.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row2169755143512"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p121696555354">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p171691355173516">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><ul id="nat_api_0061__ul5169105563515"><li id="nat_api_0061__li2169755153513">Specifies the NAT gateway status.</li><li id="nat_api_0061__li1516935514356">For details about all its values, see <a href="nat_api_0042.html#nat_api_0042__table1390614366107">Table 1</a>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row11169155517351"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p6169755103520">admin_state_up</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p1764614265487">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><ul id="nat_api_0061__ul71858556358"><li id="nat_api_0061__li132051838164415">Specifies whether the NAT gateway is up or down.</li><li id="nat_api_0061__li12205203804411">The state can be:<ul id="nat_api_0061__ul16205638124410"><li id="nat_api_0061__li16206163884415"><strong id="nat_api_0061__b1135931618373">true</strong>: The NAT gateway is up.</li><li id="nat_api_0061__li102063382449"><strong id="nat_api_0061__b8147172211385">false</strong>: The NAT gateway is down.</li></ul>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row13185255183510"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p1418525573515">created_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p101859557352">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><p id="nat_api_0061__p135382155910">Specifies when the NAT gateway was created (UTC time). Its value rounds to 6 decimal places for seconds. The format is yyyy-mm-dd hh:mm:ss.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row16936170122215"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p149362017222">billinginfo</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p139369062217">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><p id="nat_api_0061__p13936100172217">Specifies the order information. This parameter is left blank by default.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row77782852510"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p5771528182512">freeze_info</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p17771828132511">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><p id="nat_api_0061__p377192820251">Specifies information about the frozen NAT gateway.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row191868113513"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p1518616119354">sys_tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p518616163515">List<String></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><p id="nat_api_0061__p121861115354">Specifies the ID of the enterprise project associated with the NAT gateway when the NAT gateway is created.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row5694163712365"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p11694203711366">snat_rule_public_ip_limit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p96948372361">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><p id="nat_api_0061__p6695137133613">Specifies the maximum number of EIPs in an SNAT rule on a NAT gateway. The default value is <strong id="nat_api_0061__b1788133810179">20</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="nat_api_0061__row7617544103720"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.4.2.4.1.1 "><p id="nat_api_0061__p7617544123719">dnat_rules_limit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.18%" headers="mcps1.3.4.4.2.4.1.2 "><p id="nat_api_0061__p10617184418373">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.4.4.2.4.1.3 "><p id="nat_api_0061__p1861713440377">Specifies the maximum number of DNAT rules on a NAT gateway. The default value is <strong id="nat_api_0061__b251164012172">200</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="nat_api_0061__section2732972"><h4 class="sectiontitle">Examples</h4><ul id="nat_api_0061__ul275719269530"><li id="nat_api_0061__li1575752611535">Example request<pre class="screen" id="nat_api_0061__screen962196102446">POST https://{Endpoint}/v2.0/nat_gateways
|
|
{
|
|
"nat_gateway": {
|
|
"name": "nat_001",
|
|
"description": "my nat gateway 01",
|
|
"router_id": "d84f345c-80a1-4fa2-a39c-d0d397c3f09a",
|
|
"internal_network_id": "89d66639-aacb-4929-969d-07080b0f9fd9",
|
|
"spec": "1"
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
<ul id="nat_api_0061__ul81335385412"><li id="nat_api_0061__li11385365410">Example response<pre class="screen" id="nat_api_0061__screen23795772102558">{
|
|
"nat_gateway": {
|
|
"router_id": "d84f345c-80a1-4fa2-a39c-d0d397c3f09a",
|
|
"status": "PENDING_CREATE",
|
|
"description": "my nat gateway 01",
|
|
"admin_state_up": true,
|
|
"tenant_id": "27e25061336f4af590faeabeb7fcd9a3",
|
|
"created_at": "2017-11-18 07:34:32.203044",
|
|
"spec": "1",
|
|
"internal_network_id": "89d66639-aacb-4929-969d-07080b0f9fd9",
|
|
"id": "a78fb3eb-1654-4710-8742-3fc49d5f04f8",
|
|
"billinginfo": "",
|
|
"dnat_rules_limit": 200,
|
|
"snat_rule_public_ip_limit": 20,
|
|
"freeze_info": null,
|
|
"sys_tags": [
|
|
"_sys_enterprise_project_id=0"
|
|
],
|
|
"name": "nat_001"
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="nat_api_0061__section20044197"><h4 class="sectiontitle">Status Codes</h4><p id="nat_api_0061__p12326031195217">See <a href="nat_api_0038.html">Status Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="nat_api_0001.html">NAT Gateway Service</a></div>
|
|
</div>
|
|
</div>
|
|
|