File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,8 @@ Definition
16
16
.. pipeline:: $indexStats
17
17
18
18
Returns statistics regarding the use of each index for the
19
- collection. If running with :doc:`access control
20
- </core/authorization>`, the user must have privileges that include
21
- :authaction:`indexStats` action.
19
+ collection. If running with :ref:`access control <authorization>`,
20
+ authenticate as a user with at least the :authrole:`clusterMonitor` role.
22
21
23
22
The :pipeline:`$indexStats` stage takes an empty document and has
24
23
the following syntax:
Original file line number Diff line number Diff line change @@ -782,12 +782,12 @@ Diagnostic Actions
782
782
783
783
.. authaction:: indexStats
784
784
785
- User can perform the ``indexStats`` command. Apply this action
786
- to database or collection resources.
787
-
788
- .. versionchanged:: 3.0
789
- MongoDB 3.0 removes the ``indexStats`` command.
785
+ User can run the :pipeline:`$indexStats` aggregation pipeline stage. Apply
786
+ this action to database or collection resources.
790
787
788
+ To use the ``$indexStats`` stage, users must authenticate with at least the
789
+ :authrole:`clusterMonitor` role.
790
+
791
791
.. authaction:: listDatabases
792
792
793
793
User can perform the :dbcommand:`listDatabases` command. Apply this
You can’t perform that action at this time.
0 commit comments