Querying the Current Release Version of CS
Sample Code
This API is used to query the current release version of CS. A user sends a GET query request. The request body is in JSON format. Sample code is as follows:
1 2 3 4 5 6 7 8 9 10 11 12 | import com.huaweicloud.cs.java.v1.client.ApiException;
import com.huaweicloud.cs.java.v1.StatisticsApi;
StatisticsApi apiInstance = new StatisticsApi(apiClient);//apiClient is created when initializing a CS API client.
try {
ReleaseVersionResponse result = apiInstance.getReleaseVersion();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StatisticsApi#getReleaseVersion");
System.err.println(e.getResponseBody());
e.printStackTrace();
}
|
Parameter Description
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| id | No | String | CS version ID. |
| version | No | String | Current version of CS. |
| minVersion | No | String | Current minor version number of CS. |
| engines | No | array | Flink engine content. For details, see Table 2. |
| 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. |
Last Article: Granting OBS Operation Rights to CS
Next Article: Creating a SQL Job
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.