Search allocators
- POST /platform/infrastructure/allocators/_search
Retrieves the information for all the allocators in the platform that match a specified query.
Request
The optional search request to execute. If not supplied then all allocators are matched
-
frominteger -
Deprecated, use cursor for a more scalable approach to paging.
-
cursorstring -
To retrieve the next page of hits, set this to the cursor value of the previous response. When set, all other fields are ignored.
-
sizeinteger -
The maximum number of search results to return.
-
queryQueryContainer -
The container for all of the allowed Elasticsearch queries. Specify only one property each time.
-
matchmap string to MatchQuery -
<string>MatchQuery -
querystringrequired -
The text/numeric/date to query for.
-
operatorstring -
The operator flag can be set to or or and to control the boolean clauses (defaults to or).
-
minimum_should_matchinteger -
The minimum number of optional should clauses to match.
-
analyzerstring -
The analyzer that will be used to perform the analysis process on the text. Defaults to the analyzer that was used to index the field.
-
match_allMatchAllQuery -
A query that matches all documents.
-
match_noneMatchNoneQuery -
A query that doesn't match any documents.
-
boolBoolQuery -
A query for documents that match boolean combinations of other queries.
-
mustQueryContainer -
shouldQueryContainer -
must_notQueryContainer -
filterQueryContainer -
minimum_should_matchinteger -
The minimum number of optional should clauses to match.
-
query_stringQueryStringQuery -
A query that uses the strict query string syntax for parsing. Will return an error for invalid syntax.
-
querystringrequired -
The actual query to be parsed.
-
default_fieldstring -
The default field for query terms if no prefix field is specified.
-
analyzerstring -
The analyzer used to analyze each term of the query when creating composite queries.
-
default_operatorstring -
The default operator used if no explicit operator is specified.
-
allow_leading_wildcardboolean -
When set, * or ? are allowed as the first character. Defaults to false.
-
nestedNestedQuery -
A query that matches nested objects.
-
queryQueryContainerrequired -
The container for all of the allowed Elasticsearch queries. Specify only one property each time.
-
pathstringrequired -
The path to the nested object.
-
score_mode -
Allows to specify how inner children matching affects score of the parent. Refer to the Elasticsearch documentation for details.
-
Values:
avgsumminmaxnone -
prefixmap string to PrefixQuery -
existsExistsQuery -
Matches documents that have at least one non-
nullvalue in the original field. -
fieldstringrequired -
The field to check for non-null values in.
-
rangemap string to RangeQuery -
<string>RangeQuery -
gtobject -
Greater-than
-
gteobject -
Greater-than or equal to
-
ltobject -
Less-than
-
lteobject -
Less-than or equal to.
-
boostnumber -
An optional boost value to apply to the query.
-
formatstring -
Formatted dates will be parsed using the format specified on the date field by default, but it can be overridden by passing the format parameter.
-
time_zonestring -
Dates can be converted from another timezone to UTC either by specifying the time zone in the date value itself (if the format accepts it), or it can be specified as the time_zone parameter.
-
simple_query_stringSimpleQueryStringQuery -
A query that uses simple query string syntax. Will ignore invalid syntax.
-
querystringrequired -
The query expressed in simple query string syntax.
-
fieldsstring -
Array of fields to search
-
default_operatorstring -
The boolean operator used to combine the terms of the query. Valid values are
OR(default) andAND. -
analyze_wildcardboolean -
If
true, the query attempts to analyze wildcard terms. Defaults tofalse. -
analyzerstring -
The name of the analyzer to use to convert the query text into tokens.
-
auto_generate_synonyms_phrase_queryboolean -
If
true, the parse creates amatch_phraseuery for each multi-position token. Defaults totrue. -
flagsstring -
List of enabled operators for the simple query string syntax. Defaults to
ALL. -
fuzzy_max_expansionsinteger -
Maximum number of terms to which the query expands for fuzzy matching. Defaults to 50.
-
fuzzy_prefix_lengthinteger -
Number of beginning characters left unchanged for fuzzy matching. Defaults to 0.
-
fuzzy_transpositionsboolean -
If
true, edits for fuzzy matching include transpositions of two adjacent characters. Defaults tofalse. -
lenientboolean -
If
true, format-based errors, such as providing a text value for a numeric field are ignored. Defaults tofalse. -
minimum_should_matchstring -
Minimum number of clauses that must match for a document to be returned.
-
quote_field_suffixstring -
Suffix appended to quoted text in the query string.
-
sortobject -
An array of fields to sort the search results by. Defaults to query rank and last modified date descending.
Response
An overview of allocators that matched the given search query
-
zonesAllocatorZoneInforequired -
zone_idstringrequired -
Identifier of the zone
-
allocatorsAllocatorInforequired -
statusAllocatorHealthStatusrequired -
The health status of the allocator.
-
connectedbooleanrequired -
Whether the allocator is connected
-
healthybooleanrequired -
Whether the allocator is healthy, meaning it is either connected or has no instances
-
health_checksAllocatorHealthChecks -
The checks performed to determine if an allocator is healthy or not.
-
is_docker_healthybooleanrequired -
Check performed by the allocator to figure out if docker is healthy
-
is_connected_to_zkbooleanrequired -
Whether the allocator is connected to zk or not
-
has_instancesbooleanrequired -
Whether the allocator has allocated instances
-
maintenance_modebooleanrequired -
Whether the allocator is in maintenance mode (meaning that new workload won't be assigned to it)
-
maintenance_mode_timestampstring -
Timestamp when allocator last entered or exited maintenance mode
-
allocator_idstringrequired -
Identifier for this allocator
-
zone_idstringrequired -
Identifier of the zone
-
host_ipstringrequired -
Host IP of this allocator
-
public_hostnamestringrequired -
Public hostname of this allocator
-
capacityAllocatorCapacityrequired -
The total and used capacity of the allocator.
-
memoryAllocatorCapacityMemoryrequired -
The available and used memory of the allocator.
-
storageAllocatorCapacityStoragerequired -
The storage capacity of the allocator.
-
totalintegerrequired -
Total storage in MiB capacity installed on this allocator
-
available_cpusinteger -
Total number of CPUs available on this allocator
-
additional_master_bonusnumber -
Additional bonus CPU shares available to Elasticsearch master instances
-
settingsAllocatorSettingsrequired -
The settings for the allocator.
-
capacityinteger -
A memory capacity (in MB) that overrides the capacity defined during installation - requires separate restart of Allocator services on each host to take full effect.
-
instancesAllocatedInstanceStatusrequired -
cluster_typerequired -
Type of instance that is running
-
Values:
elasticsearchkibanaapmintegrations_serverappsearchenterprise_search -
cluster_idstringrequired -
Identifier for the cluster this instance belongs
-
cluster_namestring -
Name of cluster this instance belongs, if available
-
instance_namestringrequired -
Instance ID of the instance
-
node_memoryintegerrequired -
Memory assigned to this instance
-
healthyboolean -
Indicates whether the instance is healthy
-
cluster_healthyboolean -
Indicates whether the cluster the instance belongs to is healthy
-
instance_configuration_idstring -
The instance configuration id of this instance
-
movingboolean -
Indicates whether the instance is vacating away from this allocator. Note that this is currently not populated when returned from the search endpoint.
-
plans_infoAllocatedInstancePlansInfo -
The plan information for the Elasticsearch cluster associated with the Kibana instance or APM Server.
-
pendingbooleanrequired -
Whether or not there is a pending plan.
-
versionstring -
The version of the current plan, falling back to that of the pending plan if it exists.
-
zone_countinteger -
The number of zones in the current plan, falling back to that of the pending plan if it exists.
-
deployment_idstring -
The id of the deployment this cluster belongs to.
-
metadataMetadataItemrequired -
Arbitrary metadata associated with this allocator
-
build_infoAllocatorBuildInfo -
Information about the build that is running on the allocator.
-
commit_hashstring -
Git commit hash
-
versionstring -
Version of the artifact
-
featuresstringrequired -
List of features associated with this allocator. Note this is only present for backwards compatibility purposes and is scheduled for removal in the next major version release.
-
external_linksExternalHyperlink · uniquerequired -
External resources related to this allocator.
-
regionstring -
The region that this allocator belongs to. Only populated in SaaS or federated ECE.