milvus-logo
LFAI
< Docs
  • Python

get_connection_addr()

This operation retrieves the configuration of the specified connection by alias.

Request Syntax

get_connection_addr(alias: str)

PARAMETERS:

  • alias (string) -

    [REQUIRED]

    A connection alias.

RETURN TYPE:

Dictionary

RETURNS:

A dictionary containing the connection configuration.

EXCEPTIONS:

  • ConnectionConfigException

    This exception will be raised when the connection configuration is invalid.

Examples

from pymilvus import connections

connections.get_connection_addr(alias="default")

# Output
# {'address': 'localhost:19530', 'user': ''}

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?