milvus-logo
LFAI
< Docs

get_server_version()

This operation checks the version of the Milvus instance.

Request syntax

get_server_version(
    using: str = "default",
    timeout: float | None
)
from pymilvus import connections, utility

# Establish a connection
connections.connect(...)

# Check the server version
server_version = utility.get_server_version()

PARAMETERS:

  • using (str) -

    The alias of the employed connection.

    The default value is default, indicating that this operation employs the default connection.

  • timeout (float | None)

    The timeout duration for this operation. Setting this to None indicates that this operation timeouts when any response arrives or any error occurs.

RETURN TYPE:

str

RETURNS:

The server version.

EXAMPLE:

from pymilvus import connections, utility

# Connection to localhost:19530
connections.connect()

# Check the server version
server_version = utility.get_server_version()

Related operations

The following operations are related to get_server_version():

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?