• Domain Name Service

dns
  1. Help Center
  2. Domain Name Service
  3. API Reference
  4. API Description
  5. Version Management
  6. Listing All DNS API Versions

Listing All DNS API Versions

Function

List all DNS API versions.

To be interconnected with a third-party system, the current DNS version supports 1024- and 2048-bit DH key exchange algorithms, and the 2048-bit algorithm is recommended.

URI

GET /

Request

None

Response

  • Parameter description
    Table 1 Parameter in the response

    Parameter

    Type

    Description

    versions

    object

    Version object

    Table 2 Description of the versions field

    Parameter

    Type

    Description

    values

    List object

    List of all versions

    Table 3 Description of the values field

    Parameter

    Type

    Description

    status

    string

    Version status, which can be the following:

    CURRENT: widely used version

    SUPPORT: earlier version which is still supported

    DEPRECATED: deprecated version which may be deleted later

    id

    string

    Version number

    links

    object

    URL of the current version

  • Example response
    {
        "versions": {
            "values": [
                {
                    "status": "CURRENT",
                    "id": "v2",
                    "links": [
                        {
                            "href": "https://127.0.0.1/v2",
                            "rel": "self"
                        }
                    ]
                }
            ]
        }
    }

Returned Value

See General Request Return Code.