Search runners
- POST /platform/infrastructure/runners/_search
Retrieves runners that match a given query.
Request
The optional search request to execute. If not supplied then all runners 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.
Responses
An overview of runners that matched the given search query.
-
runnersRunnerInforequired -
List of runners
-
runner_idstringrequired -
The runner identifier
-
runner_namestring -
The runner name
-
zonestring -
Identifier of the zone
-
Meta data of the runner, like image ID or processor architecture
-
featuresmap string to boolean -
State of features of the runner
-
build_infoRunnerBuildInfo -
commit_hashstring -
Git commit hash
-
versionstring -
Version of the runner artifact
-
host_ipstringrequired -
Host IP for the runner
-
public_hostnamestringrequired -
Public hostname for the runner
-
containersRunnerContainerInforequired -
Containers for the runner
-
container_namestringrequired -
Name of this container
-
container_set_namestringrequired -
Name of the container set for the container
-
connectedbooleanrequired -
Specifies if the runner is connected
-
healthybooleanrequired -
Specifies if the runner is healthy
-
health_checksRunnerHealthChecks -
The checks performed to determine if an runner is healthy or not.
-
is_docker_healthybooleanrequired -
Check performed by the runner to figure out if docker is healthy
-
is_connected_to_zkbooleanrequired -
Whether the runner is connected to zk or not
-
has_containersbooleanrequired -
Whether the runner has containers that it manages
-
regionstring -
The region that this runner belongs to. Only populated in SaaS or federated ECE.
The search request failed. (code: runners.search_failed)
-
errorsBasicFailedReplyElementrequired -
A list of errors that occurred in the failing request
Response Headers
-
x-cloud-error-codes The error codes associated with the response