Skip to content

Commit f940709

Browse files
DOCSP-30674 getClusterParameter (#3410) (#3432)
* DOCSP-30674 Adds Atlas notice for getClusterParameter * Minor typographic edits * Fixes per Ashley --------- Co-authored-by: Ashley Brown <[email protected]>
1 parent 4aaff7a commit f940709

File tree

2 files changed

+33
-28
lines changed

2 files changed

+33
-28
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The ``getClusterParameter`` command is only available in self-managed
2+
installations. The ``getClusterParameter`` command is not available in
3+
:atlas:`MongoDB Atlas </>`.

source/reference/command/getClusterParameter.txt

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,27 @@ Definition
1616
.. dbcommand:: getClusterParameter
1717

1818
:dbcommand:`getClusterParameter` is an administrative command for
19-
retrieving the values of **cluster parameters**. Cluster parameters
20-
are configurable parameters which affect all nodes in a sharded cluster.
21-
22-
To run ``getClusterParameter``, use the ``db.adminCommand( { command } )``
19+
retrieving the values of **cluster parameters**. Cluster parameters
20+
are configurable parameters that affect all nodes in a sharded cluster.
21+
22+
To run ``getClusterParameter``, use the ``db.adminCommand( { command } )``
2323
method.
24-
24+
25+
.. include:: /includes/fact-getClusterParameter-availability.rst
26+
2527
Syntax
2628
------
27-
29+
2830
The command has the following syntax:
2931

3032
.. code-block:: javascript
31-
32-
db.adminCommand(
33-
{
34-
getClusterParameter: <parameter> | [<parameter>, <parameter>] | "'*'"
33+
34+
db.adminCommand(
35+
{
36+
getClusterParameter: <parameter> | [<parameter>, <parameter>] | "'*'"
3537
}
3638
)
37-
39+
3840
Command Fields
3941
--------------
4042

@@ -54,28 +56,28 @@ The command takes the following fields:
5456

5557
- The name of the parameter you want to retrieve.
5658

57-
- An array with the names of multiple parameters.
59+
- An array with the names of multiple parameters.
5860

5961
- ``'*'``, to return values for all parameters available to
6062
``getClusterParameter``.
61-
63+
6264
Behavior
6365
--------
6466

65-
- You can only run ``getClusterParameter`` on the ``admin`` database. If
67+
- You can only run ``getClusterParameter`` on the ``admin`` database. If
6668
you run the command on any other database, MongoDB returns an error.
6769

68-
- You can run ``getClusterParameter`` on any node in a replica set or
70+
- You can run ``getClusterParameter`` on any node in a replica set or
6971
sharded cluster.
7072

71-
- When you run ``getClusterParameter`` on :binary:`~bin.mongod`,
72-
``getClusterParameter`` returns cached parameter values.
73+
- When you run ``getClusterParameter`` on :binary:`~bin.mongod`,
74+
``getClusterParameter`` returns cached parameter values.
7375

74-
- When you run ``getClusterParameter`` on :binary:`~bin.mongos`,
75-
``getClusterParameter`` returns the :term:`durable` value of the
76-
cluster parameter from the :ref:`config server <sharding-config-server>`
76+
- When you run ``getClusterParameter`` on :binary:`~bin.mongos`,
77+
``getClusterParameter`` returns the :term:`durable` value of the
78+
cluster parameter from the :ref:`config server <sharding-config-server>`.
7779

78-
Accesss Control
80+
Access Control
7981
~~~~~~~~~~~~~~~
8082

8183
When :ref:`authentication <authentication>` is enabled, ``getClusterParameter``
@@ -85,23 +87,23 @@ only works when authenticated as a user with a role that has access to the
8587
Examples
8688
--------
8789

88-
.. note::
90+
.. note::
8991

90-
The output of the following examples may vary depending on the specific
92+
The output of the following examples may vary depending on the specific
9193
configuration of the running MongoDB deployment.
9294

9395
Retrieve Single Cluster Parameter
9496
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9597

96-
The following operation runs ``getClusterParameter`` on the ``admin``
97-
database using a value of ``hostName`` to retrieve the value for
98+
The following operation runs ``getClusterParameter`` on the ``admin``
99+
database using a value of ``hostName`` to retrieve the value for
98100
a hypothetical cluster parameter named ``hostName``:
99101

100102
.. code-block:: javascript
101-
103+
102104
use admin
103105
db.adminCommand( { getClusterParameter : "hostName" } )
104-
106+
105107

106108
Retrieve Multiple Cluster Parameters
107109
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -123,7 +125,7 @@ The following operation runs ``getClusterParameter`` with a value of
123125
``'*'`` to retrieve the values from all cluster parameters:
124126

125127
.. code-block:: javascript
126-
128+
127129
use admin
128130
db.adminCommand( { getClusterParameter : '*' } )
129131

0 commit comments

Comments
 (0)