Class HasPrivilegesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.HasPrivilegesRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class HasPrivilegesRequest
extends RequestBase
implements JsonpSerializable
Check user privileges.
Determine whether the specified user has a specified list of privileges. 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.
- 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 JsonpDeserializer<HasPrivilegesRequest>Json deserializer forHasPrivilegesRequeststatic final Endpoint<HasPrivilegesRequest,HasPrivilegesResponse, ErrorResponse> Endpoint "security.has_privileges". -
Method Summary
Modifier and TypeMethodDescriptionfinal List<ApplicationPrivilegesCheck>API name:applicationcluster()A list of the cluster privileges that you want to check.final List<IndexPrivilegesCheck>index()API name:indexstatic HasPrivilegesRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringuser()UsernameMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forHasPrivilegesRequest -
_ENDPOINT
Endpoint "security.has_privileges".
-
-
Method Details
-
of
public static HasPrivilegesRequest of(Function<HasPrivilegesRequest.Builder, ObjectBuilder<HasPrivilegesRequest>> fn) -
application
API name:application -
cluster
A list of the cluster privileges that you want to check.API name:
cluster -
index
API name:index -
user
UsernameAPI name:
user -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupHasPrivilegesRequestDeserializer
protected static void setupHasPrivilegesRequestDeserializer(ObjectDeserializer<HasPrivilegesRequest.Builder> op)
-