- Reference >
- Database Commands >
- Replication Commands >
- replSetGetConfig
replSetGetConfig¶
New in version 3.0.0.
On this page
Definition¶
-
replSetGetConfig
¶ Returns a document that describes the current configuration of the replica set. To invoke the command directly, use the following operation:
In the
mongo
shell, you can access the data provided byreplSetGetConfig
using thers.conf()
method, as in the following:
Output Example¶
The following document provides a representation of a replica set configuration document. The configuration of your replica set may include only a subset of these settings:
For description of the configuration settings, see Replica Set Configuration.
See also