- Reference >
- Database Commands >
- Sharding Commands >
- listShards
listShards¶
On this page
Definition¶
-
listShards
¶ Returns a list of the configured shards.
listShards
is only available formongos
instances. You can only issuelistShards
against theadmin
database.The command takes the following form:
Example¶
The following example returns the list of shards: