Skip to content

Add an API for adding and removing indices from a data stream #75852

Closed
@dakrone

Description

@dakrone

Similar to the Aliases API, it would be useful to have an expert-level API for adding and removing indices from a data stream. So, copying from the aliases API, something similar to:

POST /_data_stream
{
  "actions": [
    {
      "add": {
        "index": "my-index",
        "data_stream": "my-data-stream"
      },
      "remove": {
        "index": "my-other-index",
        "data_stream": "my-data-stream"
      }
    }
  ]
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions