Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion docs/reference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3174,6 +3174,16 @@ local cluster state. If `false` the list of selected nodes are computed
from the cluster state of the master node. In both cases the coordinating
node will send requests for further information to each selected node.
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node.
** *`expand_wildcards` (Optional, Enum("all" | "open" | "closed" | "hidden" | "none") | Enum("all" | "open" | "closed" | "hidden" | "none")[])*: Type of index that wildcard expressions can match. If the request can target data streams, this argument
determines whether wildcard expressions match hidden data streams. Supports a list of values,
such as open,hidden.
** *`allow_no_indices` (Optional, boolean)*: If false, the request returns an error if any wildcard expression, index alias, or _all value targets only
missing or closed indices. This behavior applies even if the request targets other open indices. For example,
a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar.
** *`ignore_throttled` (Optional, boolean)*: If true, concrete, expanded or aliased indices are ignored when frozen.
** *`ignore_unavailable` (Optional, boolean)*: If true, missing or closed indices are not included in the response.
** *`allow_closed` (Optional, boolean)*: If true, allow closed indices to be returned in the response otherwise if false, keep the legacy behaviour
of throwing an exception if index pattern matches closed indices

[discrete]
==== shards
Expand Down Expand Up @@ -7052,7 +7062,7 @@ To target all data streams use `*` or `_all`.
** *`data_retention` (Optional, string | -1 | 0)*: If defined, every document added to this data stream will be stored at least for this time frame.
Any time after this duration the document could be deleted.
When empty, every document in this data stream will be stored indefinitely.
** *`downsampling` (Optional, { rounds })*: The downsampling configuration to execute for the managed backing index after rollover.
** *`downsampling` (Optional, { after, config }[])*: The downsampling configuration to execute for the managed backing index after rollover.
** *`enabled` (Optional, boolean)*: If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle
that's disabled (enabled: `false`) will have no effect on the data stream.
** *`expand_wildcards` (Optional, Enum("all" | "open" | "closed" | "hidden" | "none") | Enum("all" | "open" | "closed" | "hidden" | "none")[])*: Type of data stream that wildcard patterns can match.
Expand Down
15 changes: 10 additions & 5 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3666,7 +3666,7 @@ export interface AggregationsGeoLineAggregate extends AggregationsAggregateBase

export interface AggregationsGeoLineAggregation {
point: AggregationsGeoLinePoint
sort: AggregationsGeoLineSort
sort?: AggregationsGeoLineSort
include_sort?: boolean
sort_order?: SortOrder
size?: integer
Expand Down Expand Up @@ -4073,7 +4073,7 @@ export interface AggregationsPercentilesAggregateBase extends AggregationsAggreg

export interface AggregationsPercentilesAggregation extends AggregationsFormatMetricAggregationBase {
keyed?: boolean
percents?: double[]
percents?: double | double[]
hdr?: AggregationsHdrMethod
tdigest?: AggregationsTDigest
}
Expand Down Expand Up @@ -8546,6 +8546,11 @@ export interface CatSegmentsRequest extends CatCatRequestBase {
s?: Names
local?: boolean
master_timeout?: Duration
expand_wildcards?: ExpandWildcards
allow_no_indices?: boolean
ignore_throttled?: boolean
ignore_unavailable?: boolean
allow_closed?: boolean
}

export type CatSegmentsResponse = CatSegmentsSegmentsRecord[]
Expand Down Expand Up @@ -9390,15 +9395,15 @@ export interface ClusterAllocationExplainDiskUsage {
}

export interface ClusterAllocationExplainNodeAllocationExplanation {
deciders: ClusterAllocationExplainAllocationDecision[]
deciders?: ClusterAllocationExplainAllocationDecision[]
node_attributes: Record<string, string>
node_decision: ClusterAllocationExplainDecision
node_id: Id
node_name: Name
roles: NodeRoles
store?: ClusterAllocationExplainAllocationStore
transport_address: TransportAddress
weight_ranking: integer
weight_ranking?: integer
}

export interface ClusterAllocationExplainNodeDiskUsage {
Expand Down Expand Up @@ -12694,7 +12699,7 @@ export interface IndicesPutDataLifecycleRequest extends RequestBase {
master_timeout?: Duration
timeout?: Duration
data_retention?: Duration
downsampling?: IndicesDataStreamLifecycleDownsampling
downsampling?: IndicesDownsamplingRound[]
enabled?: boolean
}

Expand Down
15 changes: 10 additions & 5 deletions src/api/typesWithBodyKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3743,7 +3743,7 @@ export interface AggregationsGeoLineAggregate extends AggregationsAggregateBase

export interface AggregationsGeoLineAggregation {
point: AggregationsGeoLinePoint
sort: AggregationsGeoLineSort
sort?: AggregationsGeoLineSort
include_sort?: boolean
sort_order?: SortOrder
size?: integer
Expand Down Expand Up @@ -4150,7 +4150,7 @@ export interface AggregationsPercentilesAggregateBase extends AggregationsAggreg

export interface AggregationsPercentilesAggregation extends AggregationsFormatMetricAggregationBase {
keyed?: boolean
percents?: double[]
percents?: double | double[]
hdr?: AggregationsHdrMethod
tdigest?: AggregationsTDigest
}
Expand Down Expand Up @@ -8627,6 +8627,11 @@ export interface CatSegmentsRequest extends CatCatRequestBase {
s?: Names
local?: boolean
master_timeout?: Duration
expand_wildcards?: ExpandWildcards
allow_no_indices?: boolean
ignore_throttled?: boolean
ignore_unavailable?: boolean
allow_closed?: boolean
}

export type CatSegmentsResponse = CatSegmentsSegmentsRecord[]
Expand Down Expand Up @@ -9483,15 +9488,15 @@ export interface ClusterAllocationExplainDiskUsage {
}

export interface ClusterAllocationExplainNodeAllocationExplanation {
deciders: ClusterAllocationExplainAllocationDecision[]
deciders?: ClusterAllocationExplainAllocationDecision[]
node_attributes: Record<string, string>
node_decision: ClusterAllocationExplainDecision
node_id: Id
node_name: Name
roles: NodeRoles
store?: ClusterAllocationExplainAllocationStore
transport_address: TransportAddress
weight_ranking: integer
weight_ranking?: integer
}

export interface ClusterAllocationExplainNodeDiskUsage {
Expand Down Expand Up @@ -12907,7 +12912,7 @@ export interface IndicesPutDataLifecycleRequest extends RequestBase {
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
body?: {
data_retention?: Duration
downsampling?: IndicesDataStreamLifecycleDownsampling
downsampling?: IndicesDownsamplingRound[]
enabled?: boolean
}
}
Expand Down