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

Milvus
Zilliz
< Docs
  • Go

ListResourceGroups()

This method lists the names of all available resource groups.

func (c *Client) ListResourceGroups(ctx context.Context, opt ListResourceGroupsOption, callOptions ...grpc.CallOption) ([]string, error)

Request Parameters

Parameter

Description

Type

ctx

Context for the current call to work.

context.Context

opt

Optional parameters of the methods.

ListResourceGroupsOption

callOptions

Optional parameters for calling the methods.

grpc.CallOption

ListResourceGroupsOption

This is an interface type. The listResourceGroupsOption struct type implements this interface type.

You can use the NewListResourceGroupsOption() function to get the concrete implementation.

NewDescribeResourceGroupOption

The signature of this method is as follows:

func NewListResourceGroupsOption() *listResourceGroupsOption

Return

[]string

Example

import (
        "context"
        "github.com/milvus-io/milvus/client/v2/milvusclient"
)

rgNames, err := cli.ListResourceGroups(ctx, milvusclient.NewListResourceGroupsOption())
if err != nil {
    // handle error
}
fmt.Println(rgNames)

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?