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

23 lines
503 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: "monthly-snapshots",
name: "<monthly-snapshot-{now/d}>",
schedule: "0 56 23 1 * ?",
repository: "my_repository",
config: {
indices: "*",
include_global_state: true,
},
retention: {
expire_after: "366d",
min_count: 1,
max_count: 12,
},
});
console.log(response);
----