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

6.7 KiB

Querying All API Versions

Function

This API is used to query all API versions supported by Direct Connect.

URI

GET /

Request

None

Response

Table 1 lists the response parameters.

Table 1 Response parameters

Parameter

Type

Description

versions

List

Specifies all API versions.

id

String

Specifies the version number, for example, v2.0

links

Array

Specifies the API URL.

href

String

Specifies the reference address of the current API version.

rel

String

Specifies the relationship between the current API version and the referenced address.

status

String

Specifies the version status. Value options are as follows:

  • CURRENT: indicates a primary version.
  • SUPPORTED: indicates an old version that is still supported.
  • DEPRECATED: indicates a deprecated version that may be deleted later.

Examples

  • Example request
    GET /
  • Example response
    {
     "versions": [
        {
          "status": "CURRENT",
          "id": "v2.0",
          "links":[
            {
              "href": "https://network.az0.dc0.domainname.com/v2.0","rel": "self"
             }
          ]
        }
      ]
    }