Spec-Zone.ru › Elasticsearch 8
›Elasticsearch Guide [8.17] ›REST API ›API кластера

API удаления узлов по заданию

Эта функция предназначена для косвенного использования службой Elasticsearch Service, Elastic Cloud Enterprise и Elastic Cloud on Kubernetes. Прямое использование не поддерживается.

Справочник нового API

Для получения самых последних данных об API обратитесь к API кластера.

Удаление узлов по заданию.

Запрос

resp = client.perform_request(
    "DELETE",
    "/_internal/desired_nodes",
)
print(resp)
const response = await client.transport.request({
  method: "DELETE",
  path: "/_internal/desired_nodes",
});
console.log(response);
DELETE /_internal/desired_nodes

Описание

Этот API удаляет узлы по заданию.

Примеры

В этом примере удаляются текущие узлы по заданию.

resp = client.perform_request(
    "DELETE",
    "/_internal/desired_nodes",
)
print(resp)
const response = await client.transport.request({
  method: "DELETE",
  path: "/_internal/desired_nodes",
});
console.log(response);
DELETE /_internal/desired_nodes

© 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/delete-desired-nodes.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API