milvus-logo
LFAI
< Docs

list_resource_groups()

This method has Milvus list the names of all resource groups.

Invocation

list_resource_groups(using='default')

Parameters

ParameterDescriptionTypeRequired
usingMilvus connection used to create the collection.StringFalse

Return

A list of resource group names.

Example

import pymilvus

rgs = utility.list_resource_groups(using='default')
print(f"Resource group list: {rgs}")

# Resource group list: ['__default_resource_group', 'rg']