Auto-generated code for 8.x (#2372)

This commit is contained in:
Elastic Machine
2024-10-14 18:18:55 +02:00
committed by GitHub
parent e45ed28c05
commit fceebae8ae
42 changed files with 661 additions and 190 deletions

View 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);
----