(cherry picked from commit f737290d10)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
20 lines
428 B
Plaintext
20 lines
428 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-repo",
|
|
repository: {
|
|
type: "s3",
|
|
settings: {
|
|
bucket: "repo-bucket",
|
|
client: "elastic-internal-71bcd3",
|
|
base_path: "myrepo",
|
|
readonly: true,
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|