mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
Add Delete Privileges API to HLRC (#35454)
This commit adds the Delete Privileges API to the high level REST client. Related to #29827
This commit is contained in:
parent
e7b7d52a6a
commit
5b7446bb5f
8 changed files with 352 additions and 9 deletions
|
@ -0,0 +1,37 @@
|
|||
--
|
||||
:api: delete-privileges
|
||||
:request: DeletePrivilegesRequest
|
||||
:response: DeletePrivilegesResponse
|
||||
--
|
||||
|
||||
[id="{upid}-{api}"]
|
||||
=== Delete Privileges API
|
||||
|
||||
This API can be used to delete application privileges.
|
||||
|
||||
[id="{upid}-{api}-request"]
|
||||
==== Delete Application Privileges Request
|
||||
|
||||
A +{request}+ has two arguments
|
||||
|
||||
["source","java",subs="attributes,callouts,macros"]
|
||||
--------------------------------------------------
|
||||
include-tagged::{doc-tests-file}[{api}-request]
|
||||
--------------------------------------------------
|
||||
<1> the name of application
|
||||
<2> the name(s) of the privileges to delete that belong to the given application
|
||||
|
||||
include::../execution.asciidoc[]
|
||||
|
||||
[id="{upid}-{api}-response"]
|
||||
==== Delete Application Privileges Response
|
||||
|
||||
The returned +{response}+ allows to retrieve information about the executed
|
||||
operation as follows:
|
||||
|
||||
["source","java",subs="attributes,callouts,macros"]
|
||||
--------------------------------------------------
|
||||
include-tagged::{doc-tests-file}[{api}-response]
|
||||
--------------------------------------------------
|
||||
<1> the name of the application
|
||||
<2> whether the given privilege was found and deleted
|
|
@ -353,12 +353,14 @@ The Java High Level REST Client supports the following Security APIs:
|
|||
* <<java-rest-high-security-delete-role-mapping>>
|
||||
* <<java-rest-high-security-create-token>>
|
||||
* <<{upid}-invalidate-token>>
|
||||
* <<{upid}-delete-privileges>>
|
||||
|
||||
include::security/put-user.asciidoc[]
|
||||
include::security/enable-user.asciidoc[]
|
||||
include::security/disable-user.asciidoc[]
|
||||
include::security/change-password.asciidoc[]
|
||||
include::security/delete-role.asciidoc[]
|
||||
include::security/delete-privileges.asciidoc[]
|
||||
include::security/clear-roles-cache.asciidoc[]
|
||||
include::security/clear-realm-cache.asciidoc[]
|
||||
include::security/authenticate.asciidoc[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue