删除目标节点 API

编辑

此功能旨在供 Elasticsearch 服务Elastic 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