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

20 lines
419 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.security.putPrivileges({
privileges: {
myapp: {
read: {
actions: ["data:read/*", "action:login"],
metadata: {
description: "Read access to myapp",
},
},
},
},
});
console.log(response);
----