Class GetUserPrivilegesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.GetUserPrivilegesRequest
Get user privileges.
Get the security privileges for the logged in user. All users can use this API, but only to determine their own privileges. To check the privileges of other users, you must use the run as feature. To check whether a user has a specific list of privileges, use the has privileges API.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionEndpoint "security.get_user_privileges
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The name of the application.static GetUserPrivilegesRequest
final String
The name of the privilege.final String
username()
API name:username
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
public static final Endpoint<GetUserPrivilegesRequest,GetUserPrivilegesResponse, _ENDPOINTErrorResponse> Endpoint "security.get_user_privileges
".
-
-
Method Details
-
of
public static GetUserPrivilegesRequest of(Function<GetUserPrivilegesRequest.Builder, ObjectBuilder<GetUserPrivilegesRequest>> fn) -
application
The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications.API name:
application
-
priviledge
The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application.API name:
priviledge
-
username
API name:username
-