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

ClusterMongoDBRole リソース仕様

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

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

---apiVersion: mongodb.com/v1kind: ClusterMongoDBRolemetadata: name: ldap-user-1spec: role: "customRole" db: admin privileges: - actions: - insert resource: collection: cats db: pets - actions: - insert - find resource: collection: dogs db: pets...
spec.role

型: string

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

spec.roles

タイプ: 配列

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

spec.roles.db

型: string

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

spec.roles.role

型: string

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

spec.authenticationRestrictions

タイプ: 配列

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

spec.db

型: string

特権spec.privileges.actionsが適用されるデータベース。

この設定に値を指定する場合は、 spec.privileges.resourceの値も指定する必要があります。

spec.privileges

タイプ: 配列

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

spec.privileges.actions

タイプ: 配列

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

spec.privileges.resource

タイプ: コレクション

特権spec.privileges.actionsが適用されるリソース。

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

spec.privileges.resource.db

型: string

特権spec.privileges.actionsが適用されるデータベース。

この設定に値を指定する場合は、 spec.privileges.resource.collectionの値も指定する必要があります。

spec.privileges.resource.collection

型: string

spec.privileges.resource.db権限 が適用されるspec.privileges.actions のコレクション。

この設定に値を指定する場合は、 spec.privileges.resource.dbの値も指定する必要があります。