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

23 lines
533 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.slm.putLifecycle({
policy_id: "nightly-cluster-state-snapshots",
schedule: "0 30 2 * * ?",
name: "<nightly-cluster-state-snap-{now/d}>",
repository: "my_secure_repository",
config: {
include_global_state: true,
indices: "-*",
},
retention: {
expire_after: "30d",
min_count: 5,
max_count: 50,
},
});
console.log(response);
----