MongoDB Atlas v4.3.0 published on Thursday, Feb 5, 2026 by Pulumi
MongoDB Atlas v4.3.0 published on Thursday, Feb 5, 2026 by Pulumi
mongodbatlas.getSearchIndexes describes all search indexes. This represents search indexes that have been created.
NOTE: Groups and projects are synonymous terms. You may find
groupIdin the official documentation.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
variables:
test:
fn::invoke:
function: mongodbatlas:getSearchIndexes
arguments:
projectId: <PROJECT_ID>
clusterName: <CLUSTER_NAME>
databaseName: <DATABASE_NAME>
collectionName: <COLLECTION_NAME>
Using getSearchIndexes
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSearchIndexes(args: GetSearchIndexesArgs, opts?: InvokeOptions): Promise<GetSearchIndexesResult>
function getSearchIndexesOutput(args: GetSearchIndexesOutputArgs, opts?: InvokeOptions): Output<GetSearchIndexesResult>def get_search_indexes(cluster_name: Optional[str] = None,
collection_name: Optional[str] = None,
database: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSearchIndexesResult
def get_search_indexes_output(cluster_name: Optional[pulumi.Input[str]] = None,
collection_name: Optional[pulumi.Input[str]] = None,
database: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSearchIndexesResult]func LookupSearchIndexes(ctx *Context, args *LookupSearchIndexesArgs, opts ...InvokeOption) (*LookupSearchIndexesResult, error)
func LookupSearchIndexesOutput(ctx *Context, args *LookupSearchIndexesOutputArgs, opts ...InvokeOption) LookupSearchIndexesResultOutput> Note: This function is named LookupSearchIndexes in the Go SDK.
public static class GetSearchIndexes
{
public static Task<GetSearchIndexesResult> InvokeAsync(GetSearchIndexesArgs args, InvokeOptions? opts = null)
public static Output<GetSearchIndexesResult> Invoke(GetSearchIndexesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSearchIndexesResult> getSearchIndexes(GetSearchIndexesArgs args, InvokeOptions options)
public static Output<GetSearchIndexesResult> getSearchIndexes(GetSearchIndexesArgs args, InvokeOptions options)
fn::invoke:
function: mongodbatlas:index/getSearchIndexes:getSearchIndexes
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Name string - Name of the cluster containing the collection with one or more Atlas Search indexes.
- Collection
Name string - Name of the collection with one or more Atlas Search indexes.
- Database string
- (Required) Name of the database the collection is in.
- Project
Id string - Unique identifier for the project that contains the specified cluster.
- Cluster
Name string - Name of the cluster containing the collection with one or more Atlas Search indexes.
- Collection
Name string - Name of the collection with one or more Atlas Search indexes.
- Database string
- (Required) Name of the database the collection is in.
- Project
Id string - Unique identifier for the project that contains the specified cluster.
- cluster
Name String - Name of the cluster containing the collection with one or more Atlas Search indexes.
- collection
Name String - Name of the collection with one or more Atlas Search indexes.
- database String
- (Required) Name of the database the collection is in.
- project
Id String - Unique identifier for the project that contains the specified cluster.
- cluster
Name string - Name of the cluster containing the collection with one or more Atlas Search indexes.
- collection
Name string - Name of the collection with one or more Atlas Search indexes.
- database string
- (Required) Name of the database the collection is in.
- project
Id string - Unique identifier for the project that contains the specified cluster.
- cluster_
name str - Name of the cluster containing the collection with one or more Atlas Search indexes.
- collection_
name str - Name of the collection with one or more Atlas Search indexes.
- database str
- (Required) Name of the database the collection is in.
- project_
id str - Unique identifier for the project that contains the specified cluster.
- cluster
Name String - Name of the cluster containing the collection with one or more Atlas Search indexes.
- collection
Name String - Name of the collection with one or more Atlas Search indexes.
- database String
- (Required) Name of the database the collection is in.
- project
Id String - Unique identifier for the project that contains the specified cluster.
getSearchIndexes Result
The following output properties are available:
- Cluster
Name string - Collection
Name string - (Required) Name of the collection the index is on.
- Database string
- (Required) Name of the database the collection is in.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Results
List<Get
Search Indexes Result> - A list where each represents a search index.
- Total
Count int - Represents the total of the search indexes
- Cluster
Name string - Collection
Name string - (Required) Name of the collection the index is on.
- Database string
- (Required) Name of the database the collection is in.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Results
[]Get
Search Indexes Result - A list where each represents a search index.
- Total
Count int - Represents the total of the search indexes
- cluster
Name String - collection
Name String - (Required) Name of the collection the index is on.
- database String
- (Required) Name of the database the collection is in.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - results
List<Get
Search Indexes Result> - A list where each represents a search index.
- total
Count Integer - Represents the total of the search indexes
- cluster
Name string - collection
Name string - (Required) Name of the collection the index is on.
- database string
- (Required) Name of the database the collection is in.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - results
Get
Search Indexes Result[] - A list where each represents a search index.
- total
Count number - Represents the total of the search indexes
- cluster_
name str - collection_
name str - (Required) Name of the collection the index is on.
- database str
- (Required) Name of the database the collection is in.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - results
Sequence[Get
Search Indexes Result] - A list where each represents a search index.
- total_
count int - Represents the total of the search indexes
- cluster
Name String - collection
Name String - (Required) Name of the collection the index is on.
- database String
- (Required) Name of the database the collection is in.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - results List<Property Map>
- A list where each represents a search index.
- total
Count Number - Represents the total of the search indexes
Supporting Types
GetSearchIndexesResult
- Analyzer string
- Analyzer to use when creating the index.
- Analyzers string
- Custom analyzers to use in this index (this is an array of objects).
- Cluster
Name string - Name of the cluster containing the collection with one or more Atlas Search indexes.
- Collection
Name string - Name of the collection with one or more Atlas Search indexes.
- Database string
- (Required) Name of the database the collection is in.
- Fields string
- Index
Id string - The unique identifier of the Atlas Search index.
- Mappings
Dynamic bool - Flag indicating whether the index uses dynamic or static mappings. Mutually exclusive with
mappings_dynamic_config. - Mappings
Dynamic stringConfig - JSON object for
mappings.dynamicwhen Atlas returns an object (Please see the documentation for dynamic and static mappings). Mutually exclusive withmappings_dynamic. - Mappings
Fields string - Object containing one or more field specifications.
- Name string
- Type set name.
- Num
Partitions int - Number of index partitions.
- Project
Id string - Unique identifier for the project that contains the specified cluster.
- Search
Analyzer string - Analyzer to use when searching the index.
- Status string
- Current status of the index.
- Stored
Source string - String that can be "true" (store all fields), "false" (default, don't store any field), or a JSON string that contains the list of fields to store (include) or not store (exclude) on Atlas Search. To learn more, see Stored Source Fields.
- Synonyms
List<Get
Search Indexes Result Synonym> - Synonyms mapping definition to use in this index.
synonyms.#.name- Name of the synonym mapping definition.synonyms.#.source_collection- Name of the source MongoDB collection for the synonyms.synonyms.#.analyzer- Name of the analyzer to use with this synonym mapping.
- Type string
- Type
Sets List<GetSearch Indexes Result Type Set> - Set of type set definitions (when present). Each item includes:
- Analyzer string
- Analyzer to use when creating the index.
- Analyzers string
- Custom analyzers to use in this index (this is an array of objects).
- Cluster
Name string - Name of the cluster containing the collection with one or more Atlas Search indexes.
- Collection
Name string - Name of the collection with one or more Atlas Search indexes.
- Database string
- (Required) Name of the database the collection is in.
- Fields string
- Index
Id string - The unique identifier of the Atlas Search index.
- Mappings
Dynamic bool - Flag indicating whether the index uses dynamic or static mappings. Mutually exclusive with
mappings_dynamic_config. - Mappings
Dynamic stringConfig - JSON object for
mappings.dynamicwhen Atlas returns an object (Please see the documentation for dynamic and static mappings). Mutually exclusive withmappings_dynamic. - Mappings
Fields string - Object containing one or more field specifications.
- Name string
- Type set name.
- Num
Partitions int - Number of index partitions.
- Project
Id string - Unique identifier for the project that contains the specified cluster.
- Search
Analyzer string - Analyzer to use when searching the index.
- Status string
- Current status of the index.
- Stored
Source string - String that can be "true" (store all fields), "false" (default, don't store any field), or a JSON string that contains the list of fields to store (include) or not store (exclude) on Atlas Search. To learn more, see Stored Source Fields.
- Synonyms
[]Get
Search Indexes Result Synonym - Synonyms mapping definition to use in this index.
synonyms.#.name- Name of the synonym mapping definition.synonyms.#.source_collection- Name of the source MongoDB collection for the synonyms.synonyms.#.analyzer- Name of the analyzer to use with this synonym mapping.
- Type string
- Type
Sets []GetSearch Indexes Result Type Set - Set of type set definitions (when present). Each item includes:
- analyzer String
- Analyzer to use when creating the index.
- analyzers String
- Custom analyzers to use in this index (this is an array of objects).
- cluster
Name String - Name of the cluster containing the collection with one or more Atlas Search indexes.
- collection
Name String - Name of the collection with one or more Atlas Search indexes.
- database String
- (Required) Name of the database the collection is in.
- fields String
- index
Id String - The unique identifier of the Atlas Search index.
- mappings
Dynamic Boolean - Flag indicating whether the index uses dynamic or static mappings. Mutually exclusive with
mappings_dynamic_config. - mappings
Dynamic StringConfig - JSON object for
mappings.dynamicwhen Atlas returns an object (Please see the documentation for dynamic and static mappings). Mutually exclusive withmappings_dynamic. - mappings
Fields String - Object containing one or more field specifications.
- name String
- Type set name.
- num
Partitions Integer - Number of index partitions.
- project
Id String - Unique identifier for the project that contains the specified cluster.
- search
Analyzer String - Analyzer to use when searching the index.
- status String
- Current status of the index.
- stored
Source String - String that can be "true" (store all fields), "false" (default, don't store any field), or a JSON string that contains the list of fields to store (include) or not store (exclude) on Atlas Search. To learn more, see Stored Source Fields.
- synonyms
List<Get
Search Indexes Result Synonym> - Synonyms mapping definition to use in this index.
synonyms.#.name- Name of the synonym mapping definition.synonyms.#.source_collection- Name of the source MongoDB collection for the synonyms.synonyms.#.analyzer- Name of the analyzer to use with this synonym mapping.
- type String
- type
Sets List<GetSearch Indexes Result Type Set> - Set of type set definitions (when present). Each item includes:
- analyzer string
- Analyzer to use when creating the index.
- analyzers string
- Custom analyzers to use in this index (this is an array of objects).
- cluster
Name string - Name of the cluster containing the collection with one or more Atlas Search indexes.
- collection
Name string - Name of the collection with one or more Atlas Search indexes.
- database string
- (Required) Name of the database the collection is in.
- fields string
- index
Id string - The unique identifier of the Atlas Search index.
- mappings
Dynamic boolean - Flag indicating whether the index uses dynamic or static mappings. Mutually exclusive with
mappings_dynamic_config. - mappings
Dynamic stringConfig - JSON object for
mappings.dynamicwhen Atlas returns an object (Please see the documentation for dynamic and static mappings). Mutually exclusive withmappings_dynamic. - mappings
Fields string - Object containing one or more field specifications.
- name string
- Type set name.
- num
Partitions number - Number of index partitions.
- project
Id string - Unique identifier for the project that contains the specified cluster.
- search
Analyzer string - Analyzer to use when searching the index.
- status string
- Current status of the index.
- stored
Source string - String that can be "true" (store all fields), "false" (default, don't store any field), or a JSON string that contains the list of fields to store (include) or not store (exclude) on Atlas Search. To learn more, see Stored Source Fields.
- synonyms
Get
Search Indexes Result Synonym[] - Synonyms mapping definition to use in this index.
synonyms.#.name- Name of the synonym mapping definition.synonyms.#.source_collection- Name of the source MongoDB collection for the synonyms.synonyms.#.analyzer- Name of the analyzer to use with this synonym mapping.
- type string
- type
Sets GetSearch Indexes Result Type Set[] - Set of type set definitions (when present). Each item includes:
- analyzer str
- Analyzer to use when creating the index.
- analyzers str
- Custom analyzers to use in this index (this is an array of objects).
- cluster_
name str - Name of the cluster containing the collection with one or more Atlas Search indexes.
- collection_
name str - Name of the collection with one or more Atlas Search indexes.
- database str
- (Required) Name of the database the collection is in.
- fields str
- index_
id str - The unique identifier of the Atlas Search index.
- mappings_
dynamic bool - Flag indicating whether the index uses dynamic or static mappings. Mutually exclusive with
mappings_dynamic_config. - mappings_
dynamic_ strconfig - JSON object for
mappings.dynamicwhen Atlas returns an object (Please see the documentation for dynamic and static mappings). Mutually exclusive withmappings_dynamic. - mappings_
fields str - Object containing one or more field specifications.
- name str
- Type set name.
- num_
partitions int - Number of index partitions.
- project_
id str - Unique identifier for the project that contains the specified cluster.
- search_
analyzer str - Analyzer to use when searching the index.
- status str
- Current status of the index.
- stored_
source str - String that can be "true" (store all fields), "false" (default, don't store any field), or a JSON string that contains the list of fields to store (include) or not store (exclude) on Atlas Search. To learn more, see Stored Source Fields.
- synonyms
Sequence[Get
Search Indexes Result Synonym] - Synonyms mapping definition to use in this index.
synonyms.#.name- Name of the synonym mapping definition.synonyms.#.source_collection- Name of the source MongoDB collection for the synonyms.synonyms.#.analyzer- Name of the analyzer to use with this synonym mapping.
- type str
- type_
sets Sequence[GetSearch Indexes Result Type Set] - Set of type set definitions (when present). Each item includes:
- analyzer String
- Analyzer to use when creating the index.
- analyzers String
- Custom analyzers to use in this index (this is an array of objects).
- cluster
Name String - Name of the cluster containing the collection with one or more Atlas Search indexes.
- collection
Name String - Name of the collection with one or more Atlas Search indexes.
- database String
- (Required) Name of the database the collection is in.
- fields String
- index
Id String - The unique identifier of the Atlas Search index.
- mappings
Dynamic Boolean - Flag indicating whether the index uses dynamic or static mappings. Mutually exclusive with
mappings_dynamic_config. - mappings
Dynamic StringConfig - JSON object for
mappings.dynamicwhen Atlas returns an object (Please see the documentation for dynamic and static mappings). Mutually exclusive withmappings_dynamic. - mappings
Fields String - Object containing one or more field specifications.
- name String
- Type set name.
- num
Partitions Number - Number of index partitions.
- project
Id String - Unique identifier for the project that contains the specified cluster.
- search
Analyzer String - Analyzer to use when searching the index.
- status String
- Current status of the index.
- stored
Source String - String that can be "true" (store all fields), "false" (default, don't store any field), or a JSON string that contains the list of fields to store (include) or not store (exclude) on Atlas Search. To learn more, see Stored Source Fields.
- synonyms List<Property Map>
- Synonyms mapping definition to use in this index.
synonyms.#.name- Name of the synonym mapping definition.synonyms.#.source_collection- Name of the source MongoDB collection for the synonyms.synonyms.#.analyzer- Name of the analyzer to use with this synonym mapping.
- type String
- type
Sets List<Property Map> - Set of type set definitions (when present). Each item includes:
GetSearchIndexesResultSynonym
- Analyzer string
- Analyzer to use when creating the index.
- Name string
- Type set name.
- Source
Collection string
- Analyzer string
- Analyzer to use when creating the index.
- Name string
- Type set name.
- Source
Collection string
- analyzer String
- Analyzer to use when creating the index.
- name String
- Type set name.
- source
Collection String
- analyzer string
- Analyzer to use when creating the index.
- name string
- Type set name.
- source
Collection string
- analyzer str
- Analyzer to use when creating the index.
- name str
- Type set name.
- source_
collection str
- analyzer String
- Analyzer to use when creating the index.
- name String
- Type set name.
- source
Collection String
GetSearchIndexesResultTypeSet
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.
MongoDB Atlas v4.3.0 published on Thursday, Feb 5, 2026 by Pulumi
