// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples

[source, js]
----
const response = await client.cluster.info({
  target: "_all",
});
console.log(response);

const response1 = await client.cluster.info({
  target: "http",
});
console.log(response1);

const response2 = await client.cluster.info({
  target: "ingest",
});
console.log(response2);

const response3 = await client.cluster.info({
  target: "thread_pool",
});
console.log(response3);

const response4 = await client.cluster.info({
  target: "script",
});
console.log(response4);

const response5 = await client.cluster.info({
  target: "http,ingest",
});
console.log(response5);
----
