跳到主要内容

is_exist()

Near Deprecation

此操作检查当前角色是否存在。

请求语法​

python
is_exist()

参数:

无/A

返回类型:

bool

返回值:

一个布尔值,表示当前角色是否存在

异常:

None

示例​

python
from pymilvus import Role, utility

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

# Check whether the role exists
role.is_exist()

以下操作与 is_exist() 相关:

最低 SDK 版本Inherit