doc-exports/docs/natgw/api-ref/nat_api_0025.html
Qin Ying, Fan 388d58fc5d NATGW API 20230922 version
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>
2024-01-16 14:31:30 +00:00

138 lines
9.4 KiB
HTML

<a name="nat_api_0025"></a><a name="nat_api_0025"></a>
<h1 class="topictitle1">Querying All API Versions</h1>
<div id="body1539335120224"><div class="section" id="nat_api_0025__section66578044"><h4 class="sectiontitle">Function</h4><p id="nat_api_0025__p65561530">This API is used to query all API versions of NAT Gateway.</p>
</div>
<div class="section" id="nat_api_0025__section42428029"><h4 class="sectiontitle">API Format</h4><p id="nat_api_0025__p171831424988">GET/</p>
</div>
<div class="section" id="nat_api_0025__section24112512"><h4 class="sectiontitle">Request</h4><p id="nat_api_0025__p45638969">None</p>
</div>
<div class="section" id="nat_api_0025__section15686020"><h4 class="sectiontitle">Response</h4><p id="nat_api_0025__p81037681212"><a href="#nat_api_0025__table26246518152631">Table 1</a> lists response parameters.</p>
<div class="tablenoborder"><a name="nat_api_0025__table26246518152631"></a><a name="table26246518152631"></a><table cellpadding="4" cellspacing="0" summary="" id="nat_api_0025__table26246518152631" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Response parameters</caption><thead align="left"><tr id="nat_api_0025__row29602547152631"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.4.3.2.5.1.1"><p id="nat_api_0025__p1143665616354">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.4.3.2.5.1.2"><p id="nat_api_0025__p543845610355">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.000000000000002%" id="mcps1.3.4.3.2.5.1.3"><p id="nat_api_0025__p11440156143517">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="52%" id="mcps1.3.4.3.2.5.1.4"><p id="nat_api_0025__p244212561357">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="nat_api_0025__row56174697152631"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.1 "><p id="nat_api_0025__p4445556153516">versions</p>
</td>
<td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.2 "><p id="nat_api_0025__p1044685612352">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.4.3.2.5.1.3 "><p id="nat_api_0025__p444855610353">Array</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.3.4.3.2.5.1.4 "><p id="nat_api_0025__p344911569354">Specifies the list of all versions.</p>
</td>
</tr>
<tr id="nat_api_0025__row4615503152631"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.1 "><p id="nat_api_0025__p8452756123518">id</p>
</td>
<td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.2 "><p id="nat_api_0025__p1045395620354">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.4.3.2.5.1.3 "><p id="nat_api_0025__p3442103723411">String</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.3.4.3.2.5.1.4 "><p id="nat_api_0025__p045585620357">Specifies the version ID, for example, <strong id="nat_api_0025__b84235270619258">v1</strong>.</p>
</td>
</tr>
<tr id="nat_api_0025__row9239644152631"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.1 "><p id="nat_api_0025__p9460175653518">links</p>
</td>
<td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.2 "><p id="nat_api_0025__p44601856133514">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.4.3.2.5.1.3 "><p id="nat_api_0025__p14983184716501">Array</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.3.4.3.2.5.1.4 "><p id="nat_api_0025__p746525619351">Specifies the API URL.</p>
</td>
</tr>
<tr id="nat_api_0025__row19267144531214"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.1 "><p id="nat_api_0025__p16283354130">href</p>
</td>
<td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.2 "><p id="nat_api_0025__p139117297139">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.4.3.2.5.1.3 "><p id="nat_api_0025__p13242332181317">String</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.3.4.3.2.5.1.4 "><p id="nat_api_0025__p2269104581219">Specifies the reference address of the current API version.</p>
</td>
</tr>
<tr id="nat_api_0025__row113965641213"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.1 "><p id="nat_api_0025__p2139956101218">rel</p>
</td>
<td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.2 "><p id="nat_api_0025__p1994102917139">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.4.3.2.5.1.3 "><p id="nat_api_0025__p102571942143410">String</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.3.4.3.2.5.1.4 "><p id="nat_api_0025__p513917563125">Specifies the relationship between the current API version and the referenced address.</p>
</td>
</tr>
<tr id="nat_api_0025__row12929787152631"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.1 "><p id="nat_api_0025__p13468556113518">version</p>
</td>
<td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.2 "><p id="nat_api_0025__p164706561359">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.4.3.2.5.1.3 "><p id="nat_api_0025__p1431114320349">String</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.3.4.3.2.5.1.4 "><p id="nat_api_0025__p11474856173511">Specifies the version. If APIs of this version support minor versions, set this parameter to the supported maximum minor version. If the minor versions are not supported, leave this parameter blank.</p>
</td>
</tr>
<tr id="nat_api_0025__row39341340152631"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.1 "><p id="nat_api_0025__p647516561358">status</p>
</td>
<td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.2 "><p id="nat_api_0025__p447812565352">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.4.3.2.5.1.3 "><p id="nat_api_0025__p18478184413411">String</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.3.4.3.2.5.1.4 "><p id="nat_api_0025__p191992371020">Specifies the version status.</p>
<p id="nat_api_0025__p104811756113517">The value can be:</p>
<ul id="nat_api_0025__ul195405275217"><li id="nat_api_0025__li85411427625"><strong id="nat_api_0025__b842352706192132">CURRENT</strong>: indicates that the version is the primary version.</li><li id="nat_api_0025__li8778113011215"><strong id="nat_api_0025__b842352706192150">SUPPORTED</strong>: indicates that the version is an old version, but it is still supported.</li><li id="nat_api_0025__li281517327218"><strong id="nat_api_0025__b84235270619220">DEPRECATED</strong>: indicates a deprecated version which may be deleted later.</li></ul>
</td>
</tr>
<tr id="nat_api_0025__row398200152631"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.1 "><p id="nat_api_0025__p7486145617358">updated</p>
</td>
<td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.2 "><p id="nat_api_0025__p1487135693517">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.4.3.2.5.1.3 "><p id="nat_api_0025__p1648104515342">String</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.3.4.3.2.5.1.4 "><p id="nat_api_0025__p13841214736">Specifies the time when the API version was released.</p>
<p id="nat_api_0025__p24932056163517">The value must be UTC time. For example, the release time of v1 is 2014-06-28T12:20:21Z.</p>
</td>
</tr>
<tr id="nat_api_0025__row61549520152631"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.1 "><p id="nat_api_0025__p2495115693510">min_version</p>
</td>
<td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.3.2.5.1.2 "><p id="nat_api_0025__p14966566355">No</p>
</td>
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.4.3.2.5.1.3 "><p id="nat_api_0025__p134991256203512">String</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.3.4.3.2.5.1.4 "><p id="nat_api_0025__p205014565351">If APIs of this version support minor versions, set this parameter to the supported minimum minor version. If not, leave this parameter blank.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="nat_api_0025__section33573539387"><h4 class="sectiontitle">Examples</h4><ul id="nat_api_0025__ul154941750171210"><li id="nat_api_0025__li349419500124">Example response</li></ul>
<pre class="screen" id="nat_api_0025__screen143113116397">{
"versions": [
{
"id": "v2.0",
"links": [
{
"href": "https://<em id="nat_api_0025__i43181611203913">x.x.x.x</em>/v2.0/",
"rel": "self"
}
],
"min_version": "",
"status": "CURRENT",
"updated": "2018-09-30T00:00:00Z",
"version": ""
}
]
}</pre>
</div>
<div class="section" id="nat_api_0025__section11326181114390"><h4 class="sectiontitle">Status Codes</h4><p id="nat_api_0025__p1045957">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_0024.html">API Version</a></div>
</div>
</div>