Updated on 2024-04-19 GMT+08:00

Querying API Versions

Function

This API is used to query all available ELB API versions.

Calling Method

For details, see Calling APIs.

URI

GET /versions

Request Parameters

None

Response Parameters

Status code: 200

Table 1 Response body parameters

Parameter

Type

Description

versions

Array of ApiVersionInfo objects

Lists the available API versions.

Table 2 ApiVersionInfo

Parameter

Type

Description

id

String

Specifies the API version.

The value can be v3, v2, or v2.0 in ascending order.

status

String

Specifies the status of the API version.

The values are as follows:

  • CURRENT: current version

  • STABLE: stable version

  • DEPRECATED: discarded version

Note: CURRENT indicates the latest version.

Example Requests

Querying API versions of a load balancer

GET https://{ELB_Endpoint}/versions

Example Responses

Status code: 200

Successful request.

  • {
      "versions" : [ {
        "id" : "v3",
        "status" : "CURRENT"
      }, {
        "id" : "v2",
        "status" : "STABLE"
      }, {
        "id" : "v2.0",
        "status" : "STABLE"
      } ]
    }

Status Codes

Status Code

Description

200

Successful request.

Error Codes

See Error Codes.