// This file is autogenerated, DO NOT EDIT
// snapshot-restore/take-snapshot.asciidoc:302

[source, python]
----
resp = client.snapshot.create(
    repository="my_repository",
    snapshot="my_snapshot",
    wait_for_completion=True,
)
print(resp)
----
