milvus-logo
LFAI
< Docs
  • Java

listRoles()

This operation lists all custom roles.

public List<String> listRoles()

Request Syntax

MilvusClientV2 client = new MilvusClientV2(connectConfig);

List<String> roles = client.listRoles();

RETURN TYPE:

List<String>

RETURNS:

A list of strings containing the role names.

EXCEPTIONS:

  • MilvusClientExceptions

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

Example

List<String> roles = client.listRoles();