// 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.indices.getSettings({
  index: "my-index-000001",
  name: "index.routing.allocation.total_shards_per_node",
  flat_settings: "true",
});
console.log(response);
----
