db.listCommands() in mongoDB

listCommands()

This method provides a list of all database commands.


Syntax:

db.listCommands() 


Example

MongoDB

 db.listCommands()

Output:

> db.listCommands()
_addShard:  adminOnly
  Internal command, which is exported by shards. Do not call directly. Adds a new shard to a cluster.
_cloneCollectionOptionsFromPrimaryShard:
  Internal command, do not call directly. Creates a collection on a shard with UUID existing on primary.
_configsvrAbortReshardCollection:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Aborts any in-progress resharding operations for this collection.
_configsvrAddShard:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Validates and adds a new shard to the cluster.
_configsvrAddShardToZone:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Validates and adds a new zone to the shard.
_configsvrBalancerCollectionStatus:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Checks whether the chunks of a given collection are in a quiesced state or there are any which need to be moved because of (1) draining shards, (2) zone violation or (3) imbalance between shards.
_configsvrBalancerStart:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Controls the balancer state.
_configsvrBalancerStatus:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Controls the balancer state.
_configsvrBalancerStop:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Controls the balancer state.
_configsvrCleanupReshardCollection:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Aborts and cleans up any in-progress resharding operations for this collection.
_configsvrClearJumboFlag:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Clears the jumbo flag of the chunk specified.
_configsvrCommitChunkMerge:  adminOnly
  Internal command, which is sent by a shard to the sharding config server. Do not call directly. Receives, validates, and processes a MergeChunkRequest
_configsvrCommitChunkMigration:  adminOnly
  should not be calling this directly
_configsvrCommitChunkSplit:  adminOnly
  Internal command, which is sent by a shard to the sharding config server. Do not call directly. Receives, validates, and processes a SplitChunkRequest.
_configsvrCommitChunksMerge:  adminOnly
  Internal command, which is sent by a shard to the sharding config server. Do not call directly. Receives, validates, and processes a MergeChunksRequest
_configsvrCommitMovePrimary:  adminOnly
  should not be calling this directly
_configsvrCommitReshardCollection:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Allows a reshard operation to enter critical section ASAP.
_configsvrCreateDatabase:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Create a database.
_configsvrDropCollection:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Drops a collection from a database.
_configsvrDropDatabase:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Drops a database.
_configsvrEnableSharding:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Enable sharding on a database.
_configsvrEnsureChunkVersionIsGreaterThan:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly.
_configsvrMoveChunk:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Requests the balancer to move or rebalance a single chunk.
_configsvrMovePrimary:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Reassigns the primary shard of a database.
_configsvrRefineCollectionShardKey:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Adds a suffix to the shard key of an existing collection ('refines the shard key').
_configsvrRemoveChunks:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Removes the chunks for the specified collectionUUID.
_configsvrRemoveShard:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Removes a shard from the cluster.
_configsvrRemoveShardFromZone:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Validates and removes the shard from the zone.
_configsvrRemoveTags:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Removes the zone tags for the specified ns.
_configsvrRenameCollectionMetadata:
  Internal command. Do not call directly. Renames a collection.
_configsvrRepairShardedCollectionChunksHistory:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly.
_configsvrReshardCollection:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Reshards a collection on a new shard key.
_configsvrSetAllowMigrations:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Sets the allowMigrations flag on the specified collection.
_configsvrShardCollection:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Shards a collection. Requires key. Optional unique. Sharding must already be enabled for the database
_configsvrUpdateZoneKeyRange:  adminOnly
  Internal command, which is exported by the sharding config server. Do not call directly. Validates and assigns a new range to a zone.
_flushDatabaseCacheUpdates:  adminOnly
  Internal command which waits for any pending routing table cache updates for a particular database to be written locally. The operationTime returned in the response metadata is guaranteed to be at least as late as the last routing table cache update to the local disk. Takes a 'forceRemoteRefresh' option to make this node refresh its cache from the config server before waiting for the last refresh to be persisted.
_flushDatabaseCacheUpdatesWithWriteConcern:  adminOnly
  Internal command which waits for any pending routing table cache updates for a particular database to be written locally. The operationTime returned in the response metadata is guaranteed to be at least as late as the last routing table cache update to the local disk. Takes a 'forceRemoteRefresh' option to make this node refresh its cache from the config server before waiting for the last refresh to be persisted.
_flushReshardingStateChange:  adminOnly
  Internal command used by the resharding coordinator to flush state changes to the participant shards while the critical section is active.
_flushRoutingTableCacheUpdates:  adminOnly
  Internal command which waits for any pending routing table cache updates for a particular namespace to be written locally. The operationTime returned in the response metadata is guaranteed to be at least as late as the last routing table cache update to the local disk. Takes a 'forceRemoteRefresh' option to make this node refresh its cache from the config server before waiting for the last refresh to be persisted.
_flushRoutingTableCacheUpdatesWithWriteConcern:  adminOnly
  Internal command which waits for any pending routing table cache updates for a particular namespace to be written locally. The operationTime returned in the response metadata is guaranteed to be at least as late as the last routing table cache update to the local disk. Takes a 'forceRemoteRefresh' option to make this node refresh its cache from the config server before waiting for the last refresh to be persisted.
_getNextSessionMods:  adminOnly
  internal
_getUserCacheGeneration:  adminOnly  secondaryOk
  no help defined
_isSelf:  secondaryOk
  { _isSelf : 1 } INTERNAL ONLY
_killOperations:  adminOnly  secondaryOk
  Internal command -- Kill operations on the target server by OperationKey.
_mergeAuthzCollections:  adminOnly
  no help defined
_migrateClone:  adminOnly
  internal
_recvChunkAbort:  adminOnly
  internal
_recvChunkCommit:  adminOnly
  internal
_recvChunkStart:  adminOnly
  internal
_recvChunkStatus:  adminOnly
  internal
_shardsvrAbortReshardCollection:  adminOnly
  Internal command, which is exported by the shard server. Do not call directly. Aborts any in-progress resharding operations.
_shardsvrCleanupReshardCollection:  adminOnly
  Internal command, which is exported by the shard server. Do not call directly. Aborts and cleans up any in-progress resharding operations for this collection.
_shardsvrCloneCatalogData:  adminOnly
  no help defined
_shardsvrCommitReshardCollection:  adminOnly
  Internal command, which is exported by the shard server. Do not call directly. Commits an in-progress resharding operations
_shardsvrCreateCollection:
  Internal command. Do not call directly. Creates a collection.
_shardsvrCreateCollectionParticipant:
  Internal command. Do not call directly. Creates a collection.
_shardsvrDropCollection:
  Internal command, which is exported by the primary sharding server. Do not call directly. Drops a collection.
_shardsvrDropCollectionIfUUIDNotMatching:
  Internal command aimed to remove stale entries from the local collection catalog.
_shardsvrDropCollectionParticipant:
  Internal command, which is exported by secondary sharding servers. Do not call directly. Participates in droping a collection.
_shardsvrDropDatabase:
  Internal command, which is exported by the primary sharding server. Do not call directly. Drops a database.
_shardsvrDropDatabaseParticipant:
  Internal command, which is exported by secondary sharding servers. Do not call directly. Participates in droping a database.
_shardsvrMovePrimary:  adminOnly
  should not be calling this directly
_shardsvrRefineCollectionShardKey:
  Internal command, which is exported by the primary sharding server. Do not call directly. Refines Collection shard key.
_shardsvrRenameCollection:
  Internal command. Do not call directly. Renames a collection.
_shardsvrRenameCollectionParticipant:
  Internal command. Do not call directly. Locally renames a collection.
_shardsvrRenameCollectionParticipantUnblock:
  Internal command. Do not call directly. Releases the critical section of source and target collections.
_shardsvrReshardCollection:  adminOnly
  Internal command. Do not call directly. Reshards a collection.
_shardsvrReshardingOperationTime:  adminOnly
  Internal command used by the resharding coordinator to query the elapsed and remaining time for the active resharding operation on participant shards.
_shardsvrSetAllowMigrations:
  Internal command. Do not call directly. Enable/disable migrations in a collection.
_shardsvrShardCollection:  adminOnly
  should not be calling this directly
_transferMods:  adminOnly
  internal
abortTransaction:  adminOnly
  Aborts a transaction
aggregate:
  Runs the aggregation command. See http://dochub.mongodb.org/core/aggregation for more details.
appendOplogNote:  adminOnly
  Adds a no-op entry to the oplog
applyOps:
  internal (sharding)
  { applyOps : [ ] , preCondition : [ { ns : ... , q : ... , res : ... } ] }
authenticate:  secondaryOk
  no help defined
autoSplitVector:
  Internal command returning the split points for a chunk, given the maximum chunk size.
availableQueryOptions:  secondaryOk
  no help defined
buildInfo:  secondaryOk
  get version #, etc.
  { buildinfo:1 }
checkShardingIndex:
  Internal command.

cleanupOrphaned:  adminOnly
  no help defined
cloneCollectionAsCapped:
  { cloneCollectionAsCapped:<fromName>, toCollection:<toName>, size:<sizeInBytes> }
collMod:
  ................
...............................



No comments:

Post a Comment