def create_snapshot_repo(els, reponame, body, verify=True):

    """Function:  create_snapshot_repo

    Description:  Creates a repository in Elasticsearch cluster.

    Arguments:
        (input) els -> ElasticSearch instance.
        (input) reponame -> Name of repository.
        (input) body -> Contains arguments for the dump command.
        (input) verify -> True|False - Validate the repository.
        (output) Return exit status of create_repository command.

    """

    body = dict(body)
    return els.snapshot.create_repository(repository=reponame, body=body,
                                          verify=verify)