Skip to main content

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': 'in03-**************.api.gcp-us-west1.cloud-uat3.zilliz.com:443', 'user': ''}

The following operations are related to get_connection_addr():