Search allocators
Retrieves the information for all the allocators in the platform that match a specified query.
Body
The optional search request to execute. If not supplied then all allocators 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/allocators/_search
curl \
-X POST https://{{hostname}}/api/v1/platform/infrastructure/allocators/_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)
{
"zones": [
{
"zone_id": "string",
"allocators": [
{
"status": {
"connected": true,
"healthy": true,
"health_checks": {
"is_docker_healthy": true,
"is_connected_to_zk": true,
"has_instances": true
},
"maintenance_mode": true,
"maintenance_mode_timestamp": "2024-05-04T09:42:00+00:00"
},
"allocator_id": "string",
"zone_id": "string",
"host_ip": "string",
"public_hostname": "string",
"capacity": {
"memory": {
"total": 42,
"used": 42
},
"storage": {
"total": 42
},
"available_cpus": 42,
"additional_master_bonus": 42.0
},
"settings": {
"capacity": 42
},
"instances": [
{
"cluster_type": "elasticsearch",
"cluster_id": "string",
"cluster_name": "string",
"instance_name": "string",
"node_memory": 42,
"healthy": true,
"cluster_healthy": true,
"instance_configuration_id": "string",
"moving": true,
"plans_info": {
"pending": true,
"version": "string",
"zone_count": 42
},
"deployment_id": "string"
}
],
"metadata": [
{
"key": "string",
"value": "string"
}
],
"build_info": {
"commit_hash": "string",
"version": "string"
},
"features": [
"string"
],
"external_links": [
{
"id": "string",
"label": "string",
"uri": "string"
}
],
"region": "string"
}
]
}
]
}