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

25 lines
482 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: {
app01: {
read: {
actions: ["action:login", "data:read/*"],
},
write: {
actions: ["action:login", "data:write/*"],
},
},
app02: {
all: {
actions: ["*"],
},
},
},
});
console.log(response);
----