Added/updated snippets for docs (#2318)
This commit is contained in:
16
docs/doc_examples/8c2060b0272556457f4871c5d7a589fd.asciidoc
Normal file
16
docs/doc_examples/8c2060b0272556457f4871c5d7a589fd.asciidoc
Normal file
@ -0,0 +1,16 @@
|
||||
// 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.security.putRole({
|
||||
name: "logstash-reader",
|
||||
indices: [
|
||||
{
|
||||
names: ["logstash-*"],
|
||||
privileges: ["read", "view_index_metadata"],
|
||||
},
|
||||
],
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user