Skip to main content
Version: User Guides (Cloud)

View Collections

You can obtain the name list of all the collections in the currently connected database, and check the details of a specific collection.

List Collections

The following example demonstrates how to obtain the name list of all collections in the currently connected database.

from pymilvus import MilvusClient, DataType

client = MilvusClient(
uri="YOUR_CLUSTER_ENDPOINT",
token="YOUR_CLUSTER_TOKEN"
)

res = client.list_collections()

print(res)

If you have already created a collection named quick_setup, the result of the above example should be similar to the following.

["quick_setup"]

Describe Collection

You can also obtain the details of a specific collection. The following example assumes that you have already created a collection named quick_setup.

res = client.describe_collection(
collection_name="quick_setup"
)

print(res)

The result of the above example should be similar to the following.

// TO BE ADDED