mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-31 12:28:51 +00:00
[DOCS] Corrected API path for /_security/api_key (#39521)
This commit is contained in:
parent
dae48ba262
commit
8ced21db88
x-pack/docs/en/rest-api/security
@ -59,7 +59,7 @@ The following example retrieves all API keys for the `native1` realm:
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
GET /_xpack/api_key?realm_name=native1
|
||||
GET /_security/api_key?realm_name=native1
|
||||
--------------------------------------------------
|
||||
// NOTCONSOLE
|
||||
|
||||
@ -67,7 +67,7 @@ The following example retrieves all API keys for the user `myuser` in all realms
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
GET /_xpack/api_key?username=myuser
|
||||
GET /_security/api_key?username=myuser
|
||||
--------------------------------------------------
|
||||
// NOTCONSOLE
|
||||
|
||||
@ -76,7 +76,7 @@ Finally, the following example retrieves all API keys for the user `myuser` in
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
GET /_xpack/api_key?username=myuser&realm_name=native1
|
||||
GET /_security/api_key?username=myuser&realm_name=native1
|
||||
--------------------------------------------------
|
||||
// NOTCONSOLE
|
||||
|
||||
|
@ -65,7 +65,7 @@ The following example invalidates all API keys for the `native1` realm immediate
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
DELETE /_xpack/api_key
|
||||
DELETE /_security/api_key
|
||||
{
|
||||
"realm_name" : "native1"
|
||||
}
|
||||
@ -76,7 +76,7 @@ The following example invalidates all API keys for the user `myuser` in all real
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
DELETE /_xpack/api_key
|
||||
DELETE /_security/api_key
|
||||
{
|
||||
"username" : "myuser"
|
||||
}
|
||||
@ -88,7 +88,7 @@ Finally, the following example invalidates all API keys for the user `myuser` in
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
DELETE /_xpack/api_key
|
||||
DELETE /_security/api_key
|
||||
{
|
||||
"username" : "myuser",
|
||||
"realm_name" : "native1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user