Help Center/ Document Database Service/ User Guide/ Database Usage/ Which Commands are Supported or Restricted by DDS?
Updated on 2022-09-16 GMT+08:00

Which Commands are Supported or Restricted by DDS?

The following tables list the commands supported and restricted by DDS.

For more information, see official MongoDB documentation.

As shown in the following table, "√" indicates that the current version supports the command, and "x" indicates that the current version does not support the command.

Table 1 Commands supported and restricted by DDS

Type

Command

3.4

4.0

4.2

Description

Aggregates Commands

aggregate

-

count

-

distinct

-

group

-

mapReduce

This command can be used only when the security.javascriptEnabled parameter in the parameter template associated with the DB instance is set to true. For more information, see How Do I Use MapReduce Commands?

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

x

x

System command

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

x

x

System command

replSetUpdatePosition

x

x

x

System command

appendOplogNote

x

x

x

System command

replSetFreeze

x

x

x

System command

replSetGetStatus

-

replSetInitiate

x

x

x

System command

replSetMaintenance

x

x

x

System command

replSetReconfig

x

x

x

System command

replSetStepDown

x

x

x

System command

replSetSyncFrom

x

x

x

System command

replSetRequestVotes

x

x

x

System command

replSetDeclareElectionWinner

x

x

x

System command

resync

x

x

x

System command

applyOps

x

x

x

System command

isMaster

-

replSetGetConfig

x

x

x

System command

Sharding Commands

flushRouterConfig

x

x

x

High-risk commands

addShard

x

x

x

Unauthorized operation

addShardToZone

-

balancerStart

-

balancerStatus

-

balancerStop

-

removeShardFromZone

-

updateZoneKeyRange

-

cleanupOrphaned

x

x

x

High-risk commands

checkShardingIndex

x

x

x

System command

enableSharding

-

listShards

x

x

x

System command

removeShard

x

x

x

High-risk commands

getShardMap

x

x

x

System command

getShardVersion

-

mergeChunks

-

setShardVersion

x

x

x

System command

shardCollection

-

shardingState

x

x

x

System command

unsetSharding

x

x

x

System command

split

-

splitChunk

-

splitVector

-

moveChunk

-

movePrimary

x

-

isdbgrid

-

Administration Commands

setFeatureCompatibilityVersion

-

renameCollection

-

dropDatabase

-

listCollections

-

drop

-

create

-

clone

x

x

x

System command

cloneCollection

-

cloneCollectionAsCapped

-

convertToCapped

-

filemd5

-

createIndexes

-

listIndexes

-

dropIndexes

-

fsync

-

clean

x

x

x

System command

connPoolSync

x

x

x

System command

connectionStatus

-

compact

x

x

x

High-risk commands

collMod

-

reIndex

-

setParameter

x

x

x

System configuration command

getParameter

-

repairDatabase

x

x

x

High-risk commands

repairCursor

x

x

x

System command

touch

-

shutdown

x

x

x

High-risk commands

logRotate

x

x

x

High-risk commands

killOp

-

releaseFreeMemory

-

Diagnostic Commands

availableQueryOptions

-

buildInfo

-

collStats

-

connPoolStats

x

x

x

System command

cursorInfo

x

x

x

System command

dataSize

-

dbHash

x

x

x

System command

dbStats

-

diagLogging

x

x

x

System command

driverOIDTest

x

x

x

System command

explain

-

features

-

getCmdLineOpts

x

x

x

System command

getLog

x

x

x

System command

hostInfo

x

x

x

System command

isSelf

x

x

x

System command

listCommands

-

listDatabases

-

netstat

x

x

x

System command

ping

-

profile

-

serverStatus

-

shardConnPoolStats

x

x

x

System command

top

-

validate

x

x

x

System configuration command

whatsmyuri

-

Internal Commands

handshake

x

x

x

System command

_recvChunkAbort

x

x

x

System command

_recvChunkCommit

x

x

x

System command

_recvChunkStart

x

x

x

System command

_recvChunkStatus

x

x

x

System command

_replSetFresh

x

x

x

System command

mapreduce.shardedfinish

x

x

x

System command

_transferMods

x

x

x

System command

replSetHeartbeat

x

x

x

System command

replSetGetRBID

x

x

x

System command

_migrateClone

x

x

x

System command

replSetElect

x

x

x

System command

writeBacksQueued

x

x

x

System command

writebacklisten

x

x

x

System command

System Events Auditing Commands

logApplicationMessage

x

x

x

System command