Class ElasticsearchCatClient
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchCatClient
(ElasticsearchTransport transport) ElasticsearchCatClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionaliases()
Retrieves the cluster’s index aliases, including filter and routing information.aliases
(AliasesRequest request) Retrieves the cluster’s index aliases, including filter and routing information.final AliasesResponse
Retrieves the cluster’s index aliases, including filter and routing information.Provides a snapshot of the number of shards allocated to each data node and their disk space.allocation
(AllocationRequest request) Provides a snapshot of the number of shards allocated to each data node and their disk space.final AllocationResponse
Provides a snapshot of the number of shards allocated to each data node and their disk space.Returns information about component templates in a cluster.Returns information about component templates in a cluster.componentTemplates
(Function<ComponentTemplatesRequest.Builder, ObjectBuilder<ComponentTemplatesRequest>> fn) Returns information about component templates in a cluster.count()
Provides quick access to a document count for a data stream, an index, or an entire cluster.count
(CountRequest request) Provides quick access to a document count for a data stream, an index, or an entire cluster.final CountResponse
Provides quick access to a document count for a data stream, an index, or an entire cluster.Returns the amount of heap memory currently used by the field data cache on every data node in the cluster.fielddata
(FielddataRequest request) Returns the amount of heap memory currently used by the field data cache on every data node in the cluster.final FielddataResponse
Returns the amount of heap memory currently used by the field data cache on every data node in the cluster.health()
Returns the health status of a cluster, similar to the cluster health API.health
(HealthRequest request) Returns the health status of a cluster, similar to the cluster health API.final HealthResponse
Returns the health status of a cluster, similar to the cluster health API.help()
Returns help for the Cat APIs.indices()
Returns high-level information about indices in a cluster, including backing indices for data streams.indices
(IndicesRequest request) Returns high-level information about indices in a cluster, including backing indices for data streams.final IndicesResponse
Returns high-level information about indices in a cluster, including backing indices for data streams.master()
Returns information about the master node, including the ID, bound IP address, and name.Returns configuration and usage information about datafeeds.mlDatafeeds
(MlDatafeedsRequest request) Returns configuration and usage information about datafeeds.final MlDatafeedsResponse
Returns configuration and usage information about datafeeds.Returns configuration and usage information about data frame analytics jobs.Returns configuration and usage information about data frame analytics jobs.mlDataFrameAnalytics
(Function<MlDataFrameAnalyticsRequest.Builder, ObjectBuilder<MlDataFrameAnalyticsRequest>> fn) Returns configuration and usage information about data frame analytics jobs.mlJobs()
Returns configuration and usage information for anomaly detection jobs.mlJobs
(MlJobsRequest request) Returns configuration and usage information for anomaly detection jobs.final MlJobsResponse
Returns configuration and usage information for anomaly detection jobs.Returns configuration and usage information about inference trained models.mlTrainedModels
(MlTrainedModelsRequest request) Returns configuration and usage information about inference trained models.final MlTrainedModelsResponse
Returns configuration and usage information about inference trained models.Returns information about custom node attributes.nodes()
Returns information about the nodes in a cluster.nodes
(NodesRequest request) Returns information about the nodes in a cluster.final NodesResponse
Returns information about the nodes in a cluster.Returns cluster-level changes that have not yet been executed.plugins()
Returns a list of plugins running on each node of a cluster.recovery()
Returns information about ongoing and completed shard recoveries.recovery
(RecoveryRequest request) Returns information about ongoing and completed shard recoveries.final RecoveryResponse
Returns information about ongoing and completed shard recoveries.Returns the snapshot repositories for a cluster.segments()
Returns low-level information about the Lucene segments in index shards.segments
(SegmentsRequest request) Returns low-level information about the Lucene segments in index shards.final SegmentsResponse
Returns low-level information about the Lucene segments in index shards.shards()
Returns information about the shards in a cluster.shards
(ShardsRequest request) Returns information about the shards in a cluster.final ShardsResponse
Returns information about the shards in a cluster.Returns information about the snapshots stored in one or more repositories.snapshots
(SnapshotsRequest request) Returns information about the snapshots stored in one or more repositories.final SnapshotsResponse
Returns information about the snapshots stored in one or more repositories.tasks()
Returns information about tasks currently executing in the cluster.tasks
(TasksRequest request) Returns information about tasks currently executing in the cluster.final TasksResponse
Returns information about tasks currently executing in the cluster.Returns information about index templates in a cluster.templates
(TemplatesRequest request) Returns information about index templates in a cluster.final TemplatesResponse
Returns information about index templates in a cluster.Returns thread pool statistics for each node in a cluster.threadPool
(ThreadPoolRequest request) Returns thread pool statistics for each node in a cluster.final ThreadPoolResponse
Returns thread pool statistics for each node in a cluster.Returns configuration and usage information about transforms.transforms
(TransformsRequest request) Returns configuration and usage information about transforms.final TransformsResponse
Returns configuration and usage information about transforms.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchCatClient
-
ElasticsearchCatClient
public ElasticsearchCatClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchCatClient>
-
aliases
Retrieves the cluster’s index aliases, including filter and routing information. The API does not return data stream aliases. IMPORTANT: cat APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.- Throws:
IOException
ElasticsearchException
- See Also:
-
aliases
public final AliasesResponse aliases(Function<AliasesRequest.Builder, ObjectBuilder<AliasesRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves the cluster’s index aliases, including filter and routing information. The API does not return data stream aliases. IMPORTANT: cat APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.- Parameters:
fn
- a function that initializes a builder to create theAliasesRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
aliases
Retrieves the cluster’s index aliases, including filter and routing information. The API does not return data stream aliases. IMPORTANT: cat APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.- Throws:
IOException
ElasticsearchException
- See Also:
-
allocation
public AllocationResponse allocation(AllocationRequest request) throws IOException, ElasticsearchException Provides a snapshot of the number of shards allocated to each data node and their disk space. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.- Throws:
IOException
ElasticsearchException
- See Also:
-
allocation
public final AllocationResponse allocation(Function<AllocationRequest.Builder, ObjectBuilder<AllocationRequest>> fn) throws IOException, ElasticsearchExceptionProvides a snapshot of the number of shards allocated to each data node and their disk space. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.- Parameters:
fn
- a function that initializes a builder to create theAllocationRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
allocation
Provides a snapshot of the number of shards allocated to each data node and their disk space. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.- Throws:
IOException
ElasticsearchException
- See Also:
-
componentTemplates
public ComponentTemplatesResponse componentTemplates(ComponentTemplatesRequest request) throws IOException, ElasticsearchException Returns information about component templates in a cluster. Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get component template API.- Throws:
IOException
ElasticsearchException
- See Also:
-
componentTemplates
public final ComponentTemplatesResponse componentTemplates(Function<ComponentTemplatesRequest.Builder, ObjectBuilder<ComponentTemplatesRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about component templates in a cluster. Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get component template API.- Parameters:
fn
- a function that initializes a builder to create theComponentTemplatesRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
componentTemplates
Returns information about component templates in a cluster. Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get component template API.- Throws:
IOException
ElasticsearchException
- See Also:
-
count
Provides quick access to a document count for a data stream, an index, or an entire cluster. NOTE: The document count only includes live documents, not deleted documents which have not yet been removed by the merge process. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the count API.- Throws:
IOException
ElasticsearchException
- See Also:
-
count
public final CountResponse count(Function<CountRequest.Builder, ObjectBuilder<CountRequest>> fn) throws IOException, ElasticsearchExceptionProvides quick access to a document count for a data stream, an index, or an entire cluster. NOTE: The document count only includes live documents, not deleted documents which have not yet been removed by the merge process. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the count API.- Parameters:
fn
- a function that initializes a builder to create theCountRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
count
Provides quick access to a document count for a data stream, an index, or an entire cluster. NOTE: The document count only includes live documents, not deleted documents which have not yet been removed by the merge process. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the count API.- Throws:
IOException
ElasticsearchException
- See Also:
-
fielddata
public FielddataResponse fielddata(FielddataRequest request) throws IOException, ElasticsearchException Returns the amount of heap memory currently used by the field data cache on every data node in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes stats API.- Throws:
IOException
ElasticsearchException
- See Also:
-
fielddata
public final FielddataResponse fielddata(Function<FielddataRequest.Builder, ObjectBuilder<FielddataRequest>> fn) throws IOException, ElasticsearchExceptionReturns the amount of heap memory currently used by the field data cache on every data node in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes stats API.- Parameters:
fn
- a function that initializes a builder to create theFielddataRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
fielddata
Returns the amount of heap memory currently used by the field data cache on every data node in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes stats API.- Throws:
IOException
ElasticsearchException
- See Also:
-
health
Returns the health status of a cluster, similar to the cluster health API. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the cluster health API. This API is often used to check malfunctioning clusters. To help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats:HH:MM:SS
, which is human-readable but includes no date information;Unix epoch time
, which is machine-sortable and includes date information. The latter format is useful for cluster recoveries that take multiple days. You can use the cat health API to verify cluster health across multiple nodes. You also can use the API to track the recovery of a large cluster over a longer period of time.- Throws:
IOException
ElasticsearchException
- See Also:
-
health
public final HealthResponse health(Function<HealthRequest.Builder, ObjectBuilder<HealthRequest>> fn) throws IOException, ElasticsearchExceptionReturns the health status of a cluster, similar to the cluster health API. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the cluster health API. This API is often used to check malfunctioning clusters. To help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats:HH:MM:SS
, which is human-readable but includes no date information;Unix epoch time
, which is machine-sortable and includes date information. The latter format is useful for cluster recoveries that take multiple days. You can use the cat health API to verify cluster health across multiple nodes. You also can use the API to track the recovery of a large cluster over a longer period of time.- Parameters:
fn
- a function that initializes a builder to create theHealthRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
health
Returns the health status of a cluster, similar to the cluster health API. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the cluster health API. This API is often used to check malfunctioning clusters. To help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats:HH:MM:SS
, which is human-readable but includes no date information;Unix epoch time
, which is machine-sortable and includes date information. The latter format is useful for cluster recoveries that take multiple days. You can use the cat health API to verify cluster health across multiple nodes. You also can use the API to track the recovery of a large cluster over a longer period of time.- Throws:
IOException
ElasticsearchException
- See Also:
-
help
Returns help for the Cat APIs.- Throws:
IOException
ElasticsearchException
- See Also:
-
indices
Returns high-level information about indices in a cluster, including backing indices for data streams. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index API. Use the cat indices API to get the following information for each index in a cluster: shard count; document count; deleted document count; primary store size; total store size of all shards, including shard replicas. These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents. To get an accurate count of Elasticsearch documents, use the cat count or count APIs.- Throws:
IOException
ElasticsearchException
- See Also:
-
indices
public final IndicesResponse indices(Function<IndicesRequest.Builder, ObjectBuilder<IndicesRequest>> fn) throws IOException, ElasticsearchExceptionReturns high-level information about indices in a cluster, including backing indices for data streams. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index API. Use the cat indices API to get the following information for each index in a cluster: shard count; document count; deleted document count; primary store size; total store size of all shards, including shard replicas. These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents. To get an accurate count of Elasticsearch documents, use the cat count or count APIs.- Parameters:
fn
- a function that initializes a builder to create theIndicesRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
indices
Returns high-level information about indices in a cluster, including backing indices for data streams. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index API. Use the cat indices API to get the following information for each index in a cluster: shard count; document count; deleted document count; primary store size; total store size of all shards, including shard replicas. These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents. To get an accurate count of Elasticsearch documents, use the cat count or count APIs.- Throws:
IOException
ElasticsearchException
- See Also:
-
master
Returns information about the master node, including the ID, bound IP address, and name. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.- Throws:
IOException
ElasticsearchException
- See Also:
-
mlDataFrameAnalytics
public MlDataFrameAnalyticsResponse mlDataFrameAnalytics(MlDataFrameAnalyticsRequest request) throws IOException, ElasticsearchException Returns configuration and usage information about data frame analytics jobs.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get data frame analytics jobs statistics API.
- Throws:
IOException
ElasticsearchException
- See Also:
-
mlDataFrameAnalytics
public final MlDataFrameAnalyticsResponse mlDataFrameAnalytics(Function<MlDataFrameAnalyticsRequest.Builder, ObjectBuilder<MlDataFrameAnalyticsRequest>> fn) throws IOException, ElasticsearchExceptionReturns configuration and usage information about data frame analytics jobs.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get data frame analytics jobs statistics API.
- Parameters:
fn
- a function that initializes a builder to create theMlDataFrameAnalyticsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
mlDataFrameAnalytics
public MlDataFrameAnalyticsResponse mlDataFrameAnalytics() throws IOException, ElasticsearchExceptionReturns configuration and usage information about data frame analytics jobs.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get data frame analytics jobs statistics API.
- Throws:
IOException
ElasticsearchException
- See Also:
-
mlDatafeeds
public MlDatafeedsResponse mlDatafeeds(MlDatafeedsRequest request) throws IOException, ElasticsearchException Returns configuration and usage information about datafeeds. This API returns a maximum of 10,000 datafeeds. If the Elasticsearch security features are enabled, you must havemonitor_ml
,monitor
,manage_ml
, ormanage
cluster privileges to use this API.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get datafeed statistics API.
- Throws:
IOException
ElasticsearchException
- See Also:
-
mlDatafeeds
public final MlDatafeedsResponse mlDatafeeds(Function<MlDatafeedsRequest.Builder, ObjectBuilder<MlDatafeedsRequest>> fn) throws IOException, ElasticsearchExceptionReturns configuration and usage information about datafeeds. This API returns a maximum of 10,000 datafeeds. If the Elasticsearch security features are enabled, you must havemonitor_ml
,monitor
,manage_ml
, ormanage
cluster privileges to use this API.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get datafeed statistics API.
- Parameters:
fn
- a function that initializes a builder to create theMlDatafeedsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
mlDatafeeds
Returns configuration and usage information about datafeeds. This API returns a maximum of 10,000 datafeeds. If the Elasticsearch security features are enabled, you must havemonitor_ml
,monitor
,manage_ml
, ormanage
cluster privileges to use this API.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get datafeed statistics API.
- Throws:
IOException
ElasticsearchException
- See Also:
-
mlJobs
Returns configuration and usage information for anomaly detection jobs. This API returns a maximum of 10,000 jobs. If the Elasticsearch security features are enabled, you must havemonitor_ml
,monitor
,manage_ml
, ormanage
cluster privileges to use this API.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get anomaly detection job statistics API.
- Throws:
IOException
ElasticsearchException
- See Also:
-
mlJobs
public final MlJobsResponse mlJobs(Function<MlJobsRequest.Builder, ObjectBuilder<MlJobsRequest>> fn) throws IOException, ElasticsearchExceptionReturns configuration and usage information for anomaly detection jobs. This API returns a maximum of 10,000 jobs. If the Elasticsearch security features are enabled, you must havemonitor_ml
,monitor
,manage_ml
, ormanage
cluster privileges to use this API.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get anomaly detection job statistics API.
- Parameters:
fn
- a function that initializes a builder to create theMlJobsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
mlJobs
Returns configuration and usage information for anomaly detection jobs. This API returns a maximum of 10,000 jobs. If the Elasticsearch security features are enabled, you must havemonitor_ml
,monitor
,manage_ml
, ormanage
cluster privileges to use this API.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get anomaly detection job statistics API.
- Throws:
IOException
ElasticsearchException
- See Also:
-
mlTrainedModels
public MlTrainedModelsResponse mlTrainedModels(MlTrainedModelsRequest request) throws IOException, ElasticsearchException Returns configuration and usage information about inference trained models.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get trained models statistics API.
- Throws:
IOException
ElasticsearchException
- See Also:
-
mlTrainedModels
public final MlTrainedModelsResponse mlTrainedModels(Function<MlTrainedModelsRequest.Builder, ObjectBuilder<MlTrainedModelsRequest>> fn) throws IOException, ElasticsearchExceptionReturns configuration and usage information about inference trained models.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get trained models statistics API.
- Parameters:
fn
- a function that initializes a builder to create theMlTrainedModelsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
mlTrainedModels
Returns configuration and usage information about inference trained models.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get trained models statistics API.
- Throws:
IOException
ElasticsearchException
- See Also:
-
nodeattrs
Returns information about custom node attributes. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.- Throws:
IOException
ElasticsearchException
- See Also:
-
nodes
Returns information about the nodes in a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.- Throws:
IOException
ElasticsearchException
- See Also:
-
nodes
public final NodesResponse nodes(Function<NodesRequest.Builder, ObjectBuilder<NodesRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about the nodes in a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.- Parameters:
fn
- a function that initializes a builder to create theNodesRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
nodes
Returns information about the nodes in a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.- Throws:
IOException
ElasticsearchException
- See Also:
-
pendingTasks
Returns cluster-level changes that have not yet been executed. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API.- Throws:
IOException
ElasticsearchException
- See Also:
-
plugins
Returns a list of plugins running on each node of a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.- Throws:
IOException
ElasticsearchException
- See Also:
-
recovery
public RecoveryResponse recovery(RecoveryRequest request) throws IOException, ElasticsearchException Returns information about ongoing and completed shard recoveries. Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or syncing a replica shard from a primary shard. When a shard recovery completes, the recovered shard is available for search and indexing. For data streams, the API returns information about the stream’s backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API.- Throws:
IOException
ElasticsearchException
- See Also:
-
recovery
public final RecoveryResponse recovery(Function<RecoveryRequest.Builder, ObjectBuilder<RecoveryRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about ongoing and completed shard recoveries. Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or syncing a replica shard from a primary shard. When a shard recovery completes, the recovered shard is available for search and indexing. For data streams, the API returns information about the stream’s backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API.- Parameters:
fn
- a function that initializes a builder to create theRecoveryRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
recovery
Returns information about ongoing and completed shard recoveries. Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or syncing a replica shard from a primary shard. When a shard recovery completes, the recovered shard is available for search and indexing. For data streams, the API returns information about the stream’s backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API.- Throws:
IOException
ElasticsearchException
- See Also:
-
repositories
Returns the snapshot repositories for a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot repository API.- Throws:
IOException
ElasticsearchException
- See Also:
-
segments
public SegmentsResponse segments(SegmentsRequest request) throws IOException, ElasticsearchException Returns low-level information about the Lucene segments in index shards. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.- Throws:
IOException
ElasticsearchException
- See Also:
-
segments
public final SegmentsResponse segments(Function<SegmentsRequest.Builder, ObjectBuilder<SegmentsRequest>> fn) throws IOException, ElasticsearchExceptionReturns low-level information about the Lucene segments in index shards. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.- Parameters:
fn
- a function that initializes a builder to create theSegmentsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
segments
Returns low-level information about the Lucene segments in index shards. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.- Throws:
IOException
ElasticsearchException
- See Also:
-
shards
Returns information about the shards in a cluster. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.- Throws:
IOException
ElasticsearchException
- See Also:
-
shards
public final ShardsResponse shards(Function<ShardsRequest.Builder, ObjectBuilder<ShardsRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about the shards in a cluster. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.- Parameters:
fn
- a function that initializes a builder to create theShardsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
shards
Returns information about the shards in a cluster. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.- Throws:
IOException
ElasticsearchException
- See Also:
-
snapshots
public SnapshotsResponse snapshots(SnapshotsRequest request) throws IOException, ElasticsearchException Returns information about the snapshots stored in one or more repositories. A snapshot is a backup of an index or running Elasticsearch cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.- Throws:
IOException
ElasticsearchException
- See Also:
-
snapshots
public final SnapshotsResponse snapshots(Function<SnapshotsRequest.Builder, ObjectBuilder<SnapshotsRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about the snapshots stored in one or more repositories. A snapshot is a backup of an index or running Elasticsearch cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.- Parameters:
fn
- a function that initializes a builder to create theSnapshotsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
snapshots
Returns information about the snapshots stored in one or more repositories. A snapshot is a backup of an index or running Elasticsearch cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.- Throws:
IOException
ElasticsearchException
- See Also:
-
tasks
Returns information about tasks currently executing in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API.- Throws:
IOException
ElasticsearchException
- See Also:
-
tasks
public final TasksResponse tasks(Function<TasksRequest.Builder, ObjectBuilder<TasksRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about tasks currently executing in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API.- Parameters:
fn
- a function that initializes a builder to create theTasksRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
tasks
Returns information about tasks currently executing in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API.- Throws:
IOException
ElasticsearchException
- See Also:
-
templates
public TemplatesResponse templates(TemplatesRequest request) throws IOException, ElasticsearchException Returns information about index templates in a cluster. You can use index templates to apply index settings and field mappings to new indices at creation. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API.- Throws:
IOException
ElasticsearchException
- See Also:
-
templates
public final TemplatesResponse templates(Function<TemplatesRequest.Builder, ObjectBuilder<TemplatesRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about index templates in a cluster. You can use index templates to apply index settings and field mappings to new indices at creation. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API.- Parameters:
fn
- a function that initializes a builder to create theTemplatesRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
templates
Returns information about index templates in a cluster. You can use index templates to apply index settings and field mappings to new indices at creation. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API.- Throws:
IOException
ElasticsearchException
- See Also:
-
threadPool
public ThreadPoolResponse threadPool(ThreadPoolRequest request) throws IOException, ElasticsearchException Returns thread pool statistics for each node in a cluster. Returned information includes all built-in thread pools and custom thread pools. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.- Throws:
IOException
ElasticsearchException
- See Also:
-
threadPool
public final ThreadPoolResponse threadPool(Function<ThreadPoolRequest.Builder, ObjectBuilder<ThreadPoolRequest>> fn) throws IOException, ElasticsearchExceptionReturns thread pool statistics for each node in a cluster. Returned information includes all built-in thread pools and custom thread pools. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.- Parameters:
fn
- a function that initializes a builder to create theThreadPoolRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
threadPool
Returns thread pool statistics for each node in a cluster. Returned information includes all built-in thread pools and custom thread pools. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.- Throws:
IOException
ElasticsearchException
- See Also:
-
transforms
public TransformsResponse transforms(TransformsRequest request) throws IOException, ElasticsearchException Returns configuration and usage information about transforms.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get transform statistics API.
- Throws:
IOException
ElasticsearchException
- See Also:
-
transforms
public final TransformsResponse transforms(Function<TransformsRequest.Builder, ObjectBuilder<TransformsRequest>> fn) throws IOException, ElasticsearchExceptionReturns configuration and usage information about transforms.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get transform statistics API.
- Parameters:
fn
- a function that initializes a builder to create theTransformsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
transforms
Returns configuration and usage information about transforms.IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get transform statistics API.
- Throws:
IOException
ElasticsearchException
- See Also:
-