milvus-logo
LFAI
< Docs
  • Python

list_connections()

This operation returns a list of all connection names and handler objects.

Request Syntax

list_connections()

PARAMETERS:

None

RETURN TYPE:

List

RETURNS:

A list of all connection names and handler objects.

EXCEPTIONS:

None

Examples

from pymilvus import connections

connections.connect(
    uri='https://localhost:19530',
    token='root:Milvus'
)
connections.list_connections()

# Output
# [('default', <pymilvus.client.grpc_handler.GrpcHandler at 0x13743b967>)]

Related operations

The following operations are related to list_connections():

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?