@transactional_session
def get_replica(rse_id, scope, name, session=None):
    '\n    Get File replica.\n\n    :param rse_id: The RSE Id.\n    :param scope: the scope name.\n    :param name: The data identifier name.\n    :param session: The database session in use.\n\n    :returns: A dictionary with the list of replica attributes.\n    '
    try:
        row = session.query(models.RSEFileAssociation).filter_by(rse_id=rse_id, scope=scope, name=name).one()
        result = {}
        for column in row.__table__.columns:
            result[column.name] = getattr(row, column.name)
        return result
    except NoResultFound:
        raise exception.ReplicaNotFound(('No row found for scope: %s name: %s rse: %s' % (scope, name, get_rse_name(rse_id=rse_id, session=session))))
Get File replica.

:param rse_id: The RSE Id.
:param scope: the scope name.
:param name: The data identifier name.
:param session: The database session in use.

:returns: A dictionary with the list of replica attributes.
@transactional_session
def get_replica(rse_id, scope, name, session=None):
    '\n    Get File replica.\n\n    :param rse_id: The RSE Id.\n    :param scope: the scope name.\n    :param name: The data identifier name.\n    :param session: The database session in use.\n\n    :returns: A dictionary with the list of replica attributes.\n    '
    try:
        row = session.query(models.RSEFileAssociation).filter_by(rse_id=rse_id, scope=scope, name=name).one()
        result = {}
        for column in row.__table__.columns:
            result[column.name] = getattr(row, column.name)
        return result
    except NoResultFound:
        raise exception.ReplicaNotFound(('No row found for scope: %s name: %s rse: %s' % (scope, name, get_rse_name(rse_id=rse_id, session=session))))