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
Gets information about the Elastic cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as elasticstack from "@pulumi/elasticstack";
const clusterInfo = elasticstack.getElasticsearchInfo({});
import pulumi
import pulumi_elasticstack as elasticstack
cluster_info = elasticstack.get_elasticsearch_info()
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 {
_, err := elasticstack.GetElasticsearchInfo(ctx, &elasticstack.GetElasticsearchInfoArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Elasticstack = Pulumi.Elasticstack;
return await Deployment.RunAsync(() =>
{
var clusterInfo = Elasticstack.GetElasticsearchInfo.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.elasticstack.ElasticstackFunctions;
import com.pulumi.elasticstack.inputs.GetElasticsearchInfoArgs;
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 clusterInfo = ElasticstackFunctions.getElasticsearchInfo(GetElasticsearchInfoArgs.builder()
.build());
}
}
variables:
clusterInfo:
fn::invoke:
function: elasticstack:getElasticsearchInfo
arguments: {}
Example coming soon!
Using getElasticsearchInfo
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 getElasticsearchInfo(args: GetElasticsearchInfoArgs, opts?: InvokeOptions): Promise<GetElasticsearchInfoResult>
function getElasticsearchInfoOutput(args: GetElasticsearchInfoOutputArgs, opts?: InvokeOptions): Output<GetElasticsearchInfoResult>def get_elasticsearch_info(elasticsearch_connections: Optional[Sequence[GetElasticsearchInfoElasticsearchConnection]] = None,
opts: Optional[InvokeOptions] = None) -> GetElasticsearchInfoResult
def get_elasticsearch_info_output(elasticsearch_connections: pulumi.Input[Optional[Sequence[pulumi.Input[GetElasticsearchInfoElasticsearchConnectionArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetElasticsearchInfoResult]func GetElasticsearchInfo(ctx *Context, args *GetElasticsearchInfoArgs, opts ...InvokeOption) (*GetElasticsearchInfoResult, error)
func GetElasticsearchInfoOutput(ctx *Context, args *GetElasticsearchInfoOutputArgs, opts ...InvokeOption) GetElasticsearchInfoResultOutput> Note: This function is named GetElasticsearchInfo in the Go SDK.
public static class GetElasticsearchInfo
{
public static Task<GetElasticsearchInfoResult> InvokeAsync(GetElasticsearchInfoArgs args, InvokeOptions? opts = null)
public static Output<GetElasticsearchInfoResult> Invoke(GetElasticsearchInfoInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetElasticsearchInfoResult> getElasticsearchInfo(GetElasticsearchInfoArgs args, InvokeOptions options)
public static Output<GetElasticsearchInfoResult> getElasticsearchInfo(GetElasticsearchInfoArgs args, InvokeOptions options)
fn::invoke:
function: elasticstack:index/getElasticsearchInfo:getElasticsearchInfo
arguments:
# arguments dictionarydata "elasticstack_getelasticsearchinfo" "name" {
# arguments
}The following arguments are supported:
- Elasticsearch
Connections List<GetElasticsearch Info Elasticsearch Connection> - Elasticsearch connection configuration block.
- Elasticsearch
Connections []GetElasticsearch Info Elasticsearch Connection - Elasticsearch connection configuration block.
- elasticsearch_
connections list(object) - Elasticsearch connection configuration block.
- elasticsearch
Connections List<GetElasticsearch Info Elasticsearch Connection> - Elasticsearch connection configuration block.
- elasticsearch
Connections GetElasticsearch Info Elasticsearch Connection[] - Elasticsearch connection configuration block.
- elasticsearch_
connections Sequence[GetElasticsearch Info Elasticsearch Connection] - Elasticsearch connection configuration block.
- elasticsearch
Connections List<Property Map> - Elasticsearch connection configuration block.
getElasticsearchInfo Result
The following output properties are available:
- Cluster
Name string - Name of the cluster, based on the
cluster.namesetting. - Cluster
Uuid string - Unique identifier for the cluster.
- Id string
- Internal identifier of the resource.
- Name string
- Name of the node.
- Tagline string
- Elasticsearch tag line.
- Versions
List<Get
Elasticsearch Info Version> - Contains version information for the Elasticsearch cluster.
- Elasticsearch
Connections List<GetElasticsearch Info Elasticsearch Connection> - Elasticsearch connection configuration block.
- Cluster
Name string - Name of the cluster, based on the
cluster.namesetting. - Cluster
Uuid string - Unique identifier for the cluster.
- Id string
- Internal identifier of the resource.
- Name string
- Name of the node.
- Tagline string
- Elasticsearch tag line.
- Versions
[]Get
Elasticsearch Info Version - Contains version information for the Elasticsearch cluster.
- Elasticsearch
Connections []GetElasticsearch Info Elasticsearch Connection - Elasticsearch connection configuration block.
- cluster_
name string - Name of the cluster, based on the
cluster.namesetting. - cluster_
uuid string - Unique identifier for the cluster.
- id string
- Internal identifier of the resource.
- name string
- Name of the node.
- tagline string
- Elasticsearch tag line.
- versions list(object)
- Contains version information for the Elasticsearch cluster.
- elasticsearch_
connections list(object) - Elasticsearch connection configuration block.
- cluster
Name String - Name of the cluster, based on the
cluster.namesetting. - cluster
Uuid String - Unique identifier for the cluster.
- id String
- Internal identifier of the resource.
- name String
- Name of the node.
- tagline String
- Elasticsearch tag line.
- versions
List<Get
Elasticsearch Info Version> - Contains version information for the Elasticsearch cluster.
- elasticsearch
Connections List<GetElasticsearch Info Elasticsearch Connection> - Elasticsearch connection configuration block.
- cluster
Name string - Name of the cluster, based on the
cluster.namesetting. - cluster
Uuid string - Unique identifier for the cluster.
- id string
- Internal identifier of the resource.
- name string
- Name of the node.
- tagline string
- Elasticsearch tag line.
- versions
Get
Elasticsearch Info Version[] - Contains version information for the Elasticsearch cluster.
- elasticsearch
Connections GetElasticsearch Info Elasticsearch Connection[] - Elasticsearch connection configuration block.
- cluster_
name str - Name of the cluster, based on the
cluster.namesetting. - cluster_
uuid str - Unique identifier for the cluster.
- id str
- Internal identifier of the resource.
- name str
- Name of the node.
- tagline str
- Elasticsearch tag line.
- versions
Sequence[Get
Elasticsearch Info Version] - Contains version information for the Elasticsearch cluster.
- elasticsearch_
connections Sequence[GetElasticsearch Info Elasticsearch Connection] - Elasticsearch connection configuration block.
- cluster
Name String - Name of the cluster, based on the
cluster.namesetting. - cluster
Uuid String - Unique identifier for the cluster.
- id String
- Internal identifier of the resource.
- name String
- Name of the node.
- tagline String
- Elasticsearch tag line.
- versions List<Property Map>
- Contains version information for the Elasticsearch cluster.
- elasticsearch
Connections List<Property Map> - Elasticsearch connection configuration block.
Supporting Types
GetElasticsearchInfoElasticsearchConnection
- 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.
GetElasticsearchInfoVersion
- Build
Date string - Build date.
- Build
Flavor string - Build Flavor.
- Build
Hash string - Short hash of the last git commit in this release.
- Build
Snapshot bool - Build Snapshot.
- Build
Type string - Build Type.
- Lucene
Version string - Lucene Version.
- Minimum
Index stringCompatibility Version - Minimum index compatibility version.
- Minimum
Wire stringCompatibility Version - Minimum wire compatibility version.
- Number string
- Elasticsearch version number.
- Build
Date string - Build date.
- Build
Flavor string - Build Flavor.
- Build
Hash string - Short hash of the last git commit in this release.
- Build
Snapshot bool - Build Snapshot.
- Build
Type string - Build Type.
- Lucene
Version string - Lucene Version.
- Minimum
Index stringCompatibility Version - Minimum index compatibility version.
- Minimum
Wire stringCompatibility Version - Minimum wire compatibility version.
- Number string
- Elasticsearch version number.
- build_
date string - Build date.
- build_
flavor string - Build Flavor.
- build_
hash string - Short hash of the last git commit in this release.
- build_
snapshot bool - Build Snapshot.
- build_
type string - Build Type.
- lucene_
version string - Lucene Version.
- minimum_
index_ stringcompatibility_ version - Minimum index compatibility version.
- minimum_
wire_ stringcompatibility_ version - Minimum wire compatibility version.
- number string
- Elasticsearch version number.
- build
Date String - Build date.
- build
Flavor String - Build Flavor.
- build
Hash String - Short hash of the last git commit in this release.
- build
Snapshot Boolean - Build Snapshot.
- build
Type String - Build Type.
- lucene
Version String - Lucene Version.
- minimum
Index StringCompatibility Version - Minimum index compatibility version.
- minimum
Wire StringCompatibility Version - Minimum wire compatibility version.
- number String
- Elasticsearch version number.
- build
Date string - Build date.
- build
Flavor string - Build Flavor.
- build
Hash string - Short hash of the last git commit in this release.
- build
Snapshot boolean - Build Snapshot.
- build
Type string - Build Type.
- lucene
Version string - Lucene Version.
- minimum
Index stringCompatibility Version - Minimum index compatibility version.
- minimum
Wire stringCompatibility Version - Minimum wire compatibility version.
- number string
- Elasticsearch version number.
- build_
date str - Build date.
- build_
flavor str - Build Flavor.
- build_
hash str - Short hash of the last git commit in this release.
- build_
snapshot bool - Build Snapshot.
- build_
type str - Build Type.
- lucene_
version str - Lucene Version.
- minimum_
index_ strcompatibility_ version - Minimum index compatibility version.
- minimum_
wire_ strcompatibility_ version - Minimum wire compatibility version.
- number str
- Elasticsearch version number.
- build
Date String - Build date.
- build
Flavor String - Build Flavor.
- build
Hash String - Short hash of the last git commit in this release.
- build
Snapshot Boolean - Build Snapshot.
- build
Type String - Build Type.
- lucene
Version String - Lucene Version.
- minimum
Index StringCompatibility Version - Minimum index compatibility version.
- minimum
Wire StringCompatibility Version - Minimum wire compatibility version.
- number String
- Elasticsearch version number.
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
