Class GetPrivilegesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.GetPrivilegesRequest
Get application privileges.
To use this API, you must have one of the following privileges:
- The
read_securitycluster privilege (or a greater privilege such asmanage_securityorall). - The "Manage Application Privileges" global privilege for the application being referenced in the request.
- 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 TypeFieldDescriptionstatic final Endpoint<GetPrivilegesRequest,GetPrivilegesResponse, ErrorResponse> Endpoint "security.get_privileges". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe name of the application.name()The name of the privilege.static GetPrivilegesRequestMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "security.get_privileges".
-
-
Method Details
-
of
public static GetPrivilegesRequest of(Function<GetPrivilegesRequest.Builder, ObjectBuilder<GetPrivilegesRequest>> 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 -
name
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:
name
-