2018-11-21 09:38:17 -05:00
|
|
|
|
|
|
|
--
|
|
|
|
:api: get-privileges
|
|
|
|
:request: GetPrivilegesRequest
|
2019-01-07 08:44:12 -05:00
|
|
|
:response: GetPrivilegesResponse
|
2018-11-21 09:38:17 -05:00
|
|
|
--
|
2019-09-11 16:19:13 -04:00
|
|
|
[role="xpack"]
|
2018-11-21 09:38:17 -05:00
|
|
|
[id="{upid}-{api}"]
|
|
|
|
=== Get Privileges API
|
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
|
|
|
==== Get Privileges Request
|
|
|
|
|
|
|
|
The +{request}+ supports getting privilege(s) for all or for specific applications.
|
|
|
|
|
|
|
|
===== Specific privilege of a specific application
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
===== All privileges of a specific application
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[get-all-application-privileges-request]
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
===== All privileges of all applications
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[get-all-privileges-request]
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
|
|
|
==== Get Privileges Response
|
|
|
|
|
|
|
|
The returned +{response}+ allows to get information about the retrieved privileges as follows.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
|
|
--------------------------------------------------
|