Get data stream lifecycles Added in 8.11.0
Retrieves the data stream lifecycle configuration of one or more data streams.
Path parameters
-
Comma-separated list of data streams to limit the request. Supports wildcards (
*
). To target all data streams, omit this parameter or use*
or_all
.
Query parameters
-
expand_wildcards string | array[string]
Type of data stream that wildcard patterns can match. Supports comma-separated values, such as
open,hidden
. Valid values are:all
,open
,closed
,hidden
,none
. -
include_defaults boolean
If
true
, return all default settings in the response. -
master_timeout string
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
GET
/_data_stream/{name}/_lifecycle
curl \
-X GET http://api.example.com/_data_stream/{name}/_lifecycle
Response examples (200)
A successful response of getting the lifecycle of a set of data streams.
{
"data_streams": [
{
"name": "my-data-stream-1",
"lifecycle": {
"enabled": true,
"data_retention": "7d"
}
},
{
"name": "my-data-stream-2",
"lifecycle": {
"enabled": true,
"data_retention": "7d"
}
}
]
}