// This file is autogenerated, DO NOT EDIT
// indices/rollover-index.asciidoc:451

[source, python]
----
resp = client.indices.rollover(
    alias="my-alias",
    settings={
        "index.number_of_shards": 2
    },
)
print(resp)
----
