Help Center> Cloud Stream Service> API Reference> APIs> APIs Related to Job Management> Querying the Current Release Version of CS

Querying the Current Release Version of CS

Function

This API is used to query the current release version of CS

URI

  • URI format

    GET /versions

  • Parameter description
    Table 1 URI parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

Request

None

Response

  • Example response
    {
      "id": "v1.0",
      "version": "v1.0.1",
      "min_version": "v1.0",
      "engines": [
        {
          "name": "flink",
          "version": "1.4.0"
        }
      ],
      "status": "CURRENT",
      "updated": "20180916013934",
      "current_millis": 4000000
    }
  • Parameter description
    Table 2 Response parameters

    Parameter

    Mandatory

    Type

    Description

    id

    No

    String

    CS version ID.

    version

    No

    String

    Current version of CS.

    min_version

    No

    String

    Initial CS version.

    engines

    No

    array

    Flink engine content.

    engines: name

    No

    String

    Flink engine name.

    engines: version

    No

    String

    Current version of the Flink engine.

    status

    No

    String

    Status of the current CS version.

    updated

    No

    String

    Time when the CS version is updated.

    current_millis

    No

    Integer

    Current time, expressed by milliseconds.

Status Code

Table 3 describes the status code.

Table 3 Status Code

Status Code

Description

200

The query of the current CS release version succeeds.

400

The input parameters are invalid.

Error Code

For details, see Error Codes.