25 lines
482 B
Plaintext
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);
|
|
----
|