AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

ClusterMongoDBRole リソース仕様

ClusterMongoDBRole カスタムリソースを使用すると、ユーザーがMongoDBデータベースにアクセスするために必要なロールを構成できます。

次の例は、 ClusterMongoDBRoleカスタム リソースのリソース仕様を示しています。

1---
2apiVersion: mongodb.com/v1
3kind: ClusterMongoDBRole
4metadata:
5 name: ldap-user-1
6spec:
7 role: "customRole"
8 db: admin
9 privileges:
10 - actions:
11 - insert
12 resource:
13 collection: cats
14 db: pets
15 - actions:
16 - insert
17 - find
18 resource:
19 collection: dogs
20 db: pets
21...
spec.role

: string

ユーザー定義ロールの名前。

spec.roles

タイプ: 配列

このユーザーに割り当てられたロールを一覧表示する配列。

spec.roles.db

: string

このロールがアクセスできるデータベース。

spec.roles.role

: string

継承されたロールの名前。

spec.authenticationRestrictions

タイプ: 配列

このspec.security.roles.roleを割り当てられたユーザーが接続できる IP アドレスと接続できるIPアドレスを定義する配列。

spec.db

: string

Database for which the privilege spec.privileges.actions apply.

If you provide a value for this setting, you must also provide a value for spec.privileges.resource.

spec.privileges

タイプ: 配列

このロールに付与されたユーザーが持つ特権を記述する配列。

spec.privileges.actions

タイプ: 配列

このロールを付与されたユーザーが実行できるアクションのリスト。許容値のリストについては、 Kubernetes Operator で配置するMongoDBバージョンのMongoDB Serverドキュメントの特権アクションを参照してください。

spec.privileges.resource

タイプ: コレクション

Resources for which the privilege spec.privileges.actions apply.

このコレクションには、次のいずれかを含める必要があります。

spec.privileges.resource.db

: string

Database for which the privilege spec.privileges.actions apply.

If you provide a value for this setting, you must also provide a value for spec.privileges.resource.collection.

spec.privileges.resource.collection

: string

Collection in the spec.privileges.resource.db for which the privilege spec.privileges.actions apply.

If you provide a value for this setting, you must also provide a value for spec.privileges.resource.db.