Skip to content

Commit 8ced21d

Browse files
authored
[DOCS] Corrected API path for /_security/api_key (#39521)
1 parent dae48ba commit 8ced21d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

x-pack/docs/en/rest-api/security/get-api-keys.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ The following example retrieves all API keys for the `native1` realm:
5959

6060
[source,js]
6161
--------------------------------------------------
62-
GET /_xpack/api_key?realm_name=native1
62+
GET /_security/api_key?realm_name=native1
6363
--------------------------------------------------
6464
// NOTCONSOLE
6565

6666
The following example retrieves all API keys for the user `myuser` in all realms:
6767

6868
[source,js]
6969
--------------------------------------------------
70-
GET /_xpack/api_key?username=myuser
70+
GET /_security/api_key?username=myuser
7171
--------------------------------------------------
7272
// NOTCONSOLE
7373

@@ -76,7 +76,7 @@ Finally, the following example retrieves all API keys for the user `myuser` in
7676

7777
[source,js]
7878
--------------------------------------------------
79-
GET /_xpack/api_key?username=myuser&realm_name=native1
79+
GET /_security/api_key?username=myuser&realm_name=native1
8080
--------------------------------------------------
8181
// NOTCONSOLE
8282

x-pack/docs/en/rest-api/security/invalidate-api-keys.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ The following example invalidates all API keys for the `native1` realm immediate
6565

6666
[source,js]
6767
--------------------------------------------------
68-
DELETE /_xpack/api_key
68+
DELETE /_security/api_key
6969
{
7070
"realm_name" : "native1"
7171
}
@@ -76,7 +76,7 @@ The following example invalidates all API keys for the user `myuser` in all real
7676

7777
[source,js]
7878
--------------------------------------------------
79-
DELETE /_xpack/api_key
79+
DELETE /_security/api_key
8080
{
8181
"username" : "myuser"
8282
}
@@ -88,7 +88,7 @@ Finally, the following example invalidates all API keys for the user `myuser` in
8888

8989
[source,js]
9090
--------------------------------------------------
91-
DELETE /_xpack/api_key
91+
DELETE /_security/api_key
9292
{
9393
"username" : "myuser",
9494
"realm_name" : "native1"

0 commit comments

Comments
 (0)