MongoDB Atlas v3.7.2, Mar 31 23
MongoDB Atlas v3.7.2, Mar 31 23
mongodbatlas.getSearchIndexes
Explore with Pulumi AI
mongodbatlas.getSearchIndexes
describe all search indexes. This represents search indexes that have been created.
NOTE: Groups and projects are synonymous terms. You may find
groupId
in the official documentation.
Example Usage
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetSearchIndexArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = MongodbatlasFunctions.getSearchIndex(GetSearchIndexArgs.builder()
.clusterName("<CLUSTER_NAME>")
.collectionName("<COLLECTION_NAME>")
.databaseName("<DATABASE_NAME>")
.itemsPerPage(100)
.pageNum(1)
.projectId("<PROJECT_ID>")
.build());
}
}
Coming soon!
Coming soon!
variables:
test:
fn::invoke:
Function: mongodbatlas:getSearchIndex
Arguments:
clusterName: <CLUSTER_NAME>
collectionName: <COLLECTION_NAME>
databaseName: <DATABASE_NAME>
itemsPerPage: 100
pageNum: 1
projectId: <PROJECT_ID>
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,
items_per_page: Optional[int] = None,
page_num: Optional[int] = 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,
items_per_page: Optional[pulumi.Input[int]] = None,
page_num: Optional[pulumi.Input[int]] = 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getSearchIndexes:getSearchIndexes
arguments:
# arguments dictionary
The 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.
- Items
Per intPage Number of items that Atlas returns per page, up to a maximum of 500.
- Page
Num int Page number, starting with one, that Atlas returns of the total number 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.
- Project
Id string Unique identifier for the project that contains the specified cluster.
- Items
Per intPage Number of items that Atlas returns per page, up to a maximum of 500.
- Page
Num int Page number, starting with one, that Atlas returns of the total number 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.
- project
Id String Unique identifier for the project that contains the specified cluster.
- items
Per IntegerPage Number of items that Atlas returns per page, up to a maximum of 500.
- page
Num Integer Page number, starting with one, that Atlas returns of the total number 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.
- project
Id string Unique identifier for the project that contains the specified cluster.
- items
Per numberPage Number of items that Atlas returns per page, up to a maximum of 500.
- page
Num number Page number, starting with one, that Atlas returns of the total number 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.
- project_
id str Unique identifier for the project that contains the specified cluster.
- items_
per_ intpage Number of items that Atlas returns per page, up to a maximum of 500.
- page_
num int Page number, starting with one, that Atlas returns of the total number 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.
- project
Id String Unique identifier for the project that contains the specified cluster.
- items
Per NumberPage Number of items that Atlas returns per page, up to a maximum of 500.
- page
Num Number Page number, starting with one, that Atlas returns of the total number of objects.
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
- Items
Per intPage - Page
Num int
- 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
- Items
Per intPage - Page
Num int
- 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
- items
Per IntegerPage - page
Num Integer
- 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
- items
Per numberPage - page
Num number
- 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
- items_
per_ intpage - page_
num int
- 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
- items
Per NumberPage - page
Num Number
Supporting Types
GetSearchIndexesResult
- Analyzer string
Analyzer to use when creating the index.
- 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.
- Index
Id string - Name string
Name of the index.
- Project
Id string Unique identifier for the project that contains the specified cluster.
- Status string
- Analyzers string
Custom analyzers to use in this index (this is an array of objects).
- Mappings
Dynamic bool Flag indicating whether the index uses dynamic or static mappings.
- Mappings
Fields string Object containing one or more field specifications.
- Search
Analyzer string Analyzer to use when searching the index.
- 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.
- Wait
For boolIndex Build Completion
- Analyzer string
Analyzer to use when creating the index.
- 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.
- Index
Id string - Name string
Name of the index.
- Project
Id string Unique identifier for the project that contains the specified cluster.
- Status string
- Analyzers string
Custom analyzers to use in this index (this is an array of objects).
- Mappings
Dynamic bool Flag indicating whether the index uses dynamic or static mappings.
- Mappings
Fields string Object containing one or more field specifications.
- Search
Analyzer string Analyzer to use when searching the index.
- 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.
- Wait
For boolIndex Build Completion
- analyzer String
Analyzer to use when creating the index.
- 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.
- index
Id String - name String
Name of the index.
- project
Id String Unique identifier for the project that contains the specified cluster.
- status String
- analyzers String
Custom analyzers to use in this index (this is an array of objects).
- mappings
Dynamic Boolean Flag indicating whether the index uses dynamic or static mappings.
- mappings
Fields String Object containing one or more field specifications.
- search
Analyzer String Analyzer to use when searching the index.
- 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.
- wait
For BooleanIndex Build Completion
- analyzer string
Analyzer to use when creating the index.
- 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.
- index
Id string - name string
Name of the index.
- project
Id string Unique identifier for the project that contains the specified cluster.
- status string
- analyzers string
Custom analyzers to use in this index (this is an array of objects).
- mappings
Dynamic boolean Flag indicating whether the index uses dynamic or static mappings.
- mappings
Fields string Object containing one or more field specifications.
- search
Analyzer string Analyzer to use when searching the index.
- 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.
- wait
For booleanIndex Build Completion
- analyzer str
Analyzer to use when creating the index.
- 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.
- index_
id str - name str
Name of the index.
- project_
id str Unique identifier for the project that contains the specified cluster.
- status str
- analyzers str
Custom analyzers to use in this index (this is an array of objects).
- mappings_
dynamic bool Flag indicating whether the index uses dynamic or static mappings.
- mappings_
fields str Object containing one or more field specifications.
- search_
analyzer str Analyzer to use when searching the index.
- 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.
- wait_
for_ boolindex_ build_ completion
- analyzer String
Analyzer to use when creating the index.
- 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.
- index
Id String - name String
Name of the index.
- project
Id String Unique identifier for the project that contains the specified cluster.
- status String
- analyzers String
Custom analyzers to use in this index (this is an array of objects).
- mappings
Dynamic Boolean Flag indicating whether the index uses dynamic or static mappings.
- mappings
Fields String Object containing one or more field specifications.
- search
Analyzer String Analyzer to use when searching the index.
- 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.
- wait
For BooleanIndex Build Completion
GetSearchIndexesResultSynonym
- Analyzer string
Analyzer to use when creating the index.
- Name string
Name of the index.
- Source
Collection string
- Analyzer string
Analyzer to use when creating the index.
- Name string
Name of the index.
- Source
Collection string
- analyzer String
Analyzer to use when creating the index.
- name String
Name of the index.
- source
Collection String
- analyzer string
Analyzer to use when creating the index.
- name string
Name of the index.
- source
Collection string
- analyzer str
Analyzer to use when creating the index.
- name str
Name of the index.
- source_
collection str
- analyzer String
Analyzer to use when creating the index.
- name String
Name of the index.
- source
Collection String
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
mongodbatlas
Terraform Provider.