Updated on 2025-08-18 GMT+08:00

Querying API Versions

Function

This API is used to query the supported API versions. Before calling this API:

URI

GET https://{Endpoint}

Request Parameters

None

Example Request

Querying API versions

GET https://gaussdb-opengauss.eu-west-101.myhuaweicloud.eu

Response Parameters

Table 1 Response parameters

Name

Type

Description

versions

Array of objects

API version information.

For details, see Table 2.

Table 2 versions field data structure description

Name

Type

Description

id

String

Backup time window. The creation of an automated backup will be triggered during the backup time window.

The time is in the UTC format.

links

Array of objects

API link information.

For details, see Table 3.

NOTE:

If the version is v3 adn v 3.1, the value is [].

status

String

Version status.

Value:

  • CURRENT: The version has been released.
  • SUPPORTED: The version is an earlier version, but it is still available.
  • DEPRECATED: The version is a deprecated version, which may be deleted later.

version

String

Subversion information of the API version.

min_version

String

Minimum API version number.

updated

String

Version update time.

The format is yyyy-mm-ddThh:mm:ssZ.

T is the separator between the calendar and the hourly notation of time. Z indicates the UTC.

Table 3 links field data structure description

Name

Type

Description

href

String

API URL. The value is "".

rel

String

The value is self, indicating that URL is a local link.

Example Response

API versions queried.

{
    "versions": [
        {
            "id": "v3",
            "links": [],
            "status": "CURRENT",
            "version": "",
            "min_version": "",
            "updated": "2017-02-07T17:34:02Z"
        },
        {
            "id": "v3.1",
            "links": [],
            "status": "CURRENT",
            "version": "",
            "min_version": "",
            "updated": "2017-02-07T17:34:02Z"
        }
    ]
}

Status Code

Error Code

For details, see Error Codes.