def get_repository(self, repository_id, state, json_out=False):
    'Retrieves one repository from the backup service\n\n        If the repository does not exist an error will be returned\n\n        Args:\n            repository_id (str): The repository id to be retrieved\n            state (str): The state of the repository to retrieve\n            json_out (bool): If True the output will be JSON otherwise it will be a human friendly format.\n        '
    if (not repository_id):
        _exit_if_errors(['--id is required'])
    if (not state):
        _exit_if_errors(['--state is required'])
    (repository, errors) = self.rest.get_backup_service_repository(repository_id, state)
    _exit_if_errors(errors)
    if json_out:
        print(json.dumps(repository, indent=2))
    else:
        self.human_firendly_print_repository(repository)
Retrieves one repository from the backup service

If the repository does not exist an error will be returned

Args:
    repository_id (str): The repository id to be retrieved
    state (str): The state of the repository to retrieve
    json_out (bool): If True the output will be JSON otherwise it will be a human friendly format.
def get_repository(self, repository_id, state, json_out=False):
    'Retrieves one repository from the backup service\n\n        If the repository does not exist an error will be returned\n\n        Args:\n            repository_id (str): The repository id to be retrieved\n            state (str): The state of the repository to retrieve\n            json_out (bool): If True the output will be JSON otherwise it will be a human friendly format.\n        '
    if (not repository_id):
        _exit_if_errors(['--id is required'])
    if (not state):
        _exit_if_errors(['--state is required'])
    (repository, errors) = self.rest.get_backup_service_repository(repository_id, state)
    _exit_if_errors(errors)
    if json_out:
        print(json.dumps(repository, indent=2))
    else:
        self.human_firendly_print_repository(repository)