|
10 | 10 | - .. code-block:: javascript |
11 | 11 |
|
12 | 12 | [ |
13 | | - { |
14 | | - "resource": { "cluster": true }, |
15 | | - "actions": [ |
16 | | - "appendOplogNote", |
17 | | - "enableSharding", |
18 | | - "getDefaultRWConcern", |
19 | | - "getShardMap", |
20 | | - "hostInfo", |
21 | | - "listDatabases", |
22 | | - "listShards", |
23 | | - "replSetGetConfig", |
24 | | - "replSetGetStatus", |
25 | | - "serverStatus" |
26 | | - ] |
27 | | - }, |
28 | | - { |
29 | | - "resource": { "db": "", "collection": "" }, |
30 | | - "actions": [ |
31 | | - "bypassDocumentValidation", |
32 | | - "changeStream", |
33 | | - "collMod", |
34 | | - "convertToCapped", |
35 | | - "createCollection", |
36 | | - "createIndex", |
37 | | - "dropCollection", |
38 | | - "dropIndex", |
39 | | - "enableSharding", |
40 | | - "find", |
41 | | - "indexStats", |
42 | | - "insert", |
43 | | - "listCollections", |
44 | | - "listIndexes", |
45 | | - "remove", |
46 | | - "renameCollectionSameDB", |
47 | | - "update", |
48 | | - "bypassWriteBlockingMode", |
49 | | - "setUserWriteBlockMode" |
50 | | - ] |
51 | | - }, |
52 | | - { |
53 | | - "resource": { "db": "admin", "collection": "system.version" }, |
54 | | - "actions": [ "find" ] |
55 | | - }, |
56 | | - { |
57 | | - "resource": { "db": "", "collection": "system.js" }, |
58 | | - "actions": [ "listCollections", "listIndexes" ] |
59 | | - }, |
60 | | - { |
61 | | - "resource": { "db": "config", "collection": "shards" }, |
62 | | - "actions": [ "find" ] |
63 | | - }, |
64 | | - { |
65 | | - "resource": { "db": "", "collection": "system.views" }, |
66 | | - "actions": [ "dropCollection" ] |
67 | | - }, |
68 | | - { |
69 | | - "resource": { "db": "config", "collection": "version" }, |
70 | | - "actions": [ "find" ] |
71 | | - }, |
72 | | - { |
73 | | - "resource": { "db": "config", "collection": "collections" }, |
74 | | - "actions": [ "find" ] |
75 | | - }, |
76 | | - { |
77 | | - "resource": { "db": "config", "collection": "settings" }, |
78 | | - "actions": [ "find" ] |
79 | | - }, |
80 | | - { |
81 | | - "resource": { "db": "config", "collection": "tags" }, |
82 | | - "actions": [ "find" ] |
83 | | - }, |
84 | | - { |
85 | | - "resource": { "system_buckets": "" }, |
86 | | - "actions": [ "listCollections", "listIndexes" ] |
87 | | - } |
88 | | - ] |
| 13 | + { |
| 14 | + "resource": { "cluster": true }, |
| 15 | + "actions": [ |
| 16 | + "appendOplogNote", |
| 17 | + "enableSharding", |
| 18 | + "getDefaultRWConcern", |
| 19 | + "getShardMap", |
| 20 | + "hostInfo", |
| 21 | + "listDatabases", |
| 22 | + "listShards", |
| 23 | + "replSetGetConfig", |
| 24 | + "replSetGetStatus", |
| 25 | + "serverStatus" |
| 26 | + ] |
| 27 | + }, |
| 28 | + { |
| 29 | + "resource": { "db": "", "collection": "" }, |
| 30 | + "actions": [ |
| 31 | + "bypassDocumentValidation", |
| 32 | + "changeStream", |
| 33 | + "collMod", |
| 34 | + "convertToCapped", |
| 35 | + "createCollection", |
| 36 | + "createIndex", |
| 37 | + "dropCollection", |
| 38 | + "dropIndex", |
| 39 | + "enableSharding", |
| 40 | + "find", |
| 41 | + "indexStats", |
| 42 | + "insert", |
| 43 | + "listCollections", |
| 44 | + "listIndexes", |
| 45 | + "remove", |
| 46 | + "renameCollectionSameDB", |
| 47 | + "update", |
| 48 | + "bypassWriteBlockingMode", |
| 49 | + "setUserWriteBlockMode" |
| 50 | + ] |
| 51 | + }, |
| 52 | + { |
| 53 | + "resource": { "db": "admin", "collection": "system.version" }, |
| 54 | + "actions": [ "find" ] |
| 55 | + }, |
| 56 | + { |
| 57 | + "resource": { "db": "", "collection": "system.js" }, |
| 58 | + "actions": [ "listCollections", "listIndexes" ] |
| 59 | + }, |
| 60 | + { |
| 61 | + "resource": { "db": "config", "collection": "shards" }, |
| 62 | + "actions": [ "find" ] |
| 63 | + }, |
| 64 | + { |
| 65 | + "resource": { "db": "", "collection": "system.views" }, |
| 66 | + "actions": [ "dropCollection" ] |
| 67 | + }, |
| 68 | + { |
| 69 | + "resource": { "db": "config", "collection": "version" }, |
| 70 | + "actions": [ "find" ] |
| 71 | + }, |
| 72 | + { |
| 73 | + "resource": { "db": "config", "collection": "collections" }, |
| 74 | + "actions": [ "find" ] |
| 75 | + }, |
| 76 | + { |
| 77 | + "resource": { "db": "config", "collection": "settings" }, |
| 78 | + "actions": [ "find" ] |
| 79 | + }, |
| 80 | + { |
| 81 | + "resource": { "db": "config", "collection": "tags" }, |
| 82 | + "actions": [ "find" ] |
| 83 | + }, |
| 84 | + { |
| 85 | + "resource": { "system_buckets": "" }, |
| 86 | + "actions": [ "listCollections", "listIndexes" ] |
| 87 | + } |
| 88 | + ] |
89 | 89 |
|
90 | 90 | * - Write Blocking |
91 | 91 | - Everything from the default destination privileges. |
|
97 | 97 | .. code-block:: javascript |
98 | 98 |
|
99 | 99 | [ |
100 | | - { "resource": { "db": "", "collection": "" }, "actions": [ "dropDatabase" ] } |
| 100 | + { "resource": { "db": "", "collection": "" }, "actions": [ "dropDatabase" ] } |
101 | 101 | ] |
102 | 102 |
|
103 | 103 | * - Multiple Reversals |
|
107 | 107 | .. code-block:: javascript |
108 | 108 |
|
109 | 109 | [ |
110 | | - { "resource": { "db": "", "collection": "" }, "actions": [ "dropDatabase" ] } |
| 110 | + { "resource": { "db": "", "collection": "" }, "actions": [ "dropDatabase" ] } |
111 | 111 | ] |
112 | 112 |
|
0 commit comments