(cherry picked from commit f737290d10)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
18 lines
327 B
Plaintext
18 lines
327 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.updateAliases({
|
|
actions: [
|
|
{
|
|
add: {
|
|
index: "logs-*",
|
|
alias: "logs",
|
|
},
|
|
},
|
|
],
|
|
});
|
|
console.log(response);
|
|
----
|