use of org.graylog.shaded.elasticsearch7.org.elasticsearch.client.indices.IndexTemplateMetadata in project graylog2-server by Graylog2.
the class ClientES7 method existingTemplates.
private String[] existingTemplates() {
final GetIndexTemplatesRequest getIndexTemplatesRequest = new GetIndexTemplatesRequest();
final GetIndexTemplatesResponse result = client.execute((c, requestOptions) -> c.indices().getIndexTemplate(getIndexTemplatesRequest, requestOptions));
return result.getIndexTemplates().stream().map(IndexTemplateMetadata::name).toArray(String[]::new);
}
Aggregations