listCommands()
This method provides a list of all database commands.
Syntax:
db.listCommands()
Example
MongoDB
db.listCommands()
Output:
> db.listCommands()_addShard: adminOnlyInternal 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: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Aborts any in-progress resharding operations for this collection._configsvrAddShard: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Validates and adds a new shard to the cluster._configsvrAddShardToZone: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Validates and adds a new zone to the shard._configsvrBalancerCollectionStatus: adminOnlyInternal 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: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Controls the balancer state._configsvrBalancerStatus: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Controls the balancer state._configsvrBalancerStop: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Controls the balancer state._configsvrCleanupReshardCollection: adminOnlyInternal 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: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Clears the jumbo flag of the chunk specified._configsvrCommitChunkMerge: adminOnlyInternal command, which is sent by a shard to the sharding config server. Do not call directly. Receives, validates, and processes a MergeChunkRequest_configsvrCommitChunkMigration: adminOnlyshould not be calling this directly_configsvrCommitChunkSplit: adminOnlyInternal command, which is sent by a shard to the sharding config server. Do not call directly. Receives, validates, and processes a SplitChunkRequest._configsvrCommitChunksMerge: adminOnlyInternal command, which is sent by a shard to the sharding config server. Do not call directly. Receives, validates, and processes a MergeChunksRequest_configsvrCommitMovePrimary: adminOnlyshould not be calling this directly_configsvrCommitReshardCollection: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Allows a reshard operation to enter critical section ASAP._configsvrCreateDatabase: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Create a database._configsvrDropCollection: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Drops a collection from a database._configsvrDropDatabase: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Drops a database._configsvrEnableSharding: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Enable sharding on a database._configsvrEnsureChunkVersionIsGreaterThan: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly._configsvrMoveChunk: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Requests the balancer to move or rebalance a single chunk._configsvrMovePrimary: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Reassigns the primary shard of a database._configsvrRefineCollectionShardKey: adminOnlyInternal 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: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Removes the chunks for the specified collectionUUID._configsvrRemoveShard: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Removes a shard from the cluster._configsvrRemoveShardFromZone: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Validates and removes the shard from the zone._configsvrRemoveTags: adminOnlyInternal 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: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly._configsvrReshardCollection: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Reshards a collection on a new shard key._configsvrSetAllowMigrations: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Sets the allowMigrations flag on the specified collection._configsvrShardCollection: adminOnlyInternal 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: adminOnlyInternal command, which is exported by the sharding config server. Do not call directly. Validates and assigns a new range to a zone._flushDatabaseCacheUpdates: adminOnlyInternal 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: adminOnlyInternal 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: adminOnlyInternal command used by the resharding coordinator to flush state changes to the participant shards while the critical section is active._flushRoutingTableCacheUpdates: adminOnlyInternal 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: adminOnlyInternal 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: adminOnlyinternal_getUserCacheGeneration: adminOnly secondaryOkno help defined_isSelf: secondaryOk{ _isSelf : 1 } INTERNAL ONLY_killOperations: adminOnly secondaryOkInternal command -- Kill operations on the target server by OperationKey._mergeAuthzCollections: adminOnlyno help defined_migrateClone: adminOnlyinternal_recvChunkAbort: adminOnlyinternal_recvChunkCommit: adminOnlyinternal_recvChunkStart: adminOnlyinternal_recvChunkStatus: adminOnlyinternal_shardsvrAbortReshardCollection: adminOnlyInternal command, which is exported by the shard server. Do not call directly. Aborts any in-progress resharding operations._shardsvrCleanupReshardCollection: adminOnlyInternal 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: adminOnlyno help defined_shardsvrCommitReshardCollection: adminOnlyInternal 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: adminOnlyshould 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: adminOnlyInternal command. Do not call directly. Reshards a collection._shardsvrReshardingOperationTime: adminOnlyInternal 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: adminOnlyshould not be calling this directly_transferMods: adminOnlyinternalabortTransaction: adminOnlyAborts a transactionaggregate:Runs the aggregation command. See http://dochub.mongodb.org/core/aggregation for more details.appendOplogNote: adminOnlyAdds a no-op entry to the oplogapplyOps:internal (sharding){ applyOps : [ ] , preCondition : [ { ns : ... , q : ... , res : ... } ] }authenticate: secondaryOkno help definedautoSplitVector:Internal command returning the split points for a chunk, given the maximum chunk size.availableQueryOptions: secondaryOkno help definedbuildInfo: secondaryOkget version #, etc.{ buildinfo:1 }checkShardingIndex:Internal command.cleanupOrphaned: adminOnlyno help definedcloneCollectionAsCapped:{ cloneCollectionAsCapped:<fromName>, toCollection:<toName>, size:<sizeInBytes> }collMod:...............................................
No comments:
Post a Comment