跳到主要内容
版本:v2.6.x

get_replicate_configuration()

Adds replication configuration retrieval. Async variant shares the sync method contract.

Request Syntax

Python
get_replicate_configuration(
timeout: Optional[float] = None,
**kwargs,
) -> ReplicateConfiguration

PARAMETERS:

  • timeout (Optional[float]) - Default: None The maximum time, in seconds, to wait for the RPC.

  • kwargs (Any) - The additional request arguments.

RETURN TYPE:

ReplicateConfiguration

RETURNS:

Current replication configuration returned by Milvus.

EXCEPTIONS:

  • MilvusException Raised when the server rejects the request or the RPC fails. Inspect the server error message for exact failure details.

Examples

Demonstrates get replicate configuration usage.

Python
from pymilvus import MilvusClient

client = MilvusClient(uri="http://localhost:19530", token="root:Milvus")
config = client.get_replicate_configuration()
print(config)