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

milvus-logo
LFAI
< Docs
  • Python

is_exist()

This method checks whether the current role exists.

Invocation

is_exist()

Parameters

None

Return

Returns a boolean value indicating whether the current role exists.

Example

from pymilvus import connections
from pymilvus.orm.role import Role
connections.connect()
role = Role(name=role_name)
is_exist = role.is_exist()
print(f"the role: {is_exist}")

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?