(cherry picked from commit f737290d10)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
28 lines
697 B
Plaintext
28 lines
697 B
Plaintext
// 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.transport.request({
|
|
method: "PUT",
|
|
path: "/_internal/desired_nodes/<history_id>/<version>",
|
|
body: {
|
|
nodes: [
|
|
{
|
|
settings: {
|
|
"node.name": "instance-000187",
|
|
"node.external_id": "instance-000187",
|
|
"node.roles": ["data_hot", "master"],
|
|
"node.attr.data": "hot",
|
|
"node.attr.logical_availability_zone": "zone-0",
|
|
},
|
|
processors: 8,
|
|
memory: "58gb",
|
|
storage: "2tb",
|
|
},
|
|
],
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|