Class GetUserPrivilegesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.GetUserPrivilegesRequest
public class GetUserPrivilegesRequest extends RequestBase
Retrieves security privileges for the logged in user.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GetUserPrivilegesRequest.Builder
Builder forGetUserPrivilegesRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static Endpoint<GetUserPrivilegesRequest,GetUserPrivilegesResponse,ErrorResponse>
_ENDPOINT
Endpoint "security.get_user_privileges
". -
Method Summary
Modifier and Type Method Description java.lang.String
application()
The name of the application.static GetUserPrivilegesRequest
of(java.util.function.Function<GetUserPrivilegesRequest.Builder,ObjectBuilder<GetUserPrivilegesRequest>> fn)
java.lang.String
priviledge()
The name of the privilege.java.lang.String
username()
API name:username
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_ENDPOINT
public static final Endpoint<GetUserPrivilegesRequest,GetUserPrivilegesResponse,ErrorResponse> _ENDPOINTEndpoint "security.get_user_privileges
".
-
-
Method Details
-
of
public static GetUserPrivilegesRequest of(java.util.function.Function<GetUserPrivilegesRequest.Builder,ObjectBuilder<GetUserPrivilegesRequest>> fn) -
application
@Nullable public final java.lang.String 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
@Nullable public final java.lang.String 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
@Nullable public final java.lang.String username()API name:username
-