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

[source, js]
----
const response = await client.tasks.list();
console.log(response);

const response1 = await client.tasks.list({
  nodes: "nodeId1,nodeId2",
});
console.log(response1);

const response2 = await client.tasks.list({
  nodes: "nodeId1,nodeId2",
  actions: "cluster:*",
});
console.log(response2);
----
