Class QueryApiKeysRequest.Builder
- All Implemented Interfaces:
WithJson<QueryApiKeysRequest.Builder>,ObjectBuilder<QueryApiKeysRequest>
- Enclosing class:
- QueryApiKeysRequest
QueryApiKeysRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregations(String key, ApiKeyAggregation value) Any aggregations to run over the corpus of returned API keys.aggregations(String key, ApiKeyAggregationVariant value) Any aggregations to run over the corpus of returned API keys.Any aggregations to run over the corpus of returned API keys.Any aggregations to run over the corpus of returned API keys.build()Builds aQueryApiKeysRequest.The starting document offset.query(ApiKeyQuery value) A query to filter which API keys to return.query(ApiKeyQueryVariant value) A query to filter which API keys to return.A query to filter which API keys to return.searchAfter(boolean value, boolean... values) The search after definition.searchAfter(double value, double... values) The search after definition.searchAfter(long value, long... values) The search after definition.searchAfter(FieldValue value, FieldValue... values) The search after definition.searchAfter(String value, String... values) The search after definition.The search after definition.searchAfter(List<FieldValue> list) The search after definition.protected QueryApiKeysRequest.Builderself()The number of hits to return.sort(SortOptions value, SortOptions... values) The sort definition.The sort definition.sort(List<SortOptions> list) The sort definition.withLimitedBy(Boolean value) Return the snapshot of the owner user's role descriptors associated with the API key.withProfileUid(Boolean value) Determines whether to also retrieve the profile UID for the API key owner principal.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregations
Any aggregations to run over the corpus of returned API keys. Aggregations and queries work together. Aggregations are computed only on the API keys that match the query. This supports only a subset of aggregation types, namely:terms,range,date_range,missing,cardinality,value_count,composite,filter, andfilters. Additionally, aggregations only run over the same subset of fields that query works with.API name:
aggregationsAdds all entries of
maptoaggregations. -
aggregations
Any aggregations to run over the corpus of returned API keys. Aggregations and queries work together. Aggregations are computed only on the API keys that match the query. This supports only a subset of aggregation types, namely:terms,range,date_range,missing,cardinality,value_count,composite,filter, andfilters. Additionally, aggregations only run over the same subset of fields that query works with.API name:
aggregationsAdds an entry to
aggregations. -
aggregations
Any aggregations to run over the corpus of returned API keys. Aggregations and queries work together. Aggregations are computed only on the API keys that match the query. This supports only a subset of aggregation types, namely:terms,range,date_range,missing,cardinality,value_count,composite,filter, andfilters. Additionally, aggregations only run over the same subset of fields that query works with.API name:
aggregationsAdds an entry to
aggregations. -
aggregations
public final QueryApiKeysRequest.Builder aggregations(String key, Function<ApiKeyAggregation.Builder, ObjectBuilder<ApiKeyAggregation>> fn) Any aggregations to run over the corpus of returned API keys. Aggregations and queries work together. Aggregations are computed only on the API keys that match the query. This supports only a subset of aggregation types, namely:terms,range,date_range,missing,cardinality,value_count,composite,filter, andfilters. Additionally, aggregations only run over the same subset of fields that query works with.API name:
aggregationsAdds an entry to
aggregationsusing a builder lambda. -
from
The starting document offset. It must not be negative. By default, you cannot page through more than 10,000 hits using thefromandsizeparameters. To page through more hits, use thesearch_afterparameter.API name:
from -
query
A query to filter which API keys to return. If the query parameter is missing, it is equivalent to amatch_allquery. The query supports a subset of query types, includingmatch_all,bool,term,terms,match,ids,prefix,wildcard,exists,range, andsimple_query_string. You can query the following public information associated with an API key:id,type,name,creation,expiration,invalidated,invalidation,username,realm, andmetadata.NOTE: The queryable string values associated with API keys are internally mapped as keywords. Consequently, if no
analyzerparameter is specified for amatchquery, then the provided match query string is interpreted as a single keyword value. Such a match query is hence equivalent to atermquery.API name:
query -
query
public final QueryApiKeysRequest.Builder query(Function<ApiKeyQuery.Builder, ObjectBuilder<ApiKeyQuery>> fn) A query to filter which API keys to return. If the query parameter is missing, it is equivalent to amatch_allquery. The query supports a subset of query types, includingmatch_all,bool,term,terms,match,ids,prefix,wildcard,exists,range, andsimple_query_string. You can query the following public information associated with an API key:id,type,name,creation,expiration,invalidated,invalidation,username,realm, andmetadata.NOTE: The queryable string values associated with API keys are internally mapped as keywords. Consequently, if no
analyzerparameter is specified for amatchquery, then the provided match query string is interpreted as a single keyword value. Such a match query is hence equivalent to atermquery.API name:
query -
query
A query to filter which API keys to return. If the query parameter is missing, it is equivalent to amatch_allquery. The query supports a subset of query types, includingmatch_all,bool,term,terms,match,ids,prefix,wildcard,exists,range, andsimple_query_string. You can query the following public information associated with an API key:id,type,name,creation,expiration,invalidated,invalidation,username,realm, andmetadata.NOTE: The queryable string values associated with API keys are internally mapped as keywords. Consequently, if no
analyzerparameter is specified for amatchquery, then the provided match query string is interpreted as a single keyword value. Such a match query is hence equivalent to atermquery.API name:
query -
searchAfter
The search after definition.API name:
search_afterAdds all elements of
listtosearchAfter. -
searchAfter
The search after definition.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
The search after definition.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
The search after definition.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
The search after definition.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
The search after definition.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
public final QueryApiKeysRequest.Builder searchAfter(Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) The search after definition.API name:
search_afterAdds a value to
searchAfterusing a builder lambda. -
size
The number of hits to return. It must not be negative. Thesizeparameter can be set to0, in which case no API key matches are returned, only the aggregation results. By default, you cannot page through more than 10,000 hits using thefromandsizeparameters. To page through more hits, use thesearch_afterparameter.API name:
size -
sort
The sort definition. Other thanid, all public fields of an API key are eligible for sorting. In addition, sort can also be applied to the_docfield to sort by index order.API name:
sortAdds all elements of
listtosort. -
sort
The sort definition. Other thanid, all public fields of an API key are eligible for sorting. In addition, sort can also be applied to the_docfield to sort by index order.API name:
sortAdds one or more values to
sort. -
sort
public final QueryApiKeysRequest.Builder sort(Function<SortOptions.Builder, ObjectBuilder<SortOptions>> fn) The sort definition. Other thanid, all public fields of an API key are eligible for sorting. In addition, sort can also be applied to the_docfield to sort by index order.API name:
sortAdds a value to
sortusing a builder lambda. -
withLimitedBy
Return the snapshot of the owner user's role descriptors associated with the API key. An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors (effectively limited by it). An API key cannot retrieve any API key’s limited-by role descriptors (including itself) unless it hasmanage_api_keyor higher privileges.API name:
with_limited_by -
withProfileUid
Determines whether to also retrieve the profile UID for the API key owner principal. If it exists, the profile UID is returned under theprofile_uidresponse field for each API key.API name:
with_profile_uid -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<QueryApiKeysRequest.Builder>
-
build
Builds aQueryApiKeysRequest.- Specified by:
buildin interfaceObjectBuilder<QueryApiKeysRequest>- Throws:
NullPointerException- if some of the required fields are null.
-