Auto-generated code for 8.x (#2372)
This commit is contained in:
22
docs/doc_examples/7af1f62b0cf496cbf593d83d30b472cc.asciidoc
Normal file
22
docs/doc_examples/7af1f62b0cf496cbf593d83d30b472cc.asciidoc
Normal file
@ -0,0 +1,22 @@
|
||||
// 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.createApiKey({
|
||||
name: "music-connector",
|
||||
role_descriptors: {
|
||||
"music-connector-role": {
|
||||
cluster: ["monitor", "manage_connector"],
|
||||
indices: [
|
||||
{
|
||||
names: ["music", ".search-acl-filter-music", ".elastic-connectors*"],
|
||||
privileges: ["all"],
|
||||
allow_restricted_indices: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user