// This file is autogenerated, DO NOT EDIT
// ilm/apis/migrate-to-data-tiers.asciidoc:160

[source, python]
----
resp = client.ilm.migrate_to_data_tiers(
    legacy_template_to_delete="global-template",
    node_attribute="custom_attribute_name",
)
print(resp)
----
