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

milvus-logo
LFAI
< Docs
  • Python

revoke_privilege_v2()

This operation revokes the specified privilege or privilege group from the specified role.

Request Syntax

revoke_privilege_v2(
    self,
    role_name: str,
    privilege: str,
    collection_name: str,
    db_name: Optional[str] = None,
    timeout: Optional[float] = None,
    **kwargs,
)

PARAMETERS:

  • role_name (str) -

    [REQUIRED]

    The name of the role to revoke privileges from.

  • privilege (str) -

    [REQUIRED]

    The name of the privilege to revoke.

    For details, refer to the Privilege name column in the table on page Users and Roles.

  • collection_name (str) -

    [REQUIRED]

    The name of a collection. To revoke privileges regarding all collections in the current database, set this parameter to *.

  • db_name (str) -

    The name of a database.

    This parameter is optional. Setting this parameter restricts the privilege assignment within the specified database.

  • timeout (float | None)

    The timeout duration for this operation.

    Setting this to None indicates that this operation timeouts when any response arrives or any error occurs.

RETURN TYPE:

NoneType

RETURNS:

None

EXCEPTIONS:

  • MilvusException

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

  • BaseException

    This exception will be raised when this operation fails.

Example

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?