🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

Milvus
Zilliz
< Docs
  • Java

listCollections()

This operation lists all existing collections.

public ListCollectionsResp listCollections()

Request Syntax

listCollections()

RETURN TYPE:

ListCollectionsResp

RETURNS:

A ListCollectionsResp object containing a list of collection names. If there is not any collection, an empty list will be returned.

PARAMETERS:

  • collectionNames (List<String>)

    A list of strings containing the names of all existing collections.

EXCEPTIONS:

  • MilvusClientExceptions

    This exception will be raised when any error occurs during this operation.

Example

ListAliasResp listAliasResp = client.listAliases();

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?