Added/updated snippets for docs (#2318)
This commit is contained in:
78
docs/doc_examples/2c602b4ee8f22cda2cdf19bad31da0af.asciidoc
Normal file
78
docs/doc_examples/2c602b4ee8f22cda2cdf19bad31da0af.asciidoc
Normal file
@ -0,0 +1,78 @@
|
||||
// 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.nodes.info();
|
||||
console.log(response);
|
||||
|
||||
const response1 = await client.nodes.info({
|
||||
node_id: "_all",
|
||||
});
|
||||
console.log(response1);
|
||||
|
||||
const response2 = await client.nodes.info({
|
||||
node_id: "_local",
|
||||
});
|
||||
console.log(response2);
|
||||
|
||||
const response3 = await client.nodes.info({
|
||||
node_id: "_master",
|
||||
});
|
||||
console.log(response3);
|
||||
|
||||
const response4 = await client.nodes.info({
|
||||
node_id: "node_name_goes_here",
|
||||
});
|
||||
console.log(response4);
|
||||
|
||||
const response5 = await client.nodes.info({
|
||||
node_id: "node_name_goes_*",
|
||||
});
|
||||
console.log(response5);
|
||||
|
||||
const response6 = await client.nodes.info({
|
||||
node_id: "10.0.0.3,10.0.0.4",
|
||||
});
|
||||
console.log(response6);
|
||||
|
||||
const response7 = await client.nodes.info({
|
||||
node_id: "10.0.0.*",
|
||||
});
|
||||
console.log(response7);
|
||||
|
||||
const response8 = await client.nodes.info({
|
||||
node_id: "_all,master:false",
|
||||
});
|
||||
console.log(response8);
|
||||
|
||||
const response9 = await client.nodes.info({
|
||||
node_id: "data:true,ingest:true",
|
||||
});
|
||||
console.log(response9);
|
||||
|
||||
const response10 = await client.nodes.info({
|
||||
node_id: "coordinating_only:true",
|
||||
});
|
||||
console.log(response10);
|
||||
|
||||
const response11 = await client.nodes.info({
|
||||
node_id: "master:true,voting_only:false",
|
||||
});
|
||||
console.log(response11);
|
||||
|
||||
const response12 = await client.nodes.info({
|
||||
node_id: "rack:2",
|
||||
});
|
||||
console.log(response12);
|
||||
|
||||
const response13 = await client.nodes.info({
|
||||
node_id: "ra*:2",
|
||||
});
|
||||
console.log(response13);
|
||||
|
||||
const response14 = await client.nodes.info({
|
||||
node_id: "ra*:2*",
|
||||
});
|
||||
console.log(response14);
|
||||
----
|
||||
Reference in New Issue
Block a user