Viewing docs for elasticstack 0.15.0
published on Thursday, May 14, 2026 by elastic
published on Thursday, May 14, 2026 by elastic
Viewing docs for elasticstack 0.15.0
published on Thursday, May 14, 2026 by elastic
published on Thursday, May 14, 2026 by elastic
Retrieves information about an existing index template definition. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-template.html
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as elasticstack from "@pulumi/elasticstack";
// Minimal template so the data source reads a predictable shape you control. This mirrors the
// acceptance-test pattern (resource + data source). The examples PlanOnly harness does not
// apply changes; the data source then uses the provider's legacy "not found" behavior (name only)
// instead of depending on built-in cluster templates, whose API responses vary by version.
const exampleElasticsearchIndexTemplate = new elasticstack.ElasticsearchIndexTemplate("example", {
name: "terraform-provider-elasticstack-example-index-template-ds",
priority: 100,
indexPatterns: ["tf-example-index-template-ds-*"],
});
const example = elasticstack.getElasticsearchIndexTemplateOutput({
name: exampleElasticsearchIndexTemplate.name,
});
export const template = example;
import pulumi
import pulumi_elasticstack as elasticstack
# Minimal template so the data source reads a predictable shape you control. This mirrors the
# acceptance-test pattern (resource + data source). The examples PlanOnly harness does not
# apply changes; the data source then uses the provider's legacy "not found" behavior (name only)
# instead of depending on built-in cluster templates, whose API responses vary by version.
example_elasticsearch_index_template = elasticstack.ElasticsearchIndexTemplate("example",
name="terraform-provider-elasticstack-example-index-template-ds",
priority=100,
index_patterns=["tf-example-index-template-ds-*"])
example = elasticstack.get_elasticsearch_index_template_output(name=example_elasticsearch_index_template.name)
pulumi.export("template", example)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/elasticstack/elasticstack"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Minimal template so the data source reads a predictable shape you control. This mirrors the
// acceptance-test pattern (resource + data source). The examples PlanOnly harness does not
// apply changes; the data source then uses the provider's legacy "not found" behavior (name only)
// instead of depending on built-in cluster templates, whose API responses vary by version.
exampleElasticsearchIndexTemplate, err := elasticstack.NewElasticsearchIndexTemplate(ctx, "example", &elasticstack.ElasticsearchIndexTemplateArgs{
Name: pulumi.String("terraform-provider-elasticstack-example-index-template-ds"),
Priority: pulumi.Float64(100),
IndexPatterns: pulumi.StringArray{
pulumi.String("tf-example-index-template-ds-*"),
},
})
if err != nil {
return err
}
example := elasticstack.LookupElasticsearchIndexTemplateOutput(ctx, elasticstack.GetElasticsearchIndexTemplateOutputArgs{
Name: exampleElasticsearchIndexTemplate.Name,
}, nil)
ctx.Export("template", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Elasticstack = Pulumi.Elasticstack;
return await Deployment.RunAsync(() =>
{
// Minimal template so the data source reads a predictable shape you control. This mirrors the
// acceptance-test pattern (resource + data source). The examples PlanOnly harness does not
// apply changes; the data source then uses the provider's legacy "not found" behavior (name only)
// instead of depending on built-in cluster templates, whose API responses vary by version.
var exampleElasticsearchIndexTemplate = new Elasticstack.ElasticsearchIndexTemplate("example", new()
{
Name = "terraform-provider-elasticstack-example-index-template-ds",
Priority = 100,
IndexPatterns = new[]
{
"tf-example-index-template-ds-*",
},
});
var example = Elasticstack.GetElasticsearchIndexTemplate.Invoke(new()
{
Name = exampleElasticsearchIndexTemplate.Name,
});
return new Dictionary<string, object?>
{
["template"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.elasticstack.ElasticsearchIndexTemplate;
import com.pulumi.elasticstack.ElasticsearchIndexTemplateArgs;
import com.pulumi.elasticstack.ElasticstackFunctions;
import com.pulumi.elasticstack.inputs.GetElasticsearchIndexTemplateArgs;
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) {
// Minimal template so the data source reads a predictable shape you control. This mirrors the
// acceptance-test pattern (resource + data source). The examples PlanOnly harness does not
// apply changes; the data source then uses the provider's legacy "not found" behavior (name only)
// instead of depending on built-in cluster templates, whose API responses vary by version.
var exampleElasticsearchIndexTemplate = new ElasticsearchIndexTemplate("exampleElasticsearchIndexTemplate", ElasticsearchIndexTemplateArgs.builder()
.name("terraform-provider-elasticstack-example-index-template-ds")
.priority(100.0)
.indexPatterns("tf-example-index-template-ds-*")
.build());
final var example = ElasticstackFunctions.getElasticsearchIndexTemplate(GetElasticsearchIndexTemplateArgs.builder()
.name(exampleElasticsearchIndexTemplate.name())
.build());
ctx.export("template", example);
}
}
resources:
# Minimal template so the data source reads a predictable shape you control. This mirrors the
# acceptance-test pattern (resource + data source). The examples PlanOnly harness does not
# apply changes; the data source then uses the provider's legacy "not found" behavior (name only)
# instead of depending on built-in cluster templates, whose API responses vary by version.
exampleElasticsearchIndexTemplate:
type: elasticstack:ElasticsearchIndexTemplate
name: example
properties:
name: terraform-provider-elasticstack-example-index-template-ds
priority: 100
indexPatterns:
- tf-example-index-template-ds-*
variables:
example:
fn::invoke:
function: elasticstack:getElasticsearchIndexTemplate
arguments:
name: ${exampleElasticsearchIndexTemplate.name}
outputs:
template: ${example}
Example coming soon!
Using getElasticsearchIndexTemplate
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 getElasticsearchIndexTemplate(args: GetElasticsearchIndexTemplateArgs, opts?: InvokeOptions): Promise<GetElasticsearchIndexTemplateResult>
function getElasticsearchIndexTemplateOutput(args: GetElasticsearchIndexTemplateOutputArgs, opts?: InvokeOptions): Output<GetElasticsearchIndexTemplateResult>def get_elasticsearch_index_template(data_stream: Optional[GetElasticsearchIndexTemplateDataStream] = None,
elasticsearch_connections: Optional[Sequence[GetElasticsearchIndexTemplateElasticsearchConnection]] = None,
name: Optional[str] = None,
template: Optional[GetElasticsearchIndexTemplateTemplate] = None,
opts: Optional[InvokeOptions] = None) -> GetElasticsearchIndexTemplateResult
def get_elasticsearch_index_template_output(data_stream: pulumi.Input[Optional[GetElasticsearchIndexTemplateDataStreamArgs]] = None,
elasticsearch_connections: pulumi.Input[Optional[Sequence[pulumi.Input[GetElasticsearchIndexTemplateElasticsearchConnectionArgs]]]] = None,
name: pulumi.Input[Optional[str]] = None,
template: pulumi.Input[Optional[GetElasticsearchIndexTemplateTemplateArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetElasticsearchIndexTemplateResult]func LookupElasticsearchIndexTemplate(ctx *Context, args *LookupElasticsearchIndexTemplateArgs, opts ...InvokeOption) (*LookupElasticsearchIndexTemplateResult, error)
func LookupElasticsearchIndexTemplateOutput(ctx *Context, args *LookupElasticsearchIndexTemplateOutputArgs, opts ...InvokeOption) LookupElasticsearchIndexTemplateResultOutput> Note: This function is named LookupElasticsearchIndexTemplate in the Go SDK.
public static class GetElasticsearchIndexTemplate
{
public static Task<GetElasticsearchIndexTemplateResult> InvokeAsync(GetElasticsearchIndexTemplateArgs args, InvokeOptions? opts = null)
public static Output<GetElasticsearchIndexTemplateResult> Invoke(GetElasticsearchIndexTemplateInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetElasticsearchIndexTemplateResult> getElasticsearchIndexTemplate(GetElasticsearchIndexTemplateArgs args, InvokeOptions options)
public static Output<GetElasticsearchIndexTemplateResult> getElasticsearchIndexTemplate(GetElasticsearchIndexTemplateArgs args, InvokeOptions options)
fn::invoke:
function: elasticstack:index/getElasticsearchIndexTemplate:getElasticsearchIndexTemplate
arguments:
# arguments dictionarydata "elasticstack_getelasticsearchindextemplate" "name" {
# arguments
}The following arguments are supported:
- Name string
- The name of the index template.
- Data
Stream GetElasticsearch Index Template Data Stream - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- Elasticsearch
Connections List<GetElasticsearch Index Template Elasticsearch Connection> - Elasticsearch connection configuration block.
- Template
Get
Elasticsearch Index Template Template - Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
- Name string
- The name of the index template.
- Data
Stream GetElasticsearch Index Template Data Stream - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- Elasticsearch
Connections []GetElasticsearch Index Template Elasticsearch Connection - Elasticsearch connection configuration block.
- Template
Get
Elasticsearch Index Template Template - Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
- name string
- The name of the index template.
- data_
stream object - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- elasticsearch_
connections list(object) - Elasticsearch connection configuration block.
- template object
- Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
- name String
- The name of the index template.
- data
Stream GetElasticsearch Index Template Data Stream - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- elasticsearch
Connections List<GetElasticsearch Index Template Elasticsearch Connection> - Elasticsearch connection configuration block.
- template
Get
Elasticsearch Index Template Template - Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
- name string
- The name of the index template.
- data
Stream GetElasticsearch Index Template Data Stream - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- elasticsearch
Connections GetElasticsearch Index Template Elasticsearch Connection[] - Elasticsearch connection configuration block.
- template
Get
Elasticsearch Index Template Template - Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
- name str
- The name of the index template.
- data_
stream GetElasticsearch Index Template Data Stream - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- elasticsearch_
connections Sequence[GetElasticsearch Index Template Elasticsearch Connection] - Elasticsearch connection configuration block.
- template
Get
Elasticsearch Index Template Template - Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
- name String
- The name of the index template.
- data
Stream Property Map - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- elasticsearch
Connections List<Property Map> - Elasticsearch connection configuration block.
- template Property Map
- Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
getElasticsearchIndexTemplate Result
The following output properties are available:
- Composed
Ofs List<string> - An ordered list of component template names.
- Id string
- Internal identifier of the resource
- Ignore
Missing List<string>Component Templates - A list of component template names that are ignored if missing.
- Index
Patterns List<string> - Array of wildcard (*) expressions used to match the names of data streams and indices during creation.
- Metadata string
- Optional user metadata about the index template.
- Name string
- The name of the index template.
- Priority double
- Priority to determine index template precedence when a new data stream or index is created.
- Version double
- Version number used to manage index templates externally.
- Data
Stream GetElasticsearch Index Template Data Stream - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- Elasticsearch
Connections List<GetElasticsearch Index Template Elasticsearch Connection> - Elasticsearch connection configuration block.
- Template
Get
Elasticsearch Index Template Template - Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
- Composed
Ofs []string - An ordered list of component template names.
- Id string
- Internal identifier of the resource
- Ignore
Missing []stringComponent Templates - A list of component template names that are ignored if missing.
- Index
Patterns []string - Array of wildcard (*) expressions used to match the names of data streams and indices during creation.
- Metadata string
- Optional user metadata about the index template.
- Name string
- The name of the index template.
- Priority float64
- Priority to determine index template precedence when a new data stream or index is created.
- Version float64
- Version number used to manage index templates externally.
- Data
Stream GetElasticsearch Index Template Data Stream - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- Elasticsearch
Connections []GetElasticsearch Index Template Elasticsearch Connection - Elasticsearch connection configuration block.
- Template
Get
Elasticsearch Index Template Template - Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
- composed_
ofs list(string) - An ordered list of component template names.
- id string
- Internal identifier of the resource
- ignore_
missing_ list(string)component_ templates - A list of component template names that are ignored if missing.
- index_
patterns list(string) - Array of wildcard (*) expressions used to match the names of data streams and indices during creation.
- metadata string
- Optional user metadata about the index template.
- name string
- The name of the index template.
- priority number
- Priority to determine index template precedence when a new data stream or index is created.
- version number
- Version number used to manage index templates externally.
- data_
stream object - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- elasticsearch_
connections list(object) - Elasticsearch connection configuration block.
- template object
- Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
- composed
Ofs List<String> - An ordered list of component template names.
- id String
- Internal identifier of the resource
- ignore
Missing List<String>Component Templates - A list of component template names that are ignored if missing.
- index
Patterns List<String> - Array of wildcard (*) expressions used to match the names of data streams and indices during creation.
- metadata String
- Optional user metadata about the index template.
- name String
- The name of the index template.
- priority Double
- Priority to determine index template precedence when a new data stream or index is created.
- version Double
- Version number used to manage index templates externally.
- data
Stream GetElasticsearch Index Template Data Stream - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- elasticsearch
Connections List<GetElasticsearch Index Template Elasticsearch Connection> - Elasticsearch connection configuration block.
- template
Get
Elasticsearch Index Template Template - Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
- composed
Ofs string[] - An ordered list of component template names.
- id string
- Internal identifier of the resource
- ignore
Missing string[]Component Templates - A list of component template names that are ignored if missing.
- index
Patterns string[] - Array of wildcard (*) expressions used to match the names of data streams and indices during creation.
- metadata string
- Optional user metadata about the index template.
- name string
- The name of the index template.
- priority number
- Priority to determine index template precedence when a new data stream or index is created.
- version number
- Version number used to manage index templates externally.
- data
Stream GetElasticsearch Index Template Data Stream - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- elasticsearch
Connections GetElasticsearch Index Template Elasticsearch Connection[] - Elasticsearch connection configuration block.
- template
Get
Elasticsearch Index Template Template - Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
- composed_
ofs Sequence[str] - An ordered list of component template names.
- id str
- Internal identifier of the resource
- ignore_
missing_ Sequence[str]component_ templates - A list of component template names that are ignored if missing.
- index_
patterns Sequence[str] - Array of wildcard (*) expressions used to match the names of data streams and indices during creation.
- metadata str
- Optional user metadata about the index template.
- name str
- The name of the index template.
- priority float
- Priority to determine index template precedence when a new data stream or index is created.
- version float
- Version number used to manage index templates externally.
- data_
stream GetElasticsearch Index Template Data Stream - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- elasticsearch_
connections Sequence[GetElasticsearch Index Template Elasticsearch Connection] - Elasticsearch connection configuration block.
- template
Get
Elasticsearch Index Template Template - Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
- composed
Ofs List<String> - An ordered list of component template names.
- id String
- Internal identifier of the resource
- ignore
Missing List<String>Component Templates - A list of component template names that are ignored if missing.
- index
Patterns List<String> - Array of wildcard (*) expressions used to match the names of data streams and indices during creation.
- metadata String
- Optional user metadata about the index template.
- name String
- The name of the index template.
- priority Number
- Priority to determine index template precedence when a new data stream or index is created.
- version Number
- Version number used to manage index templates externally.
- data
Stream Property Map - If this object is included, the template is used to create data streams and their backing indices. Supports an empty object.
- elasticsearch
Connections List<Property Map> - Elasticsearch connection configuration block.
- template Property Map
- Template to be applied. It may optionally include an aliases, mappings, lifecycle, or settings configuration.
Supporting Types
GetElasticsearchIndexTemplateDataStream
- Allow
Custom boolRouting - If
true, the data stream supports custom routing. Defaults tofalse. Available only in 8.x - bool
- If true, the data stream is hidden.
- Allow
Custom boolRouting - If
true, the data stream supports custom routing. Defaults tofalse. Available only in 8.x - bool
- If true, the data stream is hidden.
- allow_
custom_ boolrouting - If
true, the data stream supports custom routing. Defaults tofalse. Available only in 8.x - bool
- If true, the data stream is hidden.
- allow
Custom BooleanRouting - If
true, the data stream supports custom routing. Defaults tofalse. Available only in 8.x - Boolean
- If true, the data stream is hidden.
- allow
Custom booleanRouting - If
true, the data stream supports custom routing. Defaults tofalse. Available only in 8.x - boolean
- If true, the data stream is hidden.
- allow_
custom_ boolrouting - If
true, the data stream supports custom routing. Defaults tofalse. Available only in 8.x - bool
- If true, the data stream is hidden.
- allow
Custom BooleanRouting - If
true, the data stream supports custom routing. Defaults tofalse. Available only in 8.x - Boolean
- If true, the data stream is hidden.
GetElasticsearchIndexTemplateElasticsearchConnection
- Api
Key string - API Key to use for authentication to Elasticsearch
- Bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- Ca
Data string - PEM-encoded custom Certificate Authority certificate
- Ca
File string - Path to a custom Certificate Authority certificate
- Cert
Data string - PEM encoded certificate for client auth
- Cert
File string - Path to a file containing the PEM encoded certificate for client auth
- Endpoints List<string>
- Es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- Headers Dictionary<string, string>
- A list of headers to be sent with each request to Elasticsearch.
- Insecure bool
- Disable TLS certificate validation
- Key
Data string - PEM encoded private key for client auth
- Key
File string - Path to a file containing the PEM encoded private key for client auth
- Password string
- Password to use for API authentication to Elasticsearch.
- Username string
- Username to use for API authentication to Elasticsearch.
- Api
Key string - API Key to use for authentication to Elasticsearch
- Bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- Ca
Data string - PEM-encoded custom Certificate Authority certificate
- Ca
File string - Path to a custom Certificate Authority certificate
- Cert
Data string - PEM encoded certificate for client auth
- Cert
File string - Path to a file containing the PEM encoded certificate for client auth
- Endpoints []string
- Es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- Headers map[string]string
- A list of headers to be sent with each request to Elasticsearch.
- Insecure bool
- Disable TLS certificate validation
- Key
Data string - PEM encoded private key for client auth
- Key
File string - Path to a file containing the PEM encoded private key for client auth
- Password string
- Password to use for API authentication to Elasticsearch.
- Username string
- Username to use for API authentication to Elasticsearch.
- api_
key string - API Key to use for authentication to Elasticsearch
- bearer_
token string - Bearer Token to use for authentication to Elasticsearch
- ca_
data string - PEM-encoded custom Certificate Authority certificate
- ca_
file string - Path to a custom Certificate Authority certificate
- cert_
data string - PEM encoded certificate for client auth
- cert_
file string - Path to a file containing the PEM encoded certificate for client auth
- endpoints list(string)
- es_
client_ stringauthentication - ES Client Authentication field to be used with the JWT token
- headers map(string)
- A list of headers to be sent with each request to Elasticsearch.
- insecure bool
- Disable TLS certificate validation
- key_
data string - PEM encoded private key for client auth
- key_
file string - Path to a file containing the PEM encoded private key for client auth
- password string
- Password to use for API authentication to Elasticsearch.
- username string
- Username to use for API authentication to Elasticsearch.
- api
Key String - API Key to use for authentication to Elasticsearch
- bearer
Token String - Bearer Token to use for authentication to Elasticsearch
- ca
Data String - PEM-encoded custom Certificate Authority certificate
- ca
File String - Path to a custom Certificate Authority certificate
- cert
Data String - PEM encoded certificate for client auth
- cert
File String - Path to a file containing the PEM encoded certificate for client auth
- endpoints List<String>
- es
Client StringAuthentication - ES Client Authentication field to be used with the JWT token
- headers Map<String,String>
- A list of headers to be sent with each request to Elasticsearch.
- insecure Boolean
- Disable TLS certificate validation
- key
Data String - PEM encoded private key for client auth
- key
File String - Path to a file containing the PEM encoded private key for client auth
- password String
- Password to use for API authentication to Elasticsearch.
- username String
- Username to use for API authentication to Elasticsearch.
- api
Key string - API Key to use for authentication to Elasticsearch
- bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- ca
Data string - PEM-encoded custom Certificate Authority certificate
- ca
File string - Path to a custom Certificate Authority certificate
- cert
Data string - PEM encoded certificate for client auth
- cert
File string - Path to a file containing the PEM encoded certificate for client auth
- endpoints string[]
- es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- headers {[key: string]: string}
- A list of headers to be sent with each request to Elasticsearch.
- insecure boolean
- Disable TLS certificate validation
- key
Data string - PEM encoded private key for client auth
- key
File string - Path to a file containing the PEM encoded private key for client auth
- password string
- Password to use for API authentication to Elasticsearch.
- username string
- Username to use for API authentication to Elasticsearch.
- api_
key str - API Key to use for authentication to Elasticsearch
- bearer_
token str - Bearer Token to use for authentication to Elasticsearch
- ca_
data str - PEM-encoded custom Certificate Authority certificate
- ca_
file str - Path to a custom Certificate Authority certificate
- cert_
data str - PEM encoded certificate for client auth
- cert_
file str - Path to a file containing the PEM encoded certificate for client auth
- endpoints Sequence[str]
- es_
client_ strauthentication - ES Client Authentication field to be used with the JWT token
- headers Mapping[str, str]
- A list of headers to be sent with each request to Elasticsearch.
- insecure bool
- Disable TLS certificate validation
- key_
data str - PEM encoded private key for client auth
- key_
file str - Path to a file containing the PEM encoded private key for client auth
- password str
- Password to use for API authentication to Elasticsearch.
- username str
- Username to use for API authentication to Elasticsearch.
- api
Key String - API Key to use for authentication to Elasticsearch
- bearer
Token String - Bearer Token to use for authentication to Elasticsearch
- ca
Data String - PEM-encoded custom Certificate Authority certificate
- ca
File String - Path to a custom Certificate Authority certificate
- cert
Data String - PEM encoded certificate for client auth
- cert
File String - Path to a file containing the PEM encoded certificate for client auth
- endpoints List<String>
- es
Client StringAuthentication - ES Client Authentication field to be used with the JWT token
- headers Map<String>
- A list of headers to be sent with each request to Elasticsearch.
- insecure Boolean
- Disable TLS certificate validation
- key
Data String - PEM encoded private key for client auth
- key
File String - Path to a file containing the PEM encoded private key for client auth
- password String
- Password to use for API authentication to Elasticsearch.
- username String
- Username to use for API authentication to Elasticsearch.
GetElasticsearchIndexTemplateTemplate
- Mappings string
- Mapping for fields in the index. Should be specified as a JSON object of field mappings. See the documentation (https://www.elastic.co/guide/en/elasticsearch/reference/current/explicit-mapping.html) for more details
- Settings string
- Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings
- Aliases
List<Get
Elasticsearch Index Template Template Alias> - Alias to add.
- Data
Stream GetOptions Elasticsearch Index Template Template Data Stream Options - Options for data streams created by this template. Available only for Elasticsearch 9.1.0 and above.
- Lifecycle
Get
Elasticsearch Index Template Template Lifecycle - Lifecycle of data stream. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/data-stream-lifecycle.html
- Mappings string
- Mapping for fields in the index. Should be specified as a JSON object of field mappings. See the documentation (https://www.elastic.co/guide/en/elasticsearch/reference/current/explicit-mapping.html) for more details
- Settings string
- Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings
- Aliases
[]Get
Elasticsearch Index Template Template Alias - Alias to add.
- Data
Stream GetOptions Elasticsearch Index Template Template Data Stream Options - Options for data streams created by this template. Available only for Elasticsearch 9.1.0 and above.
- Lifecycle
Get
Elasticsearch Index Template Template Lifecycle - Lifecycle of data stream. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/data-stream-lifecycle.html
- mappings string
- Mapping for fields in the index. Should be specified as a JSON object of field mappings. See the documentation (https://www.elastic.co/guide/en/elasticsearch/reference/current/explicit-mapping.html) for more details
- settings string
- Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings
- aliases list(object)
- Alias to add.
- data_
stream_ objectoptions - Options for data streams created by this template. Available only for Elasticsearch 9.1.0 and above.
- lifecycle object
- Lifecycle of data stream. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/data-stream-lifecycle.html
- mappings String
- Mapping for fields in the index. Should be specified as a JSON object of field mappings. See the documentation (https://www.elastic.co/guide/en/elasticsearch/reference/current/explicit-mapping.html) for more details
- settings String
- Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings
- aliases
List<Get
Elasticsearch Index Template Template Alias> - Alias to add.
- data
Stream GetOptions Elasticsearch Index Template Template Data Stream Options - Options for data streams created by this template. Available only for Elasticsearch 9.1.0 and above.
- lifecycle
Get
Elasticsearch Index Template Template Lifecycle - Lifecycle of data stream. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/data-stream-lifecycle.html
- mappings string
- Mapping for fields in the index. Should be specified as a JSON object of field mappings. See the documentation (https://www.elastic.co/guide/en/elasticsearch/reference/current/explicit-mapping.html) for more details
- settings string
- Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings
- aliases
Get
Elasticsearch Index Template Template Alias[] - Alias to add.
- data
Stream GetOptions Elasticsearch Index Template Template Data Stream Options - Options for data streams created by this template. Available only for Elasticsearch 9.1.0 and above.
- lifecycle
Get
Elasticsearch Index Template Template Lifecycle - Lifecycle of data stream. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/data-stream-lifecycle.html
- mappings str
- Mapping for fields in the index. Should be specified as a JSON object of field mappings. See the documentation (https://www.elastic.co/guide/en/elasticsearch/reference/current/explicit-mapping.html) for more details
- settings str
- Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings
- aliases
Sequence[Get
Elasticsearch Index Template Template Alias] - Alias to add.
- data_
stream_ Getoptions Elasticsearch Index Template Template Data Stream Options - Options for data streams created by this template. Available only for Elasticsearch 9.1.0 and above.
- lifecycle
Get
Elasticsearch Index Template Template Lifecycle - Lifecycle of data stream. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/data-stream-lifecycle.html
- mappings String
- Mapping for fields in the index. Should be specified as a JSON object of field mappings. See the documentation (https://www.elastic.co/guide/en/elasticsearch/reference/current/explicit-mapping.html) for more details
- settings String
- Configuration options for the index. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings
- aliases List<Property Map>
- Alias to add.
- data
Stream Property MapOptions - Options for data streams created by this template. Available only for Elasticsearch 9.1.0 and above.
- lifecycle Property Map
- Lifecycle of data stream. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/data-stream-lifecycle.html
GetElasticsearchIndexTemplateTemplateAlias
- Filter string
- Query used to limit documents the alias can access.
- Index
Routing string - Value used to route indexing operations to a specific shard. If specified, this overwrites the
routingvalue for indexing operations. - bool
- If true, the alias is hidden.
- Is
Write boolIndex - If true, the index is the write index for the alias.
- Name string
- The alias name.
- Routing string
- Value used to route indexing and search operations to a specific shard.
- Search
Routing string - Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.
- Filter string
- Query used to limit documents the alias can access.
- Index
Routing string - Value used to route indexing operations to a specific shard. If specified, this overwrites the
routingvalue for indexing operations. - bool
- If true, the alias is hidden.
- Is
Write boolIndex - If true, the index is the write index for the alias.
- Name string
- The alias name.
- Routing string
- Value used to route indexing and search operations to a specific shard.
- Search
Routing string - Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.
- filter string
- Query used to limit documents the alias can access.
- index_
routing string - Value used to route indexing operations to a specific shard. If specified, this overwrites the
routingvalue for indexing operations. - bool
- If true, the alias is hidden.
- is_
write_ boolindex - If true, the index is the write index for the alias.
- name string
- The alias name.
- routing string
- Value used to route indexing and search operations to a specific shard.
- search_
routing string - Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.
- filter String
- Query used to limit documents the alias can access.
- index
Routing String - Value used to route indexing operations to a specific shard. If specified, this overwrites the
routingvalue for indexing operations. - Boolean
- If true, the alias is hidden.
- is
Write BooleanIndex - If true, the index is the write index for the alias.
- name String
- The alias name.
- routing String
- Value used to route indexing and search operations to a specific shard.
- search
Routing String - Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.
- filter string
- Query used to limit documents the alias can access.
- index
Routing string - Value used to route indexing operations to a specific shard. If specified, this overwrites the
routingvalue for indexing operations. - boolean
- If true, the alias is hidden.
- is
Write booleanIndex - If true, the index is the write index for the alias.
- name string
- The alias name.
- routing string
- Value used to route indexing and search operations to a specific shard.
- search
Routing string - Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.
- filter str
- Query used to limit documents the alias can access.
- index_
routing str - Value used to route indexing operations to a specific shard. If specified, this overwrites the
routingvalue for indexing operations. - bool
- If true, the alias is hidden.
- is_
write_ boolindex - If true, the index is the write index for the alias.
- name str
- The alias name.
- routing str
- Value used to route indexing and search operations to a specific shard.
- search_
routing str - Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.
- filter String
- Query used to limit documents the alias can access.
- index
Routing String - Value used to route indexing operations to a specific shard. If specified, this overwrites the
routingvalue for indexing operations. - Boolean
- If true, the alias is hidden.
- is
Write BooleanIndex - If true, the index is the write index for the alias.
- name String
- The alias name.
- routing String
- Value used to route indexing and search operations to a specific shard.
- search
Routing String - Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.
GetElasticsearchIndexTemplateTemplateDataStreamOptions
- Failure
Store GetElasticsearch Index Template Template Data Stream Options Failure Store - Failure store configuration.
- Failure
Store GetElasticsearch Index Template Template Data Stream Options Failure Store - Failure store configuration.
- failure_
store object - Failure store configuration.
- failure
Store GetElasticsearch Index Template Template Data Stream Options Failure Store - Failure store configuration.
- failure
Store GetElasticsearch Index Template Template Data Stream Options Failure Store - Failure store configuration.
- failure_
store GetElasticsearch Index Template Template Data Stream Options Failure Store - Failure store configuration.
- failure
Store Property Map - Failure store configuration.
GetElasticsearchIndexTemplateTemplateDataStreamOptionsFailureStore
- Enabled bool
- If true, document redirection to the failure store is enabled for new matching data streams.
- Lifecycle
Get
Elasticsearch Index Template Template Data Stream Options Failure Store Lifecycle - Lifecycle configuration for the failure store.
- Enabled bool
- If true, document redirection to the failure store is enabled for new matching data streams.
- Lifecycle
Get
Elasticsearch Index Template Template Data Stream Options Failure Store Lifecycle - Lifecycle configuration for the failure store.
- enabled Boolean
- If true, document redirection to the failure store is enabled for new matching data streams.
- lifecycle
Get
Elasticsearch Index Template Template Data Stream Options Failure Store Lifecycle - Lifecycle configuration for the failure store.
- enabled boolean
- If true, document redirection to the failure store is enabled for new matching data streams.
- lifecycle
Get
Elasticsearch Index Template Template Data Stream Options Failure Store Lifecycle - Lifecycle configuration for the failure store.
- enabled bool
- If true, document redirection to the failure store is enabled for new matching data streams.
- lifecycle
Get
Elasticsearch Index Template Template Data Stream Options Failure Store Lifecycle - Lifecycle configuration for the failure store.
- enabled Boolean
- If true, document redirection to the failure store is enabled for new matching data streams.
- lifecycle Property Map
- Lifecycle configuration for the failure store.
GetElasticsearchIndexTemplateTemplateDataStreamOptionsFailureStoreLifecycle
- Data
Retention string - The retention period for failure store documents (e.g. "30d").
- Data
Retention string - The retention period for failure store documents (e.g. "30d").
- data_
retention string - The retention period for failure store documents (e.g. "30d").
- data
Retention String - The retention period for failure store documents (e.g. "30d").
- data
Retention string - The retention period for failure store documents (e.g. "30d").
- data_
retention str - The retention period for failure store documents (e.g. "30d").
- data
Retention String - The retention period for failure store documents (e.g. "30d").
GetElasticsearchIndexTemplateTemplateLifecycle
- Data
Retention string - The retention period of the data indexed in this data stream.
- Data
Retention string - The retention period of the data indexed in this data stream.
- data_
retention string - The retention period of the data indexed in this data stream.
- data
Retention String - The retention period of the data indexed in this data stream.
- data
Retention string - The retention period of the data indexed in this data stream.
- data_
retention str - The retention period of the data indexed in this data stream.
- data
Retention String - The retention period of the data indexed in this data stream.
Package Details
- Repository
- elasticstack elastic/terraform-provider-elasticstack
- License
- Notes
- This Pulumi package is based on the
elasticstackTerraform Provider.
Viewing docs for elasticstack 0.15.0
published on Thursday, May 14, 2026 by elastic
published on Thursday, May 14, 2026 by elastic
