API получения желаемых узлов
Данная функция предназначена для косвенного использования службой Elasticsearch Service, Elastic Cloud Enterprise и Elastic Cloud на Kubernetes. Прямое использование не поддерживается.
Получение желаемых узлов.
Запрос
resp = client.perform_request(
"GET",
"/_internal/desired_nodes/_latest",
)
print(resp) const response = await client.transport.request({
method: "GET",
path: "/_internal/desired_nodes/_latest",
});
console.log(response); GET /_internal/desired_nodes/_latest
Описание
Этот API получает последние желаемые узлы.
Примеры
В этом примере получение последних желаемых узлов.
resp = client.perform_request(
"GET",
"/_internal/desired_nodes/_latest",
)
print(resp) const response = await client.transport.request({
method: "GET",
path: "/_internal/desired_nodes/_latest",
});
console.log(response); GET /_internal/desired_nodes/_latest
API возвращает следующий результат:
{
"history_id": <history_id>,
"version": <version>,
"nodes": [
{
"settings": <node_settings>,
"processors": <node_processors>,
"memory": "<node_memory>",
"storage": "<node_storage>"
}
]
}
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-desired-nodes.html