mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-23 13:26:02 +00:00
Document API-Key APIs require manage_api_key priv (#43869)
Add the "Authorization" section to the API key API docs. These APIs require The new manage_api_key cluster privilege. Relates: #43865 Backport of: #43811
This commit is contained in:
parent
6e9ccda2c5
commit
14884c871f
@ -48,6 +48,10 @@ same as the request for create role API. For more details, see
|
||||
`expiration`::
|
||||
(string) Optional expiration time for the API key. By default, API keys never expire.
|
||||
|
||||
==== Authorization
|
||||
|
||||
To use this API, you must have at least the `manage_api_key` cluster privilege.
|
||||
|
||||
==== Examples
|
||||
|
||||
The following example creates an API key:
|
||||
|
@ -39,6 +39,10 @@ or `name`.
|
||||
|
||||
NOTE: While all parameters are optional, at least one of them is required.
|
||||
|
||||
==== Authorization
|
||||
|
||||
To use this API, you must have at least the `manage_api_key` cluster privilege.
|
||||
|
||||
==== Examples
|
||||
|
||||
If you create an API key as follows:
|
||||
|
@ -39,6 +39,10 @@ either `id` or `name`.
|
||||
|
||||
NOTE: While all parameters are optional, at least one of them is required.
|
||||
|
||||
==== Authorization
|
||||
|
||||
To use this API, you must have at least the `manage_api_key` cluster privilege.
|
||||
|
||||
==== Examples
|
||||
|
||||
If you create an API key as follows:
|
||||
|
Loading…
x
Reference in New Issue
Block a user