// This file is autogenerated, DO NOT EDIT
// snapshot-restore/repository-source-only.asciidoc:41

[source, python]
----
resp = client.snapshot.create_repository(
    name="my_src_only_repository",
    repository={
        "type": "source",
        "settings": {
            "delegate_type": "fs",
            "location": "my_backup_repository"
        }
    },
)
print(resp)
----
