Files
elasticsearch-js/docs/doc_examples/51f1a0930362594b231a5bcc17673768.asciidoc
2024-07-29 17:10:05 -05:00

24 lines
491 B
Plaintext

// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.indices.modifyDataStream({
actions: [
{
remove_backing_index: {
data_stream: "my-logs",
index: ".ds-my-logs-2099.01.01-000001",
},
},
{
add_backing_index: {
data_stream: "my-logs",
index: "index-to-add",
},
},
],
});
console.log(response);
----