Skip to content

List Indices for Collection​

GET
/mongodb/collections/{collectionName}/index

List all Indices for given Collection

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",
  
  
"fields": [
  
  
  
"string"
  
  
],
  
  
"unique": true,
  
  
"version": 0,
  
  
"namespace": "string",
  
  
"keys": {
  
  
  
"additionalProperties": null
  
  
},
  
  
"weights": {
  
  
  
"additionalProperties": null
  
  
},
  
  
"expire": true,
  
  
"expireAfterSeconds": 0,
  
  
"text": true,
  
  
"fetched": "2024-01-01T00:00:00Z",
  
  
"map": {
  
  
  
"additionalProperties": null
  
  
}
  
}
]

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.