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

51 lines
1015 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.snapshot.createRepository({
name: "my_backup1",
repository: {
type: "azure",
},
});
console.log(response);
const response1 = await client.snapshot.createRepository({
name: "my_backup2",
repository: {
type: "azure",
settings: {
container: "backup-container",
base_path: "backups",
chunk_size: "32MB",
compress: true,
},
},
});
console.log(response1);
const response2 = await client.snapshot.createRepository({
name: "my_backup3",
repository: {
type: "azure",
settings: {
client: "secondary",
},
},
});
console.log(response2);
const response3 = await client.snapshot.createRepository({
name: "my_backup4",
repository: {
type: "azure",
settings: {
client: "secondary",
location_mode: "primary_only",
},
},
});
console.log(response3);
----