mirror of
https://github.com/iSharkFly-Docs/opensearch-docs-cn
synced 2025-02-28 21:49:11 +00:00
Merge pull request #27 from spbjss/main
Update AD doc to apply the latest security APi update.
This commit is contained in:
commit
fcba22c91c
@ -46,7 +46,7 @@ For example, consider two users: `alice` and `bob`.
|
||||
`alice` has an analyst backend role:
|
||||
|
||||
```json
|
||||
PUT _opensearch/_security/api/internalusers/alice
|
||||
PUT _plugins/_security/api/internalusers/alice
|
||||
{
|
||||
"password": "alice",
|
||||
"backend_roles": [
|
||||
@ -59,7 +59,7 @@ PUT _opensearch/_security/api/internalusers/alice
|
||||
`bob` has a human-resources backend role:
|
||||
|
||||
```json
|
||||
PUT _opensearch/_security/api/internalusers/bob
|
||||
PUT _plugins/_security/api/internalusers/bob
|
||||
{
|
||||
"password": "bob",
|
||||
"backend_roles": [
|
||||
@ -72,7 +72,7 @@ PUT _opensearch/_security/api/internalusers/bob
|
||||
Both `alice` and `bob` have full access to anomaly detection:
|
||||
|
||||
```json
|
||||
PUT _opensearch/_security/api/rolesmapping/anomaly_full_access
|
||||
PUT _plugins/_security/api/rolesmapping/anomaly_full_access
|
||||
{
|
||||
"backend_roles": [],
|
||||
"hosts": [],
|
||||
|
Loading…
x
Reference in New Issue
Block a user