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>
275 lines
22 KiB
HTML
275 lines
22 KiB
HTML
<a name="vpc_subnet02_0002"></a><a name="vpc_subnet02_0002"></a>
|
|
|
|
<h1 class="topictitle1">Querying a Subnet</h1>
|
|
<div id="body1496890183069"><div class="section" id="vpc_subnet02_0002__section17487184"><h4 class="sectiontitle">Function</h4><p id="vpc_subnet02_0002__p51221589">This API is used to query details about a subnet.</p>
|
|
</div>
|
|
<div class="section" id="vpc_subnet02_0002__section23166934"><h4 class="sectiontitle">URI</h4><p id="vpc_subnet02_0002__p15781183111649">GET /v2.0/subnets/{subnet_id}</p>
|
|
</div>
|
|
<div class="section" id="vpc_subnet02_0002__section64582388"><h4 class="sectiontitle">Request Parameters</h4><p id="vpc_subnet02_0002__p34978441">None</p>
|
|
</div>
|
|
<div class="section" id="vpc_subnet02_0002__section178426142111"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="vpc_subnet02_0002__screen1043753615210">GET https://{Endpoint}/v2.0/subnets/011fc878-5521-4654-a1ad-f5b0b5820302</pre>
|
|
</div>
|
|
<div class="section" id="vpc_subnet02_0002__section44370581"><h4 class="sectiontitle">Response Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnet02_0002__table14681450" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Response parameter</caption><thead align="left"><tr id="vpc_subnet02_0002__row21069217"><th align="left" class="cellrowborder" valign="top" width="23.169999999999998%" id="mcps1.3.5.2.2.4.1.1"><p id="vpc_subnet02_0002__p28885026">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25.61%" id="mcps1.3.5.2.2.4.1.2"><p id="vpc_subnet02_0002__p57985771">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.22%" id="mcps1.3.5.2.2.4.1.3"><p id="vpc_subnet02_0002__p4499576">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_subnet02_0002__row28921355"><td class="cellrowborder" valign="top" width="23.169999999999998%" headers="mcps1.3.5.2.2.4.1.1 "><p id="vpc_subnet02_0002__p60928390">subnet</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.61%" headers="mcps1.3.5.2.2.4.1.2 "><p id="vpc_subnet02_0002__p36252562"><a href="#vpc_subnet02_0002__table176735992713">subnet</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.22%" headers="mcps1.3.5.2.2.4.1.3 "><p id="vpc_subnet02_0002__p19248251">Specifies the subnet. For details, see <a href="#vpc_subnet02_0002__table176735992713">Table 2</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_subnet02_0002__table176735992713"></a><a name="table176735992713"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnet02_0002__table176735992713" frame="border" border="1" rules="all"><caption><b>Table 2 </b><strong id="vpc_subnet02_0002__b550825735417">subnet</strong> objects</caption><thead align="left"><tr id="vpc_subnet02_0002__row176713593276"><th align="left" class="cellrowborder" valign="top" width="28.332833283328334%" id="mcps1.3.5.3.2.4.1.1"><p id="vpc_subnet02_0002__p136755912715"><strong id="vpc_subnet02_0002__b55521595549">Attribute</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.332833283328334%" id="mcps1.3.5.3.2.4.1.2"><p id="vpc_subnet02_0002__p667105912718"><strong id="vpc_subnet02_0002__b1066614016557">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="43.33433343334334%" id="mcps1.3.5.3.2.4.1.3"><p id="vpc_subnet02_0002__p26855915275"><strong id="vpc_subnet02_0002__b77781911550">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_subnet02_0002__row28303131105515"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p2014344105614">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p28944191105614">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p53796361105614">Specifies the subnet ID.</p>
|
|
<p id="vpc_subnet02_0002__p2677113954519">This parameter is not mandatory when you query subnets.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row1868135972719"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p37015595272">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p18706591271">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p1870259172715">Specifies the subnet name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row670165910271"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p187012596279">ip_version</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p137095922720">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p870155932715">Specifies the IP address version.</p>
|
|
<p id="vpc_subnet02_0002__p10708598273">The value can be <strong id="vpc_subnet02_0002__b1333717231551">4</strong> (IPv4) or <strong id="vpc_subnet02_0002__b934002314515">6</strong> (IPv6). </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row1270135915274"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p1770105919271">ipv6_address_mode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p1370205912279">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p5701759142713">Specifies the IPv6 addressing mode.</p>
|
|
<p id="vpc_subnet02_0002__p167055910273">Only <strong id="vpc_subnet02_0002__b32201442205515">dhcpv6-stateful</strong> is supported.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row57075913279"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p070195972715">ipv6_ra_mode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p1970559102716">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p19701959152712">Specifies the IPv6 route broadcast mode.</p>
|
|
<p id="vpc_subnet02_0002__p1270185982712">Only <strong id="vpc_subnet02_0002__b205858556555">dhcpv6-stateful</strong> is supported.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row970185911274"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p5719599271">network_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p1671105982710">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p1071259102716">Specifies the ID of the network to which the subnet belongs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row9711659142718"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p1471155922712">cidr</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p1871155912279">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p471115972720">Specifies the CIDR format.</p>
|
|
<p id="vpc_subnet02_0002__p9638641211">Only the IPv4 addresses in the 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 ranges are supported. The subnet mask cannot be greater than 28.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row373659122718"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p173195914274">gateway_ip</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p16733594272">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p167319597276">The gateway IP address cannot conflict with IP addresses configured for <strong id="vpc_subnet02_0002__b1412810421118">allocation_pools</strong>.</p>
|
|
<p id="vpc_subnet02_0002__p1773175918271">This attribute cannot be modified. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row6733598278"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p37325918273">allocation_pools</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p974125918276">Array of <a href="#vpc_subnet02_0002__table1777145918276">allocation_pool</a> objects</p>
|
|
<p id="vpc_subnet02_0002__p107495982715"></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p13740597271">Specifies the available IP address pool. For details, see <a href="#vpc_subnet02_0002__table1777145918276">Table 3</a>.</p>
|
|
<p id="vpc_subnet02_0002__p137415915279">Example: [ { "start": "10.0.0.2", "end": "10.0.0.251"} ]</p>
|
|
<p id="vpc_subnet02_0002__p167414592279">The last three and the first IP addresses in each subnet are the ones reserved by the system. For example, in subnet <strong id="vpc_subnet02_0002__b2897174519914">192.168.1.0/24</strong>, IP addresses 192.168.1.0, 192.168.1.253, 192.168.1.254, and 192.168.1.255 are reserved by the system.</p>
|
|
<p id="vpc_subnet02_0002__p14178729172918">[{"start": "2001:db8:a583:9::2", "end": "2001:db8:a583:9:ffff:ffff:ffff:fffc"}]</p>
|
|
<p id="vpc_subnet02_0002__p15322181416320">In IPv6 subnet 2001:db8:a583:9::/64, IP addresses 2001:db8:a583:9::1, 2001:db8:a583:9:ffff:ffff:ffff:fffd, 2001:db8:a583:9:ffff:ffff:ffff:fffe, and 2001:db8:a583:9:ffff:ffff:ffff:ffff are reserved by the system. By default, the IP addresses reserved by the system are not in the IP address pool specified by <strong id="vpc_subnet02_0002__b766815245395">allocation_pool</strong>.</p>
|
|
<p id="vpc_subnet02_0002__p074359192720">When updating an IP address pool, the <strong id="vpc_subnet02_0002__b8169132771016">allocation_pool</strong> value can contain neither gateway nor broadcast IP addresses. </p>
|
|
<p id="vpc_subnet02_0002__p3428350172918"></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row474205911270"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p774105972720">dns_nameservers</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p1474155952710">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p10743593273">Specifies the DNS server address.</p>
|
|
<p id="vpc_subnet02_0002__p97485912712">Example: "dns_nameservers": ["8.xx.xx.8","8.xx.xx.4"]</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row6741659182714"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p574959122713">host_routes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p974559112719">Array of <a href="#vpc_subnet02_0002__table177865912715">host_route</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p2074459132712">Specifies the static VM routes. For details, see <a href="#vpc_subnet02_0002__table177865912715">Table 4</a>.</p>
|
|
<p id="vpc_subnet02_0002__p1674359172717">Static routes are not supported, and entered information will be ignored.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row42017779105653"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p5182838910577">tenant_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p3734998010577">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p10487112">Specifies the project ID. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row97535914274"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p475959202718">enable_dhcp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p2755596279">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p47595962710">Specifies whether to enable the DHCP function. Value <strong id="vpc_subnet02_0002__b462064701220">false</strong> indicates that the DHCP function is not enabled.</p>
|
|
<p id="vpc_subnet02_0002__p57535914276">The value can only be <strong id="vpc_subnet02_0002__b26379320139">true</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row5751059162715"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p976659192718">use_default_subnetpool</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p27655942716">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p20761598272">Specifies whether the default address pool is used.</p>
|
|
<p id="vpc_subnet02_0002__p127625920276">The value can be set to <strong id="vpc_subnet02_0002__b13391410151311">true</strong> only when IPv6 is used.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row119218435314"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p1711142512596">subnetpool_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p511425115919">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p211132512598">Specifies the subnet pool ID.</p>
|
|
<p id="vpc_subnet02_0002__p345014515117">Currently, only IPv6 is supported.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row63315321123"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p870051413911">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p45641422124917">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p8670162382514">Specifies the project ID. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row126291040191211"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p1953114119914">created_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p595318416919">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p1395374115919">Specifies the time (UTC) when the subnet is created.</p>
|
|
<p id="vpc_subnet02_0002__p65980291419">Format: <em id="vpc_subnet02_0002__i151191438171317">yyyy-MM-ddTHH:mm:ss</em></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row1084513362123"><td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet02_0002__p139719548912">updated_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.332833283328334%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet02_0002__p53971154594">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.33433343334334%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet02_0002__p1339713549918">Specifies the time (UTC) when the subnet is updated.</p>
|
|
<p id="vpc_subnet02_0002__p292105264617">Format: <em id="vpc_subnet02_0002__i127871744101319">yyyy-MM-ddTHH:mm:ss</em></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_subnet02_0002__table1777145918276"></a><a name="table1777145918276"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnet02_0002__table1777145918276" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="vpc_subnet02_0002__b14705945111315">allocation_pool</strong> objects</caption><thead align="left"><tr id="vpc_subnet02_0002__row11772597275"><th align="left" class="cellrowborder" valign="top" width="23.65%" id="mcps1.3.5.4.2.4.1.1"><p id="vpc_subnet02_0002__p1477155962713"><strong id="vpc_subnet02_0002__b12831174761310">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.610000000000003%" id="mcps1.3.5.4.2.4.1.2"><p id="vpc_subnet02_0002__p1077859162717"><strong id="vpc_subnet02_0002__b3821184917133">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.739999999999995%" id="mcps1.3.5.4.2.4.1.3"><p id="vpc_subnet02_0002__p5771159182718"><strong id="vpc_subnet02_0002__b986615504137">Remarks</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_subnet02_0002__row167785982711"><td class="cellrowborder" valign="top" width="23.65%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_subnet02_0002__p1077159182720">start</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.610000000000003%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_subnet02_0002__p2077125912718">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.739999999999995%" headers="mcps1.3.5.4.2.4.1.3 "><p id="vpc_subnet02_0002__p2078205910275">Specifies the start IP address of a network pool.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row1782594271"><td class="cellrowborder" valign="top" width="23.65%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_subnet02_0002__p9781459162717">end</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.610000000000003%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_subnet02_0002__p1778115952719">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.739999999999995%" headers="mcps1.3.5.4.2.4.1.3 "><p id="vpc_subnet02_0002__p187825911271">Specifies the end IP address of a network pool.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_subnet02_0002__table177865912715"></a><a name="table177865912715"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnet02_0002__table177865912715" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="vpc_subnet02_0002__b102518119141">host_route</strong> objects</caption><thead align="left"><tr id="vpc_subnet02_0002__row1779145992719"><th align="left" class="cellrowborder" valign="top" width="23.712371237123715%" id="mcps1.3.5.5.2.4.1.1"><p id="vpc_subnet02_0002__p2794593271"><strong id="vpc_subnet02_0002__b04316317149">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.4024402440244%" id="mcps1.3.5.5.2.4.1.2"><p id="vpc_subnet02_0002__p14791594271"><strong id="vpc_subnet02_0002__b11192135151414">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.88518851885189%" id="mcps1.3.5.5.2.4.1.3"><p id="vpc_subnet02_0002__p14791459172716"><strong id="vpc_subnet02_0002__b52031673144">Remarks</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_subnet02_0002__row1379165919277"><td class="cellrowborder" valign="top" width="23.712371237123715%" headers="mcps1.3.5.5.2.4.1.1 "><p id="vpc_subnet02_0002__p979165972710">destination</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.4024402440244%" headers="mcps1.3.5.5.2.4.1.2 "><p id="vpc_subnet02_0002__p37995952710">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.88518851885189%" headers="mcps1.3.5.5.2.4.1.3 "><p id="vpc_subnet02_0002__p10791559172714">Specifies the destination subnet of a route.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet02_0002__row1779185915279"><td class="cellrowborder" valign="top" width="23.712371237123715%" headers="mcps1.3.5.5.2.4.1.1 "><p id="vpc_subnet02_0002__p6791359102719">nexthop</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.4024402440244%" headers="mcps1.3.5.5.2.4.1.2 "><p id="vpc_subnet02_0002__p107935942717">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.88518851885189%" headers="mcps1.3.5.5.2.4.1.3 "><p id="vpc_subnet02_0002__p87975920278">Specifies the next-hop IP address of a route.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_subnet02_0002__section63790914"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="vpc_subnet02_0002__screen1951255432119">{
|
|
"subnet": {
|
|
"name": "kesmdemeet",
|
|
"cidr": "172.16.236.0/24",
|
|
"id": "011fc878-5521-4654-a1ad-f5b0b5820302",
|
|
"enable_dhcp": true,
|
|
"project_id": "bbfe8c41dd034a07bebd592bf03b4b0c",
|
|
"dns_nameservers": [],
|
|
"allocation_pools": [
|
|
{
|
|
"start": "172.16.236.2",
|
|
"end": "172.16.236.251"
|
|
}
|
|
],
|
|
"host_routes": [],
|
|
"ip_version": 4,
|
|
"gateway_ip": "172.16.236.1",
|
|
"created_at": "2018-03-26T08:23:43",
|
|
"updated_at": "2018-03-26T08:23:44"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="vpc_subnet02_0002__section10470352390"><h4 class="sectiontitle">Status Code</h4><p id="vpc_subnet02_0002__p18112112662914">See <a href="vpc_api_0002.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="vpc_subnet02_0002__section85821649202813"><h4 class="sectiontitle">Error Code</h4><p id="vpc_subnet02_0002__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_subnet02_0000.html">Subnet</a></div>
|
|
</div>
|
|
</div>
|
|
|