Get desired nodes API

Get desired nodes API

This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.

New API reference

For the most up-to-date API details, refer to Cluster APIs.

Get desired nodes.

Request

  1. resp = client.perform_request(
  2. "GET",
  3. "/_internal/desired_nodes/_latest",
  4. )
  5. print(resp)
  1. const response = await client.transport.request({
  2. method: "GET",
  3. path: "/_internal/desired_nodes/_latest",
  4. });
  5. console.log(response);
  1. GET /_internal/desired_nodes/_latest

Description

This API gets the latest desired nodes.

Examples

This example gets the latest desired nodes.

  1. resp = client.perform_request(
  2. "GET",
  3. "/_internal/desired_nodes/_latest",
  4. )
  5. print(resp)
  1. const response = await client.transport.request({
  2. method: "GET",
  3. path: "/_internal/desired_nodes/_latest",
  4. });
  5. console.log(response);
  1. GET /_internal/desired_nodes/_latest

The API returns the following result:

  1. {
  2. "history_id": <history_id>,
  3. "version": <version>,
  4. "nodes": [
  5. {
  6. "settings": <node_settings>,
  7. "processors": <node_processors>,
  8. "memory": "<node_memory>",
  9. "storage": "<node_storage>"
  10. }
  11. ]
  12. }