次のような場合に使用: ユーザーが Milvus(大規模なデータベースに対応した検索エンジン)でユーザー、役割、パスワード、またはアクセス権限を管理したいとき。
Use when the user wants to manage database users, roles, passwords, or access privileges in Milvus.
zilliz user create --user <username> --password <password>
新しいデータベースユーザーを作成します。
zilliz user list
すべてのデータベースユーザーを表示します。
zilliz user describe --user <username>
ユーザーの詳細情報を取得します。
zilliz user drop --user <username-to-drop>
データベースユーザーを削除します。
zilliz user update-password \
--user <username> \
--password <current-password> \
--new-password <new-password>
ユーザーのパスワードを変更します。
zilliz user grant-role --user <username> --role <role-name-to-grant>
ユーザーにロール(権限セット)を付与します。
zilliz user revoke-role --user <username> --role <role-name-to-revoke>
ユーザーから特定のロールを削除します。
zilliz role create --role <role-name>
新しいロールを作成します。
zilliz role list
すべてのロールを表示します。
zilliz role describe --role <role-name>
ロールの詳細情報と権限を取得します。
zilliz role drop --role <role-name-to-drop>
ロールを削除します。
zilliz role grant-privilege \
--role <role-name> \
--object-type <Global|Collection|Database> \
--object-name <object-name> \
--privilege <privilege-name>
# オプション: --database <database-name>
ロールに特定の権限を付与します。
zilliz role revoke-privilege \
--role <role-name> \
--object-type <Global|Collection|Database> \
--object-name <object-name> \
--privilege <privilege-name>
# オプション: --database <database-name>
ロールから特定の権限を削除します。
対象のタイプ別の権限一覧:
Search(検索)、Query(問い合わせ)、Insert(追加)、Delete(削除)、CreateIndex(インデックス作成)、DropCollection(削除)CreateCollection(データ集合作成)、All(すべて)ListCollections(データ集合一覧表示)ユーザーとロールの管理は、Dedicated(専用) クラスタでのみ使用可能です。
組み込みロール: admin(フルアクセス)、public(デフォルトでは権限なし・明示的に付与が必要)。
RBAC(ロールベースのアクセス管理)を設定する際は、次の流れを推奨します:ロール作成 → 権限付与 → ユーザー作成 → ロール割り当て。
ユーザーやロールを削除する前に、必ずユーザーに確認してください。
オブジェクト名に * を使うと、そのタイプのすべてのオブジェクトに権限を付与できます。
これらのコマンドは Milvus データベースの RBAC(アクセス権管理) であり、ひとつのクラスタに限定されます。クラウドリソース(環境やプロジェクト)の作成・変更・削除を制御するものではありません。そうしたクラウドレベルの権限管理は zilliz acl コマンドで行います(acl スキルを参照)。Milvus のロールを付与しても、クラウドの権限は付与されず、その逆も同じです。
zilliz user create --user <username> --password <password>
Create a new database user.
zilliz user list
List all database users.
zilliz user describe --user <username>
Get details of a user.
zilliz user drop --user <username-to-drop>
Drop a database user.
zilliz user update-password \
--user <username> \
--password <current-password> \
--new-password <new-password>
Update user password.
zilliz user grant-role --user <username> --role <role-name-to-grant>
Grant a role to a user.
zilliz user revoke-role --user <username> --role <role-name-to-revoke>
Revoke a role from a user.
zilliz role create --role <role-name>
Create a new role.
zilliz role list
List all roles.
zilliz role describe --role <role-name>
Get details and privileges of a role.
zilliz role drop --role <role-name-to-drop>
Drop a role.
zilliz role grant-privilege \
--role <role-name> \
--object-type <Global|Collection|Database> \
--object-name <object-name> \
--privilege <privilege-name>
# Optional: --database <database-name>
Grant a privilege to a role.
zilliz role revoke-privilege \
--role <role-name> \
--object-type <Global|Collection|Database> \
--object-name <object-name> \
--privilege <privilege-name>
# Optional: --database <database-name>
Revoke a privilege from a role.
Common privileges by object type:
Search, Query, Insert, Delete, CreateIndex, DropCollectionCreateCollection, AllListCollectionsadmin (full access), public (no privileges by default -- must be granted explicitly).* as object-name to grant privilege on all objects of that type.zilliz acl
(see the acl skill). Granting a Milvus role never grants cloud permissions,
and vice versa.原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。