doc-exports/docs/dc/api-ref/en-dc_topic_0055025311.html
Qin Ying, Fan 4a7d4f4cd8 DC API 0930 version
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com>
Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com>
Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
2022-10-06 09:33:01 +00:00

90 lines
6.7 KiB
HTML

<a name="en-dc_topic_0055025311"></a><a name="en-dc_topic_0055025311"></a>
<h1 class="topictitle1">Querying All API Versions</h1>
<div id="body1539740810917"><div class="section" id="en-dc_topic_0055025311__section109661156152112"><h4 class="sectiontitle">Function</h4><p id="en-dc_topic_0055025311__p18437102532211">This API is used to query all API versions supported by Direct Connect.</p>
</div>
<div class="section" id="en-dc_topic_0055025311__section11867232184814"><h4 class="sectiontitle">URI</h4><p id="en-dc_topic_0055025311__p9229183914812">GET /</p>
</div>
<div class="section" id="en-dc_topic_0055025311__section24112512"><h4 class="sectiontitle">Request</h4><p id="en-dc_topic_0055025311__p45638969">None</p>
</div>
<div class="section" id="en-dc_topic_0055025311__section15686020"><h4 class="sectiontitle">Response</h4><p id="en-dc_topic_0055025311__p81037681212"><a href="#en-dc_topic_0055025311__table49902238182444">Table 1</a> lists the response parameters.</p>
<div class="tablenoborder"><a name="en-dc_topic_0055025311__table49902238182444"></a><a name="table49902238182444"></a><table cellpadding="4" cellspacing="0" summary="" id="en-dc_topic_0055025311__table49902238182444" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Response parameters</caption><thead align="left"><tr id="en-dc_topic_0055025311__row27727643182444"><th align="left" class="cellrowborder" valign="top" width="25.277472252774725%" id="mcps1.3.4.3.2.4.1.1"><p id="en-dc_topic_0055025311__p44979764154022">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.01749825017498%" id="mcps1.3.4.3.2.4.1.2"><p id="en-dc_topic_0055025311__p19482271154022">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.7050294970503%" id="mcps1.3.4.3.2.4.1.3"><p id="en-dc_topic_0055025311__p47904218154022">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="en-dc_topic_0055025311__row27455432182444"><td class="cellrowborder" valign="top" width="25.277472252774725%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en-dc_topic_0055025311__p14315331153">versions</p>
</td>
<td class="cellrowborder" valign="top" width="25.01749825017498%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en-dc_topic_0055025311__p183213310519">List</p>
</td>
<td class="cellrowborder" valign="top" width="49.7050294970503%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en-dc_topic_0055025311__p7328337520">Specifies all API versions.</p>
</td>
</tr>
<tr id="en-dc_topic_0055025311__row39593523182444"><td class="cellrowborder" valign="top" width="25.277472252774725%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en-dc_topic_0055025311__p1326331857">id</p>
</td>
<td class="cellrowborder" valign="top" width="25.01749825017498%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en-dc_topic_0055025311__p183219331352">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.7050294970503%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en-dc_topic_0055025311__p103293310511">Specifies the version number, for example, <strong id="en-dc_topic_0055025311__b842352706151910">v2.0</strong></p>
</td>
</tr>
<tr id="en-dc_topic_0055025311__row64801111182444"><td class="cellrowborder" valign="top" width="25.277472252774725%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en-dc_topic_0055025311__p13233311516">links</p>
</td>
<td class="cellrowborder" valign="top" width="25.01749825017498%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en-dc_topic_0055025311__p932153310512">Array</p>
</td>
<td class="cellrowborder" valign="top" width="49.7050294970503%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en-dc_topic_0055025311__p13211331354">Specifies the API URL.</p>
</td>
</tr>
<tr id="en-dc_topic_0055025311__row1144591413177"><td class="cellrowborder" valign="top" width="25.277472252774725%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en-dc_topic_0055025311__p124464144178">href</p>
</td>
<td class="cellrowborder" valign="top" width="25.01749825017498%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en-dc_topic_0055025311__p244781412174">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.7050294970503%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en-dc_topic_0055025311__p944741418176">Specifies the reference address of the current API version.</p>
</td>
</tr>
<tr id="en-dc_topic_0055025311__row1383361812179"><td class="cellrowborder" valign="top" width="25.277472252774725%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en-dc_topic_0055025311__p168331418121713">rel</p>
</td>
<td class="cellrowborder" valign="top" width="25.01749825017498%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en-dc_topic_0055025311__p17833131818174">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.7050294970503%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en-dc_topic_0055025311__p188334182178">Specifies the relationship between the current API version and the referenced address.</p>
</td>
</tr>
<tr id="en-dc_topic_0055025311__row48951951182444"><td class="cellrowborder" valign="top" width="25.277472252774725%" headers="mcps1.3.4.3.2.4.1.1 "><p id="en-dc_topic_0055025311__p19326339519">status</p>
</td>
<td class="cellrowborder" valign="top" width="25.01749825017498%" headers="mcps1.3.4.3.2.4.1.2 "><p id="en-dc_topic_0055025311__p1432193314519">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.7050294970503%" headers="mcps1.3.4.3.2.4.1.3 "><p id="en-dc_topic_0055025311__p9331331653">Specifies the version status. Value options are as follows:</p>
<ul id="en-dc_topic_0055025311__ul1936014510535"><li id="en-dc_topic_0055025311__li14360125185320"><strong id="en-dc_topic_0055025311__b13417575115">CURRENT</strong>: indicates a primary version.</li><li id="en-dc_topic_0055025311__li169411719532"><strong id="en-dc_topic_0055025311__b1727115171214">SUPPORTED</strong>: indicates an old version that is still supported.</li><li id="en-dc_topic_0055025311__li5817131015535"><strong id="en-dc_topic_0055025311__b855372871217">DEPRECATED</strong>: indicates a deprecated version that may be deleted later.</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="en-dc_topic_0055025311__section542210409508"><h4 class="sectiontitle">Examples</h4><ul id="en-dc_topic_0055025311__ul164071549155019"><li id="en-dc_topic_0055025311__li2407104935015">Example request<pre class="screen" id="en-dc_topic_0055025311__screen48295303132">GET /</pre>
</li><li id="en-dc_topic_0055025311__li426275618505">Example response<pre class="screen" id="en-dc_topic_0055025311__screen183101219153216">{
"versions": [
{
"status": "CURRENT",
"id": "v2.0",
"links":[
{
"href": "https://network.az0.dc0.domainname.com/v2.0","rel": "self"
}
]
}
]
}</pre>
</li></ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-dc_topic_0055025310.html">Obtaining the API Version Information</a></div>
</div>
</div>