Get allocators
Retrieves the information for all of the allocators in the platform.
Query parameters
-
q string
(Optional) The query that filters the allocators. Maps to an Elasticsearch
query_string
query. -
size integer
(Optional) The maximum number of search results to return. Defaults to 100.
Default value is
100
. -
from integer
(Optional) The offset from the first result you want to fetch. Defaults to 0.
Default value is
0
. -
sort string
(Optional) A comma-separated array of fields to sort the search results by. Defaults to
allocator_id
.
GET
/platform/infrastructure/allocators
curl \
-X GET https://{{hostname}}/api/v1/platform/infrastructure/allocators
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"
}
]
}
]
}