Update data streams
- POST /_data_stream/_modify
Performs one or more data stream modification actions in a single atomic operation.
Request
-
actionsActionrequired -
Actions to perform.
-
add_backing_indexIndexAndDataStreamAction -
Adds an existing index as a backing index for a data stream. The index is hidden as part of this operation. WARNING: Adding indices with the
add_backing_indexaction can potentially result in improper data stream behavior. This should be considered an expert level API. -
data_streamstringrequired -
Data stream targeted by the action.
-
indexstring IndexNamerequired -
Index for the action.
-
remove_backing_indexIndexAndDataStreamAction -
Removes a backing index from a data stream. The index is unhidden as part of this operation. A data stream’s write index cannot be removed.
-
data_streamstringrequired -
Data stream targeted by the action.
-
indexstring IndexNamerequired -
Index for the action.
Response
application/json
-
acknowledgedbooleanrequired -
For a successful response, this value is always true. On failure, an exception is returned instead.