Skip to content

Index usage for Collection​

GET
/mongodb/collections/{collectionName}/index/stats

How often every Index of the given Collection was used since the counting started. Replaces the aggregation stage $indexStats, which is denied by default because its result contains the address of the database server. 404 for a collection that does not exist (2.0.0).

Authorizations​

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

Parameters​

Path Parameters

collectionName*

The name of your MongoDb Collection

Type
string
Required

Responses​

application/json
JSON
[
  
{
  
  
"name": "string",
  
  
"key": {
  
  
  
"additionalProperties": null
  
  
},
  
  
"ops": 0,
  
  
"since": "2024-01-01T00:00:00Z"
  
}
]

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.