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

27 lines
513 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.putRoleMapping({
name: "direct_pki_only",
roles: ["role_for_pki1_direct"],
rules: {
all: [
{
field: {
"realm.name": "pki1",
},
},
{
field: {
"metadata.pki_delegated_by_user": null,
},
},
],
},
enabled: true,
});
console.log(response);
----