RBACMeta
Describes the full RBAC state carried by privilege backup and restore operations.
export type RBACMeta = {
users: User[];
roles: RoleEntity[];
grants: GrantEntity[];
privilege_groups: PrivelegeGroup[];
};
FIELDS:
users (User[]) -
All users. See User.
roles (RoleEntity[]) -
All roles. See RoleEntity.
grants (GrantEntity[]) -
All privilege grants. See GrantEntity.
privilege_groups (PrivelegeGroup[]) -
All privilege groups. See PrivelegeGroup.
Example
import { MilvusClient } from '@zilliz/milvus2-sdk-node';
const milvusClient = new MilvusClient({
address: 'localhost:19530',
token: 'root:Milvus',
});
const res = await milvusClient.backupRBAC();
await milvusClient.restoreRBAC({
RBAC_meta: res.RBAC_meta, // RBACMeta
});