edit-icon download-icon

Supported and restricted commands

Last Updated: Jan 29, 2018

For the list of commands supported by MongoDB, click here.

The following table lists the commands supported by ApsaraDB for MongoDB.

Aggregates commands Geospatial commands Query and write operation commands Query plan cache commands Authentication
All commands of this type are supported. All commands of this type are supported. insert All commands of this type are supported. logout
aggregate geoNear update planCacheListFilters authenticate
distinct geoSearch delete planCacheSetFilter copydbgetnonce
count geoWalk findAndModify planCacheClearFilters getnonce
group - getLastError planCacheListQueryShapes -
mapReduce - getPrevError planCacheListPlans -
- - resetError planCacheClear -
- - parallelCollectionScan - -
- - eval - -
User management commands Role management commands Replication commands diagnostic Diagnostic commands Instance administration commands
All commands of this type are supported. All commands of this type are supported. isMaster explain renameCollection
createUser createRole applyOps listDatabases dropDatabase
updateUser updateRole dbHash listCollections
dropUser dropRole listCommands drop
dropAllUsersFromDatabase dropAllRolesFromDatabase availableQueryOptions create
grantRolesToUser grantPrivilegesToRole buildInfo cloneCollection
revokeRolesFromUser revokePrivilegesFromRole collStats cloneCollectionAsCapped
usersInfo grantRolesToRole - dbStats convertToCapped
- revokeRolesFromRole - cursorInfo filemd5
- rolesInfo - dataSize createIndexes
- invalidateUserCache - ping listIndexes
- - - profile dropIndexes
- - - top fsync
- - - whatsmyuri connectionStatus
- - - serverStatus collMod
- - - features reIndex
- - - isSelf touch
- - - validate getParameter
- - - currentOpCtx -

The following table lists the commands not supported by ApsaraDB for MongoDB.

Authentication Replication commands Diagnostic commands Instance administration commands
authSchemaUpgrade replSetInitiate driverOIDTest copydb
- replSetFreeze connPoolStats clone
- replSetMaintenance shardConnPoolStats clean
- replSetGetConfig getCmdLineOpts shutdown
- replSetGetStatus netstat logRotate
- replSetReconfig getLog repairDatabase
- replSetStepDown diagLogging repairCursor
- replSetSyncFrom hostInfo compact
- replSetElect - setParameter
- replSetUpdatePosition - connPoolSync
- resync - setReadonly
- appendOplogNote - netvip
Thank you! We've received your feedback.