getElasticsearch

Use this data source to access information about an existing Elasticsearch resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.elasticcloud.ElasticcloudFunctions;
import com.pulumi.azure.elasticcloud.inputs.GetElasticsearchArgs;
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 example = ElasticcloudFunctions.getElasticsearch(GetElasticsearchArgs.builder()
.name("my-elastic-search")
.resourceGroupName("example-resources")
.build());
ctx.export("elasticsearchEndpoint", example.applyValue(getElasticsearchResult -> getElasticsearchResult.elasticsearchServiceUrl()));
ctx.export("kibanaEndpoint", example.applyValue(getElasticsearchResult -> getElasticsearchResult.kibanaServiceUrl()));
}
}

Return

A collection of values returned by getElasticsearch.

Parameters

argument

A collection of arguments for invoking getElasticsearch.


suspend fun getElasticsearch(logs: List<GetElasticsearchLog>? = null, name: String, resourceGroupName: String): GetElasticsearchResult

Return

A collection of values returned by getElasticsearch.

See also

Parameters

logs

A logs block as defined below.

name

The name of the Elasticsearch resource.

resourceGroupName

The name of the resource group in which the Elasticsearch exists.


Return

A collection of values returned by getElasticsearch.

See also

Parameters

argument

Builder for com.pulumi.azure.elasticcloud.kotlin.inputs.GetElasticsearchPlainArgs.