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
21 KiB
HTML
275 lines
21 KiB
HTML
<a name="vpc_subnetpools_0002"></a><a name="vpc_subnetpools_0002"></a>
|
|
|
|
<h1 class="topictitle1">Querying Subnet Pools</h1>
|
|
<div id="body1515565658182"><div class="section" id="vpc_subnetpools_0002__section47928120"><h4 class="sectiontitle">Function</h4><p id="vpc_subnetpools_0002__p39860200">This API is used to query subnet pools. Pagination query is supported. </p>
|
|
</div>
|
|
<div class="section" id="vpc_subnetpools_0002__section28699899"><h4 class="sectiontitle">URI</h4><p id="vpc_subnetpools_0002__p649912317213">GET /v2.0/subnetpools</p>
|
|
<p id="vpc_subnetpools_0002__p162144201088">Example:</p>
|
|
<pre class="screen" id="vpc_subnetpools_0002__screen52151520880">GET https://{Endpoint}/v2.0/subnetpools?fields=id&fields=name&fields=prefixes&fields=default_prefixlen&fields=address_scope_id&fields=is_default</pre>
|
|
<p id="vpc_subnetpools_0002__p3789101408">Example of querying subnet pools by page</p>
|
|
<pre class="screen" id="vpc_subnetpools_0002__screen6349039695144">GET https://{Endpoint}/v2.0/subnetpools?limit=2&marker=03f761e6-eee0-43fc-a921-8acf64c14988&page_reverse=False</pre>
|
|
<p id="vpc_subnetpools_0002__p19585161615816"></p>
|
|
</div>
|
|
<div class="section" id="vpc_subnetpools_0002__section42990474"><h4 class="sectiontitle">Request Message</h4><p id="vpc_subnetpools_0002__p4775574">None</p>
|
|
</div>
|
|
<div class="section" id="vpc_subnetpools_0002__section51369953"><h4 class="sectiontitle">Response Message</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnetpools_0002__table51277242" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Response parameter</caption><thead align="left"><tr id="vpc_subnetpools_0002__row64740644"><th align="left" class="cellrowborder" valign="top" width="23.122312231223123%" id="mcps1.3.4.2.2.4.1.1"><p id="vpc_subnetpools_0002__p9500791">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25.552555255525554%" id="mcps1.3.4.2.2.4.1.2"><p id="vpc_subnetpools_0002__p31366578">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.325132513251326%" id="mcps1.3.4.2.2.4.1.3"><p id="vpc_subnetpools_0002__p40344834">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_subnetpools_0002__row46706151"><td class="cellrowborder" valign="top" width="23.122312231223123%" headers="mcps1.3.4.2.2.4.1.1 "><p id="vpc_subnetpools_0002__p25101909">subnetpools</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.552555255525554%" headers="mcps1.3.4.2.2.4.1.2 "><p id="vpc_subnetpools_0002__p19988723">Array of <a href="#vpc_subnetpools_0002__table149662441462">subnetpool</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.325132513251326%" headers="mcps1.3.4.2.2.4.1.3 "><p id="vpc_subnetpools_0002__p15291872">Specifies the subnet pool list. For details, see <a href="#vpc_subnetpools_0002__table149662441462">Table 2</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row209211016153"><td class="cellrowborder" valign="top" width="23.122312231223123%" headers="mcps1.3.4.2.2.4.1.1 "><p id="vpc_subnetpools_0002__p281361251816">subnetpools_links</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.552555255525554%" headers="mcps1.3.4.2.2.4.1.2 "><p id="vpc_subnetpools_0002__p16813141216189">Array of <a href="#vpc_subnetpools_0002__table1318194661915">SubnetpoolsLink</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.325132513251326%" headers="mcps1.3.4.2.2.4.1.3 "><p id="vpc_subnetpools_0002__p1813612171815">Shows pagination information about subnet pools.</p>
|
|
<p id="vpc_subnetpools_0002__p973242110233">Only when <strong id="vpc_subnetpools_0002__b9383131710238">limit</strong> is used for filtering and the number of resources exceeds the value of <strong id="vpc_subnetpools_0002__b16389171712316">limit</strong> or 2000 (default value of <strong id="vpc_subnetpools_0002__b203905172237">limit</strong>), value <strong id="vpc_subnetpools_0002__b1439061713233">next</strong> will be returned for <strong id="vpc_subnetpools_0002__b1139010179239">rel</strong> and a link for <strong id="vpc_subnetpools_0002__b183901117112315">href</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_subnetpools_0002__table149662441462"></a><a name="table149662441462"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnetpools_0002__table149662441462" frame="border" border="1" rules="all"><caption><b>Table 2 </b><strong id="vpc_subnetpools_0002__b112173362286">subnetpool</strong> objects</caption><thead align="left"><tr id="vpc_subnetpools_0002__row496617442612"><th align="left" class="cellrowborder" valign="top" width="28.29%" id="mcps1.3.4.3.2.4.1.1"><p id="vpc_subnetpools_0002__p1596613445611"><strong id="vpc_subnetpools_0002__b1869153712285">Attribute</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.950000000000001%" id="mcps1.3.4.3.2.4.1.2"><p id="vpc_subnetpools_0002__p49667449616"><strong id="vpc_subnetpools_0002__b19678388280">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.76%" id="mcps1.3.4.3.2.4.1.3"><p id="vpc_subnetpools_0002__p8966144413616"><strong id="vpc_subnetpools_0002__b127971339152817">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_subnetpools_0002__row28303131105515"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p2014344105614">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p28944191105614">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p53796361105614">Specifies the subnet pool ID.</p>
|
|
<p id="vpc_subnetpools_0002__p1089535311426">This parameter is not mandatory when you query subnet pools.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row1196634410618"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p696615445611">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p3966104412620">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p89666442613">Specifies the subnet pool name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row9772661105515"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p49939441105624">ip_version</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p18562940105624">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p682749310257">Specifies the IP address version.</p>
|
|
<p id="vpc_subnetpools_0002__p33352482102727">The value can be <strong id="vpc_subnetpools_0002__b924820591277">4</strong> (IPv4) or <strong id="vpc_subnetpools_0002__b192484591977">6</strong> (IPv6).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row89665441569"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p79664442613">default_quota</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p496616449616">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p7968244361">Specifies the upper limit of the prefix space that can be allocated from the subnet pool to the subnet. For IPv4 subnet pools, <strong id="vpc_subnetpools_0002__b075216184511">default_quota</strong> is measured in units of /32. For IPv6 subnet pools, <strong id="vpc_subnetpools_0002__b18752141154512">default_quota</strong> is measured in units of /64.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row157121839115912"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p870051413911">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p15700614790">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p10487112">Specifies the project ID. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row2067783695917"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p11508184345913">created_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p1651534311599">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p552334314592">Specifies the time (UTC) when the subnet pool is created.</p>
|
|
<p id="vpc_subnetpools_0002__p65980291419">Format: <em id="vpc_subnetpools_0002__i39934423014">yyyy-MM-ddTHH:mm:ss</em></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row1428916334597"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p15531114325914">updated_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p853513432597">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p1954364325913">Specifies the time (UTC) when the subnet pool rule is updated.</p>
|
|
<p id="vpc_subnetpools_0002__p21391133101715">Format: <em id="vpc_subnetpools_0002__i19384122308">yyyy-MM-ddTHH:mm:ss</em></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row1796820448610"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p296834417616">prefixes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p187776111514">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p1496884418618">Specifies a list of subnet prefixes that are assigned to the subnet pool. The adjacent prefixes are merged and treated as a single prefix. Each subnet prefix must be unique.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row14968744267"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p199681944763">min_prefixlen</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p49682044566">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p397084410616">Specifies the minimum number for the prefix of a subnet that can be allocated from the subnet pool. The minimum number for the prefix of an IPv4 subnet is <strong id="vpc_subnetpools_0002__b155976147452">8</strong>, and that of an IPv6 subnet is <strong id="vpc_subnetpools_0002__b8598171410452">64</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row22360302105653"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p1404384110577">address_scope_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p930111615640">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p2924364410577">Specifies the ID of the address range allocated to the subnet pool.</p>
|
|
<p id="vpc_subnetpools_0002__p62544866102532">Only the administrator can specify this attribute.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row1597013444615"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p19970184415616">shared</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p597044417614">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p159708444612">Specifies whether the network can be shared to all projects. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row99704441966"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p3970744162">tenant_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p597014415620">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p1612016113323">Specifies the project ID. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row139702441463"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p4970154418614">default_prefixlen</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p397018441063">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p3970044567">Specifies the default prefix to be allocated to a subnet if the <strong id="vpc_subnetpools_0002__b1412318417175">cidr</strong> or <strong id="vpc_subnetpools_0002__b812311412179">prefixlen</strong> is not specified when you create the subnet. The default value is <strong id="vpc_subnetpools_0002__b20902144413176">8</strong> for an IPv4 subnet and <strong id="vpc_subnetpools_0002__b1903184410179">64</strong> for an IPv6 subnet.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row197118445620"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p1297110441967">max_prefixlen</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p697184412610">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p497164414613">Specifies the maximum number for the prefix of a subnet that can be allocated from the subnet pool. The maximum number for the prefix of an IPv4 subnet is <strong id="vpc_subnetpools_0002__b734153194618">32</strong>, and that of an IPv6 subnet is <strong id="vpc_subnetpools_0002__b193423314611">128</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row1597174413610"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p397114441268">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p5971104410613">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p097164411616">Provides supplementary information about the subnet pool.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row129712441610"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p1971174417613">is_default</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p1597254413618">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p17972114418620">Specifies whether this is the default subnet pool.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row5295756195814"><td class="cellrowborder" valign="top" width="28.29%" headers="mcps1.3.4.3.2.4.1.1 "><p id="vpc_subnetpools_0002__p6578142025814">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.950000000000001%" headers="mcps1.3.4.3.2.4.1.2 "><p id="vpc_subnetpools_0002__p1847018315584">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.76%" headers="mcps1.3.4.3.2.4.1.3 "><p id="vpc_subnetpools_0002__p10578120125815">Specifies the tags.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_subnetpools_0002__table1318194661915"></a><a name="table1318194661915"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnetpools_0002__table1318194661915" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="vpc_subnetpools_0002__b29281938153318">SubnetpoolsLink</strong> objects</caption><thead align="left"><tr id="vpc_subnetpools_0002__row12181246101911"><th align="left" class="cellrowborder" valign="top" width="26.87%" id="mcps1.3.4.4.2.4.1.1"><p id="vpc_subnetpools_0002__p19181646101917">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.41%" id="mcps1.3.4.4.2.4.1.2"><p id="vpc_subnetpools_0002__p718124661912">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="49.72%" id="mcps1.3.4.4.2.4.1.3"><p id="vpc_subnetpools_0002__p719134621911">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_subnetpools_0002__row191974671910"><td class="cellrowborder" valign="top" width="26.87%" headers="mcps1.3.4.4.2.4.1.1 "><p id="vpc_subnetpools_0002__p1919946151916">href</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.41%" headers="mcps1.3.4.4.2.4.1.2 "><p id="vpc_subnetpools_0002__p71994671918">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.72%" headers="mcps1.3.4.4.2.4.1.3 "><p id="vpc_subnetpools_0002__p1919184631917">Specifies the API link.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnetpools_0002__row519846181910"><td class="cellrowborder" valign="top" width="26.87%" headers="mcps1.3.4.4.2.4.1.1 "><p id="vpc_subnetpools_0002__p519646121916">rel</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.41%" headers="mcps1.3.4.4.2.4.1.2 "><p id="vpc_subnetpools_0002__p19191464193">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.72%" headers="mcps1.3.4.4.2.4.1.3 "><p id="vpc_subnetpools_0002__p101954681914">Specifies the relationship between the API link and the API version.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_subnetpools_0002__section64320104111236"><h4 class="sectiontitle">Example:</h4><p id="vpc_subnetpools_0002__p18792203662916">Example request</p>
|
|
<pre class="screen" id="vpc_subnetpools_0002__screen15604521">GET https://{Endpoint}/v2.0/subnetpools</pre>
|
|
<p id="vpc_subnetpools_0002__p11497613144412"></p>
|
|
<p id="vpc_subnetpools_0002__p14450233192817">Example response</p>
|
|
<pre class="screen" id="vpc_subnetpools_0002__screen43510602153334">{
|
|
"subnetpools":
|
|
{
|
|
"min_prefixlen": 64,
|
|
"address_scope_id": null,
|
|
"default_prefixlen": 64,
|
|
"id": "03f761e6-eee0-43fc-a921-8acf64c14988",
|
|
"max_prefixlen": 64,
|
|
"name": "my-subnet-pool-ipv6",
|
|
"default_quota": null,
|
|
"is_default": false,
|
|
"project_id": "9fadcee8aa7c40cdb2114fff7d569c08",
|
|
"tenant_id": "9fadcee8aa7c40cdb2114fff7d569c08",
|
|
"prefixes": [
|
|
"2001:db8:0:2::/64",
|
|
"2001:db8::/63"
|
|
],
|
|
"ip_version": 6,
|
|
"shared": false,
|
|
"description": "",
|
|
"created_at": "2018-09-20T02:15:34",
|
|
"updated_at": "2018-09-20T02:15:34",
|
|
"tags": []
|
|
},
|
|
{
|
|
"min_prefixlen": 24,
|
|
"address_scope_id": null,
|
|
"default_prefixlen": 25,
|
|
"id": "f49a1319-423a-4ee6-ba54-1d95a4f6cc68",
|
|
"max_prefixlen": 30,
|
|
"name": "my-subnet-pool-ipv4",
|
|
"default_quota": null,
|
|
"is_default": false,
|
|
"project_id": "9fadcee8aa7c40cdb2114fff7d569c08",
|
|
"tenant_id": "9fadcee8aa7c40cdb2114fff7d569c08",
|
|
"prefixes": [
|
|
"10.10.0.0/21",
|
|
"192.168.0.0/16"
|
|
],
|
|
"ip_version": 4,
|
|
"shared": false,
|
|
"description": "",
|
|
"created_at": "2018-09-20T02:15:34",
|
|
"updated_at": "2018-09-20T02:15:34",
|
|
"tags": []
|
|
}
|
|
],
|
|
"subnetpools_links": [
|
|
{ "rel": "previous",
|
|
"href": "https://{Endpoint}/v2.0/subnetpools?marker=03f761e6-eee0-43fc-a921-8acf64c14988&page_reverse=True"
|
|
}
|
|
]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="vpc_subnetpools_0002__section10470352390"><h4 class="sectiontitle">Status Code</h4><p id="vpc_subnetpools_0002__p18112112662914">See <a href="vpc_api_0002.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="vpc_subnetpools_0002__section85821649202813"><h4 class="sectiontitle">Error Code</h4><p id="vpc_subnetpools_0002__p7233105282813">See <a href="vpc_api_0003.html">Error Codes</a>.</p>
|
|
</div>
|
|
<p id="vpc_subnetpools_0002__p8060118"></p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="vpc_subnetpools_0000.html">Subnet Pool</a></div>
|
|
</div>
|
|
</div>
|
|
|