Skip to content

Information of all Collections​

GET
/mongodb/collections/info

The numbers of all Collections of the default database (or of the database in database) that the user may read in one request (count, size, storage size, average size of a document, number and size of the indices). A Collection without statistics, for example a view, is listed with available false. A database that does not exist is a 404 for an administrator and an empty list for every other user: they cannot find out which databases exist.

Authorizations​

httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)

Parameters​

Query Parameters

name

Only the Collections with these names, by default all Collections that the user may read. With database the names are the names inside that database (locations), the full name (geodata:locations) of that database is accepted too.

Type
array
Default
database

The Collections of this database, by default the default database. The names in the answer are the full names (geodata:locations), as they are used in the paths of the other routes.

Type
string

Responses​

application/json
JSON
[
  
{
  
  
"name": "string",
  
  
"collectionType": "string",
  
  
"count": 0,
  
  
"size": 0,
  
  
"storageSize": 0,
  
  
"avgObjSize": 0,
  
  
"nindexes": 0,
  
  
"totalIndexSize": 0,
  
  
"available": true
  
}
]

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.