The following document is an example of the output from a
listShards returns a document that includes:
shardsfield which contains an array of documents, each describing one shard. Each document may contain the following fields:
The name of the shard.
The hostname of the shard. If the shard is a replica set,
hostlists the hostname of each mongod instance in the replica set.
If true, indicates that removeShard has been called for this shard and it is in the process of being drained.
A list of zones to which the shard belongs.
The configured maximum storage size of the shard in megabytes. This includes all data files on the shard including the
admindatabases. If exceeded, this shard will not receive any more chunks.
An internal field used during the addShard sequence to ensure that all steps and configuration necessary to add the shard to the cluster are completed.
okstatus field, the
operationTimefield, and the
$clusterTimefield for the operation. For details on these fields, see Response.