用户在连接到文档数据库后,需要关注以下支持以及限制的命令。
更多信息,请参见MongoDB官方文档。
Aggregates Commands | aggregate | √ | - |
count | √ | - | |
distinct | √ | - | |
group | √ | - | |
mapReduce | √ | 在DDS实例关联参数组中设置参数“security.javascriptEnabled”的值为“true”后,可以使用该命令。 | |
Geospatial Commands | geoNear | √ | - |
geoSearch | √ | - | |
Query and Write Operation Commands | find | √ | - |
insert | √ | - | |
update | √ | - | |
delete | √ | - | |
findAndModify | √ | - | |
getMore | √ | - | |
getLastError | √ | - | |
resetError | √ | - | |
getPrevError | √ | - | |
parallelCollectionScan | √ | - | |
Query Plan Cache Commands | planCacheListFilters | √ | - |
planCacheSetFilter | √ | - | |
planCacheClearFilters | √ | - | |
planCacheListQueryShapes | √ | - | |
planCacheListPlans | √ | - | |
planCacheClear | √ | - | |
Authentication Commands | logout | √ | - |
authenticate | √ | - | |
copydbgetnonce | √ | - | |
getnonce | √ | - | |
authSchemaUpgrade | x | 系统内部命令。 | |
User Management Commands | createUser | √ | - |
updateUser | √ | - | |
dropUser | √ | - | |
dropAllUsersFromDatabase | √ | - | |
grantRolesToUser | √ | - | |
revokeRolesFromUser | √ | - | |
usersInfo | √ | - | |
Role Management Commands | invalidateUserCache | √ | - |
createRole | √ | - | |
updateRole | √ | - | |
dropRole | √ | - | |
dropAllRolesFromDatabase | √ | - | |
grantPrivilegesToRole | √ | - | |
revokePrivilegesFromRole | √ | - | |
grantRolesToRole | √ | - | |
revokeRolesFromRole | √ | - | |
rolesInfo | √ | - | |
Replication Commands | replSetElect | x | 系统内部命令。 |
replSetUpdatePosition | x | 系统内部命令。 | |
appendOplogNote | x | 系统内部命令。 | |
replSetFreeze | x | 系统内部命令。 | |
replSetGetStatus | √ | - | |
replSetInitiate | x | 系统内部命令。 | |
replSetMaintenance | x | 系统内部命令。 | |
replSetReconfig | x | 系统内部命令。 | |
replSetStepDown | x | 系统内部命令。 | |
replSetSyncFrom | x | 系统内部命令。 | |
replSetRequestVotes | x | 系统内部命令。 | |
replSetDeclareElectionWinner | x | 系统内部命令。 | |
resync | x | 系统内部命令。 | |
applyOps | x | 系统内部命令。 | |
isMaster | √ | - | |
replSetGetConfig | x | 系统内部命令。 | |
Sharding Commands | flushRouterConfig | x | 高危命令。 |
addShard | x | 越权操作。 | |
addShardToZone | √ | - | |
balancerStart | √ | - | |
balancerStatus | √ | - | |
balancerStop | √ | - | |
removeShardFromZone | √ | - | |
updateZoneKeyRange | √ | - | |
cleanupOrphaned | x | 高危命令。 | |
checkShardingIndex | x | 系统内部命令。 | |
enableSharding | √ | - | |
listShards | x | 系统内部命令。 | |
removeShard | x | 高危命令。 | |
getShardMap | x | 系统内部命令。 | |
getShardVersion | √ | - | |
mergeChunks | √ | - | |
setShardVersion | x | 系统内部命令。 | |
shardCollection | √ | - | |
shardingState | x | 系统内部命令。 | |
unsetSharding | x | 系统内部命令。 | |
split | √ | - | |
splitChunk | √ | - | |
splitVector | √ | - | |
moveChunk | √ | - | |
movePrimary | √ | - | |
isdbgrid | √ | - | |
Administration Commands | setFeatureCompatibilityVersion | √ | - |
renameCollection | √ | - | |
dropDatabase | √ | - | |
listCollections | √ | - | |
drop | √ | - | |
create | √ | - | |
clone | x | 系统内部命令。 | |
cloneCollection | √ | - | |
cloneCollectionAsCapped | √ | - | |
convertToCapped | √ | - | |
filemd5 | √ | - | |
createIndexes | √ | - | |
listIndexes | √ | - | |
dropIndexes | √ | - | |
fsync | √ | - | |
clean | x | 系统内部命令。 | |
connPoolSync | x | 系统内部命令。 | |
connectionStatus | √ | - | |
compact | x | 高危命令。 | |
collMod | √ | - | |
reIndex | √ | - | |
setParameter | x | 系统配置命令。 | |
getParameter | √ | - | |
repairDatabase | x | 高危命令。 | |
repairCursor | x | 系统内部命令。 | |
touch | √ | - | |
shutdown | x | 高危命令。 | |
logRotate | x | 高危命令。 | |
killOp | √ | - | |
Diagnostic Commands | availableQueryOptions | √ | - |
buildInfo | √ | - | |
collStats | √ | - | |
connPoolStats | x | 系统内部命令。 | |
cursorInfo | x | 系统内部命令。 | |
dataSize | √ | - | |
dbHash | x | 系统内部命令。 | |
dbStats | √ | - | |
diagLogging | x | 系统内部命令。 | |
driverOIDTest | x | 系统内部命令。 | |
explain | √ | - | |
features | √ | - | |
getCmdLineOpts | x | 系统内部命令。 | |
getLog | x | 系统内部命令。 | |
hostInfo | x | 系统内部命令。 | |
isSelf | x | 系统内部命令。 | |
listCommands | √ | - | |
listDatabases | √ | - | |
netstat | x | 系统内部命令。 | |
ping | √ | - | |
profile | √ | - | |
serverStatus | √ | - | |
shardConnPoolStats | x | 系统内部命令。 | |
top | √ | - | |
validate | x | 系统配置命令。 | |
whatsmyuri | √ | - | |
Internal Commands | handshake | x | 系统内部命令。 |
_recvChunkAbort | x | 系统内部命令。 | |
_recvChunkCommit | x | 系统内部命令。 | |
_recvChunkStart | x | 系统内部命令。 | |
_recvChunkStatus | x | 系统内部命令。 | |
_replSetFresh | x | 系统内部命令。 | |
mapreduce.shardedfinish | x | 系统内部命令。 | |
_transferMods | x | 系统内部命令。 | |
replSetHeartbeat | x | 系统内部命令。 | |
replSetGetRBID | x | 系统内部命令。 | |
_migrateClone | x | 系统内部命令。 | |
replSetElect | x | 系统内部命令。 | |
writeBacksQueued | x | 系统内部命令。 | |
writebacklisten | x | 系统内部命令。 | |
System Events Auditing Commands | logApplicationMessage | x | 系统内部命令。 |