跳到主要内容
版本:v2.6.x

is_exist()

This operation checks whether the current role exists.

Request Syntax

Python
is_exist()

PARAMETERS:

N/A

RETURN TYPE:

bool

RETURNS:

A boolean value indicating whether the current role exists or not

EXCEPTIONS:

None

Examples

Python
from pymilvus import Role, utility

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

# Check whether the role exists
role.is_exist()

The following operations are related to is_exist():