remove_privileges_from_group()
This operation removes the specified privileges from a group.
Request Syntax
remove_privileges_from_group(
self,
group_name: str,
privileges: List[str],
timeout: Optional[float] = None,
**kwargs,
)
PARAMETERS:
group_name (str) -
The name of the target privilege group.
privileges (List[str]) -
The privilages to remove in a list.
timeout (Optional[float]) -
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, especially when the specified alias does not exist.
Example
from pymilvus import MilvusClient
# 1. Create a milvus client
client = MilvusClient(
uri="http://localhost:19530",
token="root:Milvus"
)
client.remove_privileges_to_group(
group_name="my_privilege_group",
privileges=["ListDatabases", "DescribeDatabase"]
)