getVersion()
MilvusClient interface. This method gets the milvus kernel version.
notes
This method works for open-source Milvus, but might not work for Zilliz Cloud.
R<GetVersionResponse> getVersion();
Returns
This method catches all the exceptions and returns an R<CheckHealthResponse>
object.
If the API fails on the server side, it returns the error code and message from the server.
If the API fails by RPC exception, it returns
R.Status.Unknown
and error message of the exception.If the API succeeds, it returns a valid
GetVersionResponse
held by theR
template. You can useGetVersionResponse
to get resource group information.
Example
R<GetVersionResponse> response = client.getVersion();
if (response.getStatus() != R.Status.Success.getCode()) {
throw new RuntimeException(response.getMessage());
}