Search runners
Retrieves runners that match a given query.
Body
The optional search request to execute. If not supplied then all runners are matched.
-
from integer(int32)
-
size integer(int32)
The maximum number of search results to return.
-
query object
The container for all of the allowed Elasticsearch queries. Specify only one property each time.
Additional properties are allowed.
-
sort array[object]
An array of fields to sort the search results by.
Additional properties are allowed.
-
_source object
Additional properties are allowed.
POST /platform/infrastructure/runners/_search
curl \
-X POST https://{{hostname}}/api/v1/platform/infrastructure/runners/_search \
-d '{"from":42,"size":42,"query":{"match":{"additionalProperty1":{"query":"string","operator":"string","minimum_should_match":42,"analyzer":"string"},"additionalProperty2":{"query":"string","operator":"string","minimum_should_match":42,"analyzer":"string"}},"match_all":{},"match_none":{},"term":{"additionalProperty1":{"value":"string"},"additionalProperty2":{"value":"string"}},"bool":{"must":[{}],"should":[{}],"must_not":[{}],"filter":[{}],"minimum_should_match":42},"query_string":{"query":"string","default_field":"string","analyzer":"string","default_operator":"string","allow_leading_wildcard":true},"nested":{"query":{},"path":"string","score_mode":"avg"},"prefix":{"additionalProperty1":{"value":"string","boost":42.0},"additionalProperty2":{"value":"string","boost":42.0}},"exists":{"field":"string"},"range":{"additionalProperty1":{"gt":{},"gte":{},"lt":{},"lte":{},"boost":42.0,"format":"string","time_zone":"string"},"additionalProperty2":{"gt":{},"gte":{},"lt":{},"lte":{},"boost":42.0,"format":"string","time_zone":"string"}},"simple_query_string":{"query":"string","fields":["string"],"default_operator":"string","analyze_wildcard":true,"analyzer":"string","auto_generate_synonyms_phrase_query":true,"flags":"string","fuzzy_max_expansions":42,"fuzzy_prefix_length":42,"fuzzy_transpositions":true,"lenient":true,"minimum_should_match":"string","quote_field_suffix":"string"}},"sort":[{}],"_source":{}}'
Request examples
{
"from": 42,
"size": 42,
"query": {
"match": {
"additionalProperty1": {
"query": "string",
"operator": "string",
"minimum_should_match": 42,
"analyzer": "string"
},
"additionalProperty2": {
"query": "string",
"operator": "string",
"minimum_should_match": 42,
"analyzer": "string"
}
},
"match_all": {},
"match_none": {},
"term": {
"additionalProperty1": {
"value": "string"
},
"additionalProperty2": {
"value": "string"
}
},
"bool": {
"must": [
{}
],
"should": [
{}
],
"must_not": [
{}
],
"filter": [
{}
],
"minimum_should_match": 42
},
"query_string": {
"query": "string",
"default_field": "string",
"analyzer": "string",
"default_operator": "string",
"allow_leading_wildcard": true
},
"nested": {
"query": {},
"path": "string",
"score_mode": "avg"
},
"prefix": {
"additionalProperty1": {
"value": "string",
"boost": 42.0
},
"additionalProperty2": {
"value": "string",
"boost": 42.0
}
},
"exists": {
"field": "string"
},
"range": {
"additionalProperty1": {
"gt": {},
"gte": {},
"lt": {},
"lte": {},
"boost": 42.0,
"format": "string",
"time_zone": "string"
},
"additionalProperty2": {
"gt": {},
"gte": {},
"lt": {},
"lte": {},
"boost": 42.0,
"format": "string",
"time_zone": "string"
}
},
"simple_query_string": {
"query": "string",
"fields": [
"string"
],
"default_operator": "string",
"analyze_wildcard": true,
"analyzer": "string",
"auto_generate_synonyms_phrase_query": true,
"flags": "string",
"fuzzy_max_expansions": 42,
"fuzzy_prefix_length": 42,
"fuzzy_transpositions": true,
"lenient": true,
"minimum_should_match": "string",
"quote_field_suffix": "string"
}
},
"sort": [
{}
],
"_source": {}
}
Response examples (200)
{
"runners": [
{
"runner_id": "string",
"runner_name": "string",
"zone": "string",
"tags": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"features": {
"additionalProperty1": true,
"additionalProperty2": true
},
"build_info": {
"commit_hash": "string",
"version": "string"
},
"host_ip": "string",
"public_hostname": "string",
"containers": [
{
"container_name": "string",
"container_set_name": "string"
}
],
"roles": [
{
"role_name": "string"
}
],
"connected": true,
"healthy": true,
"health_checks": {
"is_docker_healthy": true,
"is_connected_to_zk": true,
"has_containers": true
},
"region": "string"
}
]
}
Response examples (400)
# Headers
x-cloud-error-codes: runners.search_failed
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}