// This file is autogenerated, DO NOT EDIT
// ilm/actions/ilm-searchable-snapshot.asciidoc:103

[source, python]
----
resp = client.ilm.put_lifecycle(
    name="my_policy",
    policy={
        "phases": {
            "cold": {
                "actions": {
                    "searchable_snapshot": {
                        "snapshot_repository": "backing_repo"
                    }
                }
            }
        }
    },
)
print(resp)
----
