Update api.md (#6651)

* Update api.md

Add documentation to use APIs that require admin access

Signed-off-by: Morpheus-zzy <forgetzzy@gmail.com>

* Update _security/access-control/api.md

Co-authored-by: Stephen Crawford <65832608+scrawfor99@users.noreply.github.com>
Signed-off-by: Melissa Vagi <vagimeli@amazon.com>

* Update _security/access-control/api.md

Signed-off-by: Melissa Vagi <vagimeli@amazon.com>

---------

Signed-off-by: Morpheus-zzy <forgetzzy@gmail.com>
Signed-off-by: Melissa Vagi <vagimeli@amazon.com>
Co-authored-by: Melissa Vagi <vagimeli@amazon.com>
Co-authored-by: Stephen Crawford <65832608+scrawfor99@users.noreply.github.com>
This commit is contained in:
Morpheus-zzy 2024-03-13 03:58:26 +08:00 committed by GitHub
parent 09f00d3aa7
commit 3416537a2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,13 @@ plugins.security.restapi.roles_enabled: ["<role>", ...]
```
{% include copy.html %}
If you're working with APIs that manage `Distinguished names` or `Certificates` that require super admin access, enable the REST API admin configuration in your `opensearch.yml` file as shown in the following setting example:
```yml
plugins.security.restapi.admin.enabled: true
```
{% include copy.html %}
These roles can now access all APIs. To prevent access to certain APIs:
```yml