getVersion()
Addedv2.6.xModifiedv3.0.x
This operation returns version information for the Milvus server.
await milvusClient.getVersion()
RETURNS Promise<GetVersionResponse>
This method returns a promise that resolves to a GetVersionResponse object.
{
version: string
}
PARAMETERS:
-
version (string) -
The semantic version of the Milvus server (for example, "v3.0.0").
Example
import { MilvusClient } from '@zilliz/milvus2-sdk-node';
const client = new MilvusClient({
address: 'YOUR_CLUSTER_ENDPOINT',
token: 'YOUR_CLUSTER_TOKEN',
});
const res = await client.getVersion();
console.log(res.version); // "2.6.9"