milvus-logo
LFAI
< Docs
  • Python

is_exist()

This operation checks whether the current role exists.

Request Syntax

is_exist()

PARAMETERS:

N/A

RETURN TYPE:

bool

RETURNS:

A boolean value indicating whether the current role exists or not

EXCEPTIONS:

None

Examples

from pymilvus import Role, utility

# Get a role
role = Role(name="test")

# Check whether the role exists
role.is_exist()

Related operations

The following operations are related to is_exist():