删除期望节点 API

编辑

此功能旨在由 Elasticsearch ServiceElastic Cloud EnterpriseElastic Cloud on Kubernetes 间接使用。不支持直接使用。

删除期望节点。

请求

编辑
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