PrivelegeGroup
Describes a privilege group: a named set of privileges. (The type name is spelled as-is in the SDK source.)
export type PrivelegeGroup = {
group_name: string; // name
privileges: PrivilegeEntity[]; // privileges
};
FIELDS:
group_name (string) -
The privilege group name.
privileges (PrivilegeEntity[]) -
The privileges contained in the group. See PrivilegeEntity.
Example
import { MilvusClient } from '@zilliz/milvus2-sdk-node';
const milvusClient = new MilvusClient({
address: 'localhost:19530',
token: 'root:Milvus',
});
const res = await milvusClient.listPrivilegeGroups();
console.log(res.privilege_groups); // PrivelegeGroup[]